Articles

Design the test cases and test the program of Triangle Problem by using Decision Table Based testing

Share

Program

If you’re curious to see the “Triangle Problem “ code, then the link is here with tested test cases.

Decision Table Based Testing

In Decision table based testing,  Condition stubs and Action stubs are viewed as inputs and outputs. Here, we’ll be applying this Structural testing technique to create test cases:

Let’s create the decision table first,

On the basis of above decision table, we have these test cases for testing:

Test IDabcExpected OutputProgram OutputTested Outcome
15105Not a triangleNot a trianglePass
21055Not a triangleNot a trianglePass
35510Not a triangleNot a trianglePass
41095Scalene triangleScalene trianglePass
5515Isosceles triangleIsosceles trianglePass
6155Isosceles triangleIsosceles trianglePass
7---Not PossibleNot Possible
8551Isosceles triangleIsosceles trianglePass
9---Not PossibleNot Possible
10---Not PossibleNot Possible
11555Equilateral TriangleEquilateral TrianglePass

Sandeep Verma

Published by
Sandeep Verma
Tags: software testing st triangle problem