## ISTQB Question Dumps For Software Testing - Part 5

Question:

You have been assigned to test the new Triangle Determination Application. 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 thanyou can run them.

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 thanyou can run them.

Answers:

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

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

## No comments:

## Post a Comment