Home /
Expert Answers /
Computer Science /
software-testing-please-help-exercise-the-triangle-test-suppose-you-39-re-told-to-test-a-very-simple-pa396
(Solved): software testing please help Exercise: The Triangle Test Suppose you're told to test a very simple p ...
software testing please help
Exercise: The Triangle Test Suppose you're told to test a very simple program. This program accepts three integers as inputs or arguments. These integers represent the lengths of a triangle's sides. The program prints "Equilateral" (three equal sides), "Isosceles" (two equal sides), or "Scalene" (no equal sides), as shown in Figure 2-1." Your assignment is to write an effective and efficient set of test cases. By effective, I mean that the set of tests finds common bugs. By efficient, I mean that the set of tests finds those bugs with a reasonable amount of effort. By test case, I mean tester action, data, and expected result. Here the action is usually to input some data, but it might be other actions as well. A template is provided for your solution. I suggest you format your solution to look the same as the template. I suggest 30 minutes as a time limit. When you're done, continue through the rest of this chapter to see my answers. This classic exercise - which serves as a Rorschach test for test professionals in many ways was created by Glenford Myers and is found in his book, The Art of Software Testing.
Your Solution for the Triangle Test