Design the test cases and test the program of Triangle problem by using Robustness Testing

A polygon with 3 sides having any of the side greater than the sum of its other two sides cannot be considered as triangle. On the basis of sides, a triangle can be categorized in isosceles, equilateral and scalene triangle.

An isosceles triangle is a triangle in which two sides are equal.

An equilateral triangle is a triangle in which all sides are equal.

A scalene triangle is a triangle in which no two sides are equivalent to one other.

Program:

Here you can findĀ  “Triangle problem” program along with its tested output.

Robustness Testing

We are assuming interval [1,10] for creating test cases and we will generate test cases using Robustness testing accordingly.

In Robustness Testing, 6N+1 test cases will be generated, which means, in this case, 6*3+1 = 19 test cases.

Test IDabcExpected OutputProgram OutputTested Outcome
1055Invalid InputInvalid InputPass
2155IsoscelesIsoscelesPass
3255IsoscelesIsoscelesPass
4955IsoscelesIsoscelesPass
51055Not a TriangleNot a TrianglePass
61155Invalid InputInvalid InputPass
7505Invalid InputInvalid InputPass
8515IsoscelesIsoscelesPass
9525IsoscelesIsoscelesPass
10595IsoscelesIsoscelesPass
115105Not a TriangleNot a TrianglePass
125115Invalid InputInvalid InputPass
13550Invalid InputInvalid InputPass
14551IsoscelesIsoscelesPass
15552IsoscelesIsoscelesPass
16559IsoscelesIsoscelesPass
175510Not a TriangleNot a TrianglePass
185511Invalid InputInvalid InputPass
19555EquilateralEquilateralPass

Leave a Reply