0% found this document useful (0 votes)
26 views

You Have Been Assigned To Test The New Triangle Determination Application .

The document describes a triangle determination application that takes integer side lengths as input and outputs whether the triangle is scalene, isosceles, or equilateral. It provides 14 test cases to adequately test the application, including valid and invalid triangle configurations, edge cases, and non-integer or incorrect number of inputs. The test cases specify expected outputs.

Uploaded by

goyalrashmi18
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

You Have Been Assigned To Test The New Triangle Determination Application .

The document describes a triangle determination application that takes integer side lengths as input and outputs whether the triangle is scalene, isosceles, or equilateral. It provides 14 test cases to adequately test the application, including valid and invalid triangle configurations, edge cases, and non-integer or incorrect number of inputs. The test cases specify expected outputs.

Uploaded by

goyalrashmi18
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

You have been assigned to test the new Triangle Determination Application ..

You have been assigned to test the new Triangle Determination Application (see screen shot below).

As you can see the screen consists of three text fields and a single button. The user is expected to enter an integer value into each of the three text fields. Upon hitting the OK button the program will print a message in a separate dialog box stating whether the triangle is scalene (all sides are different lengths), isosceles (two sides are the same length), or equilateral (all three sides are the same length). Write a set of test cases (i.e. specific sets of data) that you feel would adequately test this program. Write the tests so that someone other than you can run them. Answer: Do you have a test case: 1. for a valid scalene triangle? 2. for a valid equilateral triangle? 3. for a valid isosceles triangle? 4. for each of the three permutations of two equal sides in valid isosceles triangles? 5. in which one side has a length of zero? 6. in which one side has a negative length? 7. in which the sum of the length of two sides is equal to the length of the third? 8. for each of the three permutations of case 7? 9. in which the sum of the length of two sides is less than the length of the third? 10. for each of the three permutations of case 9? 11. in which all side lengths are zero? 12. which uses non-integer input values? 13. which uses the wrong number of input values? 14. did all your test cases specify the expected output? Myers states that experienced professional programmers score on average 7.8 out of the first 14 questions. Extra points can be given for further tests such as performance, reliability and configuration

You might also like