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

  Left most derivation

A->a|aS|bAA, B->b|bS|aBB, For the string “aaabbabbba” determine a Left most derivation.

  Explain porters five forces model

Describe for Bill what a Supply Chain Management (SCM) solution would look like for his ABC Pizza business and how his business could benefit from implementing an SCM solution.

  Compare the merits and demerits of 3g and 4g technology to

there are a number of cellular phone companies each serving their own unique geographical areas. likewise they each may

  Hardware support to memory management

Study any two multicore processor architecture and discuss the following features briefly

  Straight-line depreciation method calculations

Describe how to carry out the Straight-line Depreciation Method calculations and understand the meaning of elements within the Straight-line formula.

  Explain what factors work in favor of a web solution

Could such a web based EOC be a way for Cheyenne County to meet its coordination and communications needs? What factors work in favor of a web solution, and what factors are opposed. Assuming that a web based EOC is an acceptable solution, how wou..

  Explain the von neumann architecture and describe why it is

computer architecture is the combination of software and hardware that is organized in such a fashion as to deliver the

  How many linear feet of shelf space are required

A standard computer CD holds approximately 700 million characters. Estimate how many linear feet of shelf space are required to store 700 million characters encoded as text (i.e., printed, bound books) rather than as electronic media.

  Most current maximum and minimum number

Use a For Loop to generate 100 random numbers. Determine the most current maximum and minimum number as the random numbers are being generated.

  Explain topic enterprisecontinuity and incidentmanagement

Explain the topic Enterprisecontinuity, Personnelsecurity, Physical and environmental security, Procurement and Incidentmanagement.

  Questionproduce a book class that stores book information

questionproduce a book class that stores book information. your book class will store following-book titleauthors first

  Assess the product by using the five-step plan that is

imagining yourself to be the customer construct a house of quality to provide the organization with your perspectives

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