Definition: Black Box Testing is a testing technique where the tester checks the functionality of software without knowing its internal code or structure.
👉 Simple meaning: You only care about input → output, not how the program works inside.
Input → System → Output
Tester gives input and verifies output.
Dividing input data into groups (partitions) where all values behave similarly.
Identify input field
Divide into:
Choose one test case from each partition
👉 Input: Age (valid range: 18–60)
| Partition | Type | Example |
|---|---|---|
| <18 | Invalid | 15 |
| 18–60 | Valid | 25 |
| >60 | Invalid | 70 |
Instead of testing all values, test one value per group.
👉 🔥 Very important for exams!
Testing values at the edges (boundaries) of input ranges.
Identify minimum and maximum values
Test:
👉 Range: 1–100
Test values:
Most errors occur at boundaries.
👉 🔥 VERY frequently asked in exams!
Used when output depends on multiple conditions.
Login system:
| Conditions | Rule 1 | Rule 2 | Rule 3 |
|---|---|---|---|
| Username correct | Yes | Yes | No |
| Password correct | Yes | No | Yes |
| Output | Login Success | Error | Error |
Used when system behavior changes based on states.
ATM system:
Idle → Card Inserted → PIN Entered → Transaction → Exit
Best for systems like:
Testing based on real user scenarios (use cases).
Online shopping:
Tester guesses possible errors based on experience.
| Technique | Purpose | Example |
|---|---|---|
| Equivalence Partitioning | Reduce test cases | Age groups |
| Boundary Value Analysis | Test limits | 1–100 range |
| Decision Table | Multiple conditions | Login |
| State Transition | System states | ATM |
| Use Case Testing | Real scenarios | Shopping |
| Error Guessing | Experience-based | Invalid input |
✔ Define Black Box Testing ✔ Explain EP with example ✔ Explain BVA with example ✔ Difference between EP and BVA ✔ Decision Table example ✔ State Transition diagram
Black Box Testing focuses on input/output behavior
Main techniques:
BVA & EP are most important for exams
Open this section to load past papers