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

  What are the benefits and limitations of the relational

what are the benefits and limitations of the relational database model for business applications today? respond to at

  What technology characteristics should be evaluated

explain how Web services can be used to effectively integrate business applications and data. Search the Web for resources on current Web services such as XML, SOAP, UDDI and WSDL. Discuss how each is used, including examples from industry.

  Discuss how a cio might handle schrage scenarios

Must businesses choose between good ethics and financial benefits? Explain your answer using Schrage's scenarios or your own examples.

  Write a mips program guess

Write a MIPS program guess which tries to guess what number you have chosen in as few guesses as possible. It can only ask you whether the number is less than some other number.

  Application for verifying pin number

The National Commerce Bank has hired you to generate an application which verifies a customer personal identification number (PIN).

  Write down and justify an efficient relational algebra

write and justify an efficient relational algebra expression that is equivalent to the following given

  Challenges in delivering products -information over internet

One of the biggest challenges linked with the delivering products and information over Internet is the ease with which the others can infringe on other's rights. Provide some examples of this.

  Sigmund freud is the father of which theory model used in

sigmund freud is the father of which theory model used in probation and parole? list and explain the 5 stages of freuds

  Your boss accepted your proposal form for the

your boss accepted your proposal form for the implementation of a cluster individual project. you now need to decide

  State diagram for coffee machine controller

Raw behavioural specs utilizing the state diagram for the coffee machine controller explained as follow. State events, State actions.

  Write down some of the companies which make embedded

what are some of the companies that make embedded operating systems and are these operating systems just scaled down

  Web search engine

Utilizing a Web search engine, determine an article from the reputable source published in the past six months which reports on relative risk that comes.

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