
Definition: Black Box Testing is a testing technique where the tester checks the functionality of software without knowing its internal code or structure .
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 view and download past papers
Click on Show Past Papers to load available exam papers.