Quiz 2
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
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.