White box testing, also known as structural, glass box, or clear box testing, is a software testing approach that examines the internal workings and code structure of the system being tested. The goal is to validate the correctness of the code, ensure that it meets design specifications, and exercise all possible paths and conditions. White box testing is often performed by developers or specialized testers who have knowledge of the internal code.

Here are some common white box testing techniques:

Statement Coverage:

Objective: Ensures that each statement in the code is executed at least once during testing.
Technique: Test cases are designed to execute each line of code in the program.
Branch Coverage:

Objective: Ensures that each branch (decision point) in the code is taken at least once during testing.
Technique: Test cases are designed to cover all possible outcomes of decision points in the code.
Path Coverage:

Objective: Ensures that every possible path through the code is traversed at least once.
Technique: Test cases are designed to cover all possible combinations of paths, including loops and conditionals.
Condition Coverage:

Objective: Ensures that each Boolean condition in the code is evaluated to both true and false during testing.
Technique: Test cases are designed to exercise each condition with inputs that make it both true and false.
Loop Testing:

Objective: Focuses on testing the functionality of loops, including loop boundaries, exit conditions, and iterations.
Technique: Test cases are designed to test loops with various input conditions, including zero, one, and multiple iterations.

Read More... Software Testing Course in Pune