White box Testing:
- It is also called as glass box testing, clear box, and structural testing.
- It is based on the application’s internal code structure.
- In this, an internal perspective of the system and programming skills are used to design the test cases.
- In white box testing, the tester analyses the internal architecture of the system as well as the quality of the source code on different parameters like code optimization, coverage, reusability, etc.
- This testing usually was done at the unit level.
- The white box was done by developers. It is also called a glass, clear, or open box. Unite testing comes under white box testing.
Black box Testing:
- It is a process of testing a system component, considering input, output, and general function.
- The tester interacts with the system through the interface, providing input and validating the received output.
- It doesn’t require knowledge of internal program structure.
- In this, we test UI & backend ( coding/database)
- External actions are performed.
- Focus on what kind of input we need to provide and check whether the output meets the customer’s specifications or not. So it is called the specification-based technique. Done by testers.
- Specification-based – black box techniques: