Software Testing Notes
Black Box Testing
Definition:
Black Box Testing is a software testing method where the tester does not look at the internal code. The tester
only checks the inputs and outputs to see if the software behaves correctly.
Synonyms:
1. Behavioral Testing - Focuses on what the system does.
2. Functional Testing - Checks specific functions or features.
3. Specification-Based Testing - Based on the software's requirements/specs.
Key Point:
Black Box Testing = Testing from the user's point of view (No need to know how the code works inside).
Example:
If you're testing a login page, you check:
- What happens when correct or wrong username/password is entered,
- But you don't see or touch the code behind it.
White Box Testing
Definition:
White Box Testing is a software testing method where the tester looks at the internal structure or code of the
software. It is also called clear box or structural testing.
Synonyms:
1. Structural Testing - Based on the code structure.
2. Glass Box Testing - The code is visible like glass.
3. Clear Box Testing - Because everything inside is clear to the tester.
Key Point:
White Box Testing = Testing from the developer's point of view (Requires knowledge of the code).
Example:
You check if every line of code and condition works properly by writing test cases directly for functions or
loops.