InterviewSolution
| 1. |
What Is Path Coverage? How Path Coverage Testing Done In White Box Testing? |
|
Answer» Path coverage measures whether each of the POSSIBLE paths in each function have been covered for testing. A path is a unique sequence of branches from the function entry to the exit. A very through testing is possible by Path Coverage. Path coverage is measures by an entity called CYCLOMATIC COMPLEXITY. The cyclomatic complexity of a software program is calculated from a connected GRAPH of the module (that SHOWS the topology of control flow within the program): Cyclomatic complexity (CC) = E - N + P Path coverage measures whether each of the possible paths in each function have been covered for testing. A path is a unique sequence of branches from the function entry to the exit. A very through testing is possible by Path Coverage. Path coverage is measures by an entity called cyclomatic complexity. The cyclomatic complexity of a software program is calculated from a connected graph of the module (that shows the topology of control flow within the program): Cyclomatic complexity (CC) = E - N + P |
|