Let's learn some basic ideas of Test Designing
Test Designing is an act of creating and writing test suites for testing a software. The below diagram shows the subdivisions of test design.
These are the following steps which should be followed in Control Flow Coverage.
Let's look at an example to learn the definitions in Graph Coverage. The Below figure displays a Control Flow Graph(CFG).
Test Requirement Set (TR set)
Set of attributes/ certain aspect that we want to cover in the given specification, during testing.
Test Criterion
Set of rules which govern the coverage of TR set.
Test Set
A minimal number of test paths needed to traverse through TR set.
eg:
Test Criterion - Node Coverage
TR Set - {1,2,3,4,5}
Test Set - {[1,2,3,4,5]}
Coverage Level
Percentage of traverse through test requirements for a given test set.
eg:
Coverage level of edge coverage for the above test set
TR set (Edge Coverage) - { (1,2), (2,3),(3,4),(4,5),(1,3),(3,5) }
So, the coverage level = (4/6) * 100%
= 66.6%
These are the following steps which should be followed in Control Flow Coverage.
Graph Coverage
Used for internal structural aspects.Let's look at an example to learn the definitions in Graph Coverage. The Below figure displays a Control Flow Graph(CFG).
Test Requirement Set (TR set)
Set of attributes/ certain aspect that we want to cover in the given specification, during testing.
Test Criterion
Set of rules which govern the coverage of TR set.
Test Set
A minimal number of test paths needed to traverse through TR set.
eg:
Test Criterion - Node Coverage
TR Set - {1,2,3,4,5}
Test Set - {[1,2,3,4,5]}
Coverage Level
Percentage of traverse through test requirements for a given test set.
eg:
Coverage level of edge coverage for the above test set
TR set (Edge Coverage) - { (1,2), (2,3),(3,4),(4,5),(1,3),(3,5) }
So, the coverage level = (4/6) * 100%
= 66.6%
Code Coverage
This coverage has three types.
- Statement Coverage
- Branch Coverage
- Condition Coverage
Branch Coverage - This is to test each and every conditional statement for both true and false.
Condition Coverage - This is to test each and every atomic condition for both true and false.



Comments
Post a Comment