Designing test cases: equivalence classes, boundary values and decision tables
Software Testing Fundamentals · 8 questions
Short notes
Key idea
You can't test every input, so pick a small set that finds most bugs. Equivalence partitioning tests one value per class (valid and invalid). Boundary value analysis tests the edges, where off-by-one bugs live. Decision tables cover combinations of conditions. Error guessing adds cases from experience.
Syntax
Classes: one value per valid and invalid class; one invalid input per case
Boundaries: min-1, min, max, max+1 (3-value: add min+1, max-1)
Decision table: n yes/no conditions -> 2^n rules, collapse "don't care"
Test case: ID, title, requirement, preconditions, steps, data,
EXPECTED (written first), actual, status
Example
February 2024 load window (2024-02-01 to 2024-02-29): test 01-31, 02-01, 02-14, 02-29 (leap day), 03-01, and a rerun. A job using order_date < window_end fails the 02-29 case.
Traps
- Expected results written after running.
- Only valid inputs tested.
- Middle values tested, edges skipped.
- Date edges forgotten: month ends, leap days, year end, midnight.
- Decision tables missing combinations.
Want the full lesson with step-by-step examples, a project and a certificate? Software Testing Fundamentals course, ₹120 →
Questions
5 free questions- Question 1easy
Which is the most important rule about a test case's expected result?
- Question 2easy
Quantity per line must be 1 to 10. Using equivalence partitioning only, how many test cases do you need?
- Question 3medium
Why test one invalid input per test case?
- Question 4easy
A discount applies to orders from ₹500 to ₹5,000 (whole rupees). Which set is two-value boundary analysis?
- Question 5hard
You have equivalence cases (one per class) and boundary cases for a 1-10 quantity field. Which case is redundant?
Designing test cases: equivalence classes, boundary values and decision tables
Designing test cases: equivalence classes, boundary values and decision tables
Designing test cases: equivalence classes, boundary values and decision tables
Designing test cases: equivalence classes, boundary values and decision tables
Designing test cases: equivalence classes, boundary values and decision tables
3 more questions on this topic, with hints, and tests
Sign up free for 21 days of every question and test.