Menu
ESC

Nhập từ khóa để tìm kiếm

↑↓ Di chuyển
Enter Mở
ESC Đóng

Đang tải...

Bài 41 — Test Design Techniques — Black Box

Test Strategy and QA Leadership Bài 41/60

Black Box Techniques

Equivalence Partitioning (EP)

Divide input into groups expected to behave same.
  • Example age field [0-120]:
- Invalid: -5, 200 - Valid (kid): 5 - Valid (adult): 25 - Valid (senior): 70

→ Test 1 per partition = 4 cases (not all 120).

Boundary Value Analysis (BVA)

Test edges of partition.
  • Age [0-120]:
- -1, 0, 1 (lower). - 119, 120, 121 (upper).

Decision Table

For multiple condition combinations.
ConditionRule 1Rule 2Rule 3
Age >= 18YYN
Has IDYNY
ResultAllowDenyDeny

State Transition

For state-aware system (login, order).
  • States: LoggedOut, LoggedIn, Locked.
  • Test each transition (login, logout, fail attempt).

Use Case Testing

Walk through user flow:
  • Successful flow.
  • Alternative paths.
  • Error paths.

Pairwise / All-Pairs

For many parameter combinations.
  • 3 OS × 3 browser × 3 country = 27 combos.
  • Pairwise: ~9 combos cover all pairs (Microsoft PICT, allpairs tool).

VN context

Banking app KYC form: many condition combinations → decision table essential. Insurance quote: many parameter → pairwise.

When to use

  • Form input → EP + BVA.
  • Business rule → decision table.
  • Stateful workflow → state transition.
  • Configuration combinations → pairwise.

Common mistake

Test every combination → exponential explosion. Use technique to reduce smart.