White Box Testing
White Box Testing is a testing method that evaluates the internal structure, design, and coding of a software system. This approach requires the tester to have knowledge of the system's source code to design test cases that exercise specific paths and logic within the code.
Example: White Box Testing on a software feature that calculates a discount, a tester would review the source code to identify all possible input conditions, loops, and conditional statements. They would then write test cases specifically to test each branch of the if/else statements, ensuring that the discount is calculated correctly for different scenarios like a 10% discount for orders over $50 and a 20% discount for orders over $100.