Registry Synced

โฌ› Black-Box Testing

207 words
1 min read

Reading compass

Now ยท 1. ๐ŸŽฏ Learning Objectives

โฌ› Black-Box Testing

1. ๐ŸŽฏ Learning Objectives

  • Apply equivalence partitioning to reduce test cases
  • Apply boundary value analysis to find edge-case bugs
  • Design test cases from requirements (no code knowledge)

2. ๐Ÿ“– Core Content

3.1 Equivalence Partitioning

Divide input domain into equivalence classes where all values are expected to behave the same. Test one value from each class. Example: Valid ages 18-65
  • Invalid class 1: age < 18 (e.g., 15)
  • Valid class: 18 โ‰ค age โ‰ค 65 (e.g., 30)
  • Invalid class 2: age > 65 (e.g., 70)

3.2 Boundary Value Analysis (BVA)

Test at boundaries of equivalence classes. Most defects occur at boundaries. For range [18, 65]: Test values: 17, 18, 19 (lower boundary) and 64, 65, 66 (upper boundary)

3.3 Combination Approaches

  • Each Choice: Test each equivalence class at least once
  • Pairwise: Test all pairs of combinations
  • All Combinations: Test all possible combinations (exhaustive)

4. ๐Ÿ“ Practice Questions

Q1: For a function accepting values 1-100, what BVA test values would you use?
Answer: 0, 1, 2 (lower boundary) and 99, 100, 101 (upper boundary). Also test a typical mid-range value like 50. Join Discord PreviousTesting FundamentalsNextWhite-Box Testing
Document outline

Keep your place and jump directly to a heading.

Table of contents

No note selected

Open a chapter to see its outline, backlinks, and sources here.