Commit 357bbcef by Dinh Thanh Truc

Update Basic_Testing.md

parent 9322f1d4
......@@ -114,9 +114,10 @@ We have different statement coverage with different input values:
![screenshot](Decision_Coverage.png)
With Test 1: A = 20, B = 15 the value of C will be -10, we will print "C negative" and we have 100% statement coverage.
But we only cover the True outcome of IF statement, we have not checked the False outcome. So we have to add Test 2
They now cover both of the decision outcomes True and False.
With Test 1: A = 0, B = 15 the value of C will be -30, we will print "C negative" and we have 100% statement coverage.
But we only cover the True outcome of IF statement, we have not checked the False outcome. The similar coverage with Test 2.
If we take 2 test cases Test 1 and Test 2 we get only 50% decision coverage.
Test 3 can not get 100% statement coverage but it can cover the TRUE outcome.So we have to choose Test 1 and Test 3.They now cover both of the decision outcomes True and False.
#### _+ Experience-based testing technique:_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment