Program
If you’re interested to see “Quadratic Equation 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 recognized as inputs and outputs. Here, we’ll be using this black box testing technique to generate test cases:
Let’s create the decision table first,
Now, we will accordingly create test cases based on the above decision table.
Test ID | a | b | c | Expected Output | Program Output | Tested Outcome |
---|---|---|---|---|---|---|
1 | 0 | 5 | 5 | Not Quadratic | Not Quadratic | Pass |
2 | 1 | 5 | 5 | Real | Real | Pass |
3 | 9 | 5 | 5 | Imaginary | Imaginary | Pass |
4 | 5 | 10 | 5 | Equal | Equal | Pass |