Write a set of unit tests for the sample application

Assignment Help Computer Engineering
Reference no: EM131063866

Part One:

1. Using JUnit write a set of unit tests for the sample application you created for assignment one. If you have a large amount of functionality you may limit your tests to 30. In your report you do not need to include the full code from your test class, but for each test you should write the name of the function you are testing, the name of the test, a short description of what the function does, any setup required prior to the test running, the assertion used in your test and a comment on the purpose of the test. For example, for one of the tests for my SimpleMed application I might write:

Function               calcInfusionRate()

                           Calculates the infusion rate by dividing volume to be infused by time

Test                     calcRate_timeZero_shouldbe_zero()

Setup                   Volume to be infused set to 4, time is 0

Assertion              assertEquals(smed.infusionRate, 0, 0);

                            Test ensures that dividing by zero in this function results in an infusion rate of 0 and not an error or NAN

2. What results did you get when you ran your tests, did any fail? If so why? If not, why not? Include any relevant screenshots to support your answer.

3. How did you decide on any values used in your oracles/assertions?

4. If you were going to test more comprehensively what would be an appropriate strategy for determining an appropriate set of inputs specifically for your application? Why?

Part Two:

Using any capture/replay tool of your choice (I recommend Marathon which is freely available from GITHub but there are others so use anything suitable) record a set of tests for the SimpleCalendar application (I have provided the code files) using the following process:

i. Identify 5 user tasks that can be performed with SimpleCalendar

ii. Write down the sequence of interactions required to perform each of the tasks you have chosen.

iii. Use the capture/replay tool to record these sequences of interactions as 5 test recordings

iv. Identify interaction points that should be tested and add these to your recorded sequences

1. In your report you should describe each of the 4 points above, in addition explain the choices you have made for (iv) and describe the tests that you have written for these.

2. Did you discover any errors or unexpected behaviours when testing SimpleCalendar?

3. How comprehensively do you think the recorded sequences and your tests tested the SimpleCalendar tasks? What would you need to do to make the testing more comprehensive (still just using capture/replay?)

4. Evaluate the tool you have used in terms of how easy it was to download and install, how easy it was to learn to use, how easy it was to record interaction sequences and tests, how easy it was to interpret results, how effective overall you thought the tool was. Provide screenshots as required to support your arguments.

Part Three - for COMP526 students only

Use the jfc-GUI-Ripper tool from the GUITAR framework with the sample application you created for assignment one.

1. Run the ripper (you will need configure any of the terminal widgets to ensure it can completely generate the graph). What additional information do you need to supply (e.g. input strings for textfields) in order to try and complete the graph? Were you able to generate a complete graph from your application?

2. Use a visualization tool like GraphViz to view the events graph. How does this compare to the PIM you developed for assignment one?

4: Describe the benefits and shortcomings of each of the approaches you have used in this assignment - Unit testing, capture/replay, GUITAR. Did you prefer one over the other? Why? How do you think you could improve any of them to assist in making the testing more comprehensive?

Attachment:- Assignment.rar

Reference no: EM131063866

Questions Cloud

Did the conquest of turkish and mongol people have an effect : Between the years 1000 CE to 15000 CE, did the conquests of the Turkish and Mongol people have an overall positive or negative effect on the world?
Problem regarding the after proposal submission : Image that you are a small-business owner and your bid has drawn interest from the government. How would you prepare for the process of demonstrating your goods or services?
Maslow hierarchy of human needs : Examine and assess the level of motivation and involvement that a typical customer would display in the purchase of food storage container by answering the following:
Successful company nurtures its resources and competencies : 1. A successful company nurtures its resources and competencies through the choice of a marketing philosophy. What are the various core Marketing Management Philosophies?
Write a set of unit tests for the sample application : COMP426/526 - 16A ASSIGNMENT. Using JUnit write a set of unit tests for the sample application you created for assignment one. If you have a large amount of functionality you may limit your tests to 30
The case of abercrombie & fitch : Prepare: In your first post in this discussion, you will become familiar with the case of Abercrombie & Fitch by means of the relevant material in the Required Resources this week.
Effective to reduce exposure to a computer virus : Jim Chan decided to Christmas shop online. He linked to Amazon.com, found a perfect gift for his daughter, registered, and placed his order. It was only later that he noticed that the Web site's URL was actually Amazom.com. Jim was a victim of
Different for a particular asset at particular point in time : What is the difference between the expected rate of return and the required rate of return? What does it mean if they are different for a particular asset at a particular point in time?
Calculate the current price of techwig index : The PLN 980 strike price six months TECHWIG index (the technology index for the Warsaw Stock Exchange) European put option premium is 5.45 Polish Zloties (PLN) and the 980 strike price six months TECHWIG index European call option premium is PLN 35.5..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Describe the importance of and method of establishing

establishing an effective information technology security policy framework is critical in the development of a

  Find out the correct solution

if the percentage of the correct answers is 75% of the 10 questions, then it would take us to the next level from 7 to 9. it continues to next level from 10 to 60 and thne next level from 70 to 90.

  Discuss and describe the potential security threats

Discuss and describe the potential security threats

  Describe the difference between dhtml and html

explain examples of JavaScript script usage in a commercial setting.

  Use the web to research and evaluate security products from

in a two-page apa formatted paper provide analysis answering the followinguse the web to research and evaluate security

  Select a company described in the wall street journal

select a company described in the wall street journal fortune forbes or another reputable business application. visit

  Choose one of the ubuntu shells and discuss how you can

choose one of the ubuntu shells and discuss how you can perform a minimum of 20 commands or functions. these commands

  Make program that displays a digital clock in a window

Write down a program that displays a digital clock in a window using an applet. The clock should show, day of week, date, time, time zone and year.

  Health insurance portability and accountability act

Health Insurance Portability and Accountability Act, Research the following laws that relate to computer crime. Write a 12-16 page paper discussing the role they play in computer crime. Be sure to research and document cases to support each law and..

  Define smaller industry-specific software developers

Does Microsoft's entry into industry-specific applications signal the end for smaller industry-specific software developers? What changes in strategy by such developers are necessary to compete with Microsoft.

  Compare the benefits of time division multiple access tdma

comparethe advantages of time division multiple access tdma frequency division multiple access fdma code division

  Questionthis problem supplies a arithmetical example

questionthis problem supplies a arithmetical example encryption using a one-round version of des. we start with the

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd