Please enable JavaScript.
Coggle requires JavaScript to display documents.
Lecture 5 - White-box Testing (Code Coverage Analysis (TYPES (Statement…
Lecture 5 - White-box Testing
Derivation of test cases from program structure and knowledge of program used to identify additional cases
Best used on areas of software code where more thorough testing is required
Code Coverage Analysis
Finding areas of code not exercised by set of test cases
Identify redundant test cases that do not increase coverage
TYPES
Statement Coverage
Branch Coverage
Decision Coverage
Condition Coverage
Multiple Condition Coverage
Path Coverage
Statement Coverage
Requires that every statement in program has been executed at least once. Weakest form of testing
Branch Coverage
Test cases selected in such a way that each branch in the code is executed at least once
Each decision box is evaluated to true and false at least once
Condition Coverage
reports the true or false of each boolean sub-expression
Measures the sub expressions independently of each other
Decision Coverage
Each decision should affect the outcome independently
Path Coverage
Considers all possible logical paths in a program where test cases are aimed at exercising a program along a path
Cyclomatic Complexity
edges-nodes+2p
where p is the number of exit nodes