Chapter 4 - Test Techniques

 

4.1 Test Techniques Overview

Purpose of Test Techniques

Test techniques are used to:




Categories of Test Techniques (★★★★★ MUST MEMORIZE)

  1. Black-box  (Specification-based): Focus on inputs and outputs
  2. White-box (Structure-based): Focus on the internal code
  3. Experience-based : Focus on the tester's knowledge

시험에서는 이 3개를 섞어서 물어봅니다.


4.2 Black-Box Test Techniques (★★★★★ )

Black-box techniques:


1. Equivalence Partitioning (EP)

Idea

Types

Example
Input: Age 18–65

  • Valid: 18–65
  • Invalid: <18, >65

시험 포인트
“Reduces number of test cases” → EP


2. Boundary Value Analysis (BVA)

Idea

  • Defects often occur at boundaries
  • Test values at the edges

Typical values

Example
Range: 1–100 => Test: 1, 2, 99, 100

Exam favorite
“MOST effective for boundary defects” → BVA


EP vs BVA (시험 단골 비교)

EPBVA
Any value in partitionBoundary values
Fewer test casesMore defect-focused
General reductionEdge-focused

3. Decision Table Testing

Used when

  • Business rules
  • Multiple conditions and actions

Key point

Exam phrase
“Complex business logic” → Decision table


4. State Transition Testing

Used when

  • System behavior depends on states
  • Valid/invalid transitions matter

Examples

  • ATM
  • Login system
  • Traffic light

Watch for words: state, transition, event


5. Use Case Testing

Focus

Based on


4.3 White-Box Test Techniques (★★★ Important)

White-box techniques:


Statement Coverage

Goal


Branch (Decision) Coverage

Goal


Coverage Key Trap

100% coverage does NOT guarantee no defects


4.4 Experience-Based Test Techniques (★★★)

Based on:


Error Guessing


Exploratory Testing

Exam phrase
“Simultaneous learning, test design, and execution”


Chapter 4 – 시험 직전 암기 포인트 (★★★★★)

무조건 기억:

  • EP → partitions
  • BVA → boundaries
  • Decision table → business rules
  • State transition → states/events
  • Statement vs Branch coverage
  • Exploratory testing = simultaneous


VERY COMMON EXAM TRAPS

  • “Black-box needs code knowledge” ❌
  • “100% coverage = no defects” ❌
  • “Exploratory testing is unstructured” ❌ (it is structured, but flexible)
  • “EP focuses on boundaries” ❌

다음 이전