White box Testing Techniques
There are 4 testingin White-box testing.
- Basic path Coverage
- Control Structure Coverage
- Programs Technique Coverage
- Mutation Coverage
Basic path Coverage: It’s a program testing technique.
Using this technique, the programmer is validating the execution of that program without any runtime errors. In this validation, the programmer isthat program more than one time to cover all the area of that program.
The number of times the programmer running the program to cover whole program is called Cyclomatic Complexity.
For example: If you execute a if else program, you need to execute it two time to cover each and every line in the program. So the Cyclomatic complexity of that program is 2 i.e. Cyclomatic complexity=2
ControlCoverage: After completion of basic path coverage, the corresponding programmer is validating that program correctness in terms of inputs, process and outputs.
Program Technique Coverage: After completion of control structure coverage, the corresponding programmer is calculating the execution speed of that program. If the execution speed is not acceptable, then the programmer is performing changes in that program structure without disturbing functionality.
For Example: Take swapping of 2 numbers as example. This can be done using 3 variables and 2 variables.
Mutation Coverage: Mutation means that a change. The programmers are performing changes in a tested program to estimate the correctness and completeness of that program testing.
Note: White-box testing techniques are also known as clear box techniques OR Open box testing techniques.