Test design techniques are the core craft of a QA engineer. While strategy is about deciding what to test, techniques are about deciding how to test it systematically. Senior QA engineers don't just know the names of techniques — they select the right technique for the right problem, combine techniques for coverage efficiency, and explain the coverage guarantee each technique provides.
What Interviewers Are Really Assessing
Skill
What They Listen For
Technique selection
Can you choose the RIGHT technique for a given problem?
Application depth
Can you actually apply it (not just define it)?
Coverage reasoning
Can you explain WHAT the technique covers and what it misses?
Combination thinking
Do you use multiple techniques together?
Practical judgment
Do you know when a technique is overkill or insufficient?
How to Use This Chapter
For each technique, understand the theory, practice the application, and learn the selection criteria
Work through every example with pen and paper — don't just read
Practice explaining your technique selection: "I'm using BVA here because..."
Study the combination patterns — real testing uses multiple techniques together
Each worked example can be adapted to YOUR experience in interviews
Q1Explain boundary value analysis with an example.#
Objective
Demonstrate deep understanding of BVA — not just "test at the edges" but WHY boundaries are error-prone, how to identify them, and how to apply BVA systematically.
Interview Answer (2-3 minutes)
"Boundary value analysis is based on the principle that errors cluster at the boundaries of input domains. This happens because developers often make off-by-one errors in comparisons — using > instead of >=, or checking < instead of <=.
BVA systematically tests at, just below, and just above every boundary. For a single boundary, that's three test values. For a range with two boundaries, that's at least five: below the lower boundary, at the lower boundary, a nominal value in the middle, at the upper boundary, and above the upper boundary.
For example, if a field accepts ages 18-60, my BVA values are: 17 (reject), 18 (accept), 39 (nominal, accept), 60 (accept), 61 (reject). I also add the absolute boundaries: 0, negative numbers, and very large numbers to catch type/overflow issues.
The key senior insight: BVA applies to MORE than just numeric inputs. It applies to string lengths, date ranges, list sizes, file sizes, timeout durations, pagination limits, and even output boundaries (what triggers a different response format)."
BVA Theory
BOUNDARY VALUE ANALYSIS — Core Principle
Input domain: [min, max]
Test points:
min - 1 → INVALID (just below lower boundary)
min → VALID (at lower boundary) ← Most error-prone
min + 1 → VALID (just above lower boundary)
nominal → VALID (typical value)
max - 1 → VALID (just below upper boundary)
max → VALID (at upper boundary) ← Most error-prone
max + 1 → INVALID (just above upper boundary)
Why boundaries are error-prone:
• Off-by-one errors: if (age > 18) vs if (age >= 18)
• Type overflow: Integer.MAX_VALUE + 1
• Array index: list[list.size()] vs list[list.size()-1]
• Comparison operators: < vs <=, > vs >=
Worked Example: E-Commerce Discount System
Specification:
Orders $0-$49.99: No discount
Orders $50.00-$99.99: 10% discount
Orders $100.00+: 20% discount
BVA Test Cases:
Test ID
Input Amount
Expected Discount
BVA Rationale
BVA-01
$0.00
0% (no discount)
Lower absolute boundary
BVA-02
$0.01
0% (no discount)
Min valid order
BVA-03
$25.00
0% (no discount)
Nominal, Tier 1
BVA-04
$49.98
0% (no discount)
Just below Tier 1/2 boundary
BVA-05
$49.99
0% (no discount)
AT Tier 1 upper boundary
BVA-06
$50.00
10% discount
AT Tier 2 lower boundary ⚠️
BVA-07
$50.01
10% discount
Just above Tier 2 lower boundary
BVA-08
$75.00
10% discount
Nominal, Tier 2
BVA-09
$99.98
10% discount
Just below Tier 2/3 boundary
BVA-10
$99.99
10% discount
AT Tier 2 upper boundary ⚠️
BVA-11
$100.00
20% discount
AT Tier 3 lower boundary ⚠️
BVA-12
$100.01
20% discount
Just above Tier 3 lower boundary
BVA-13
$500.00
20% discount
Nominal, Tier 3
Additional BVA edge cases:
Test ID
Input
Expected
Rationale
BVA-14
-$1.00
Error/rejected
Negative value
BVA-15
$0.001
Error or rounded
Precision boundary
BVA-16
$9,999,999.99
20% discount
Very large amount
BVA-17
$10,000,000.00
20% or system limit?
Overflow boundary
BVA Beyond Numbers — Where Senior QA Shines
Domain
Boundaries to Test
String length
0 chars, 1 char, max-1, max, max+1
Date ranges
Start date, end date, day before start, day after end
File size
0 bytes, 1 byte, max-1, max, max+1
List/array
Empty, 1 item, max items, max+1 items
Pagination
Page 0, page 1, last page, last page + 1
Timeout
0ms, just under timeout, at timeout, just over timeout
Concurrency
0 connections, 1, max-1, max, max+1 simultaneous
Currency
Minimum denomination, maximum transaction, multi-currency conversion
Calendar
Month boundaries (28/29/30/31), year boundary, DST transition
Unicode
1-byte char, 2-byte, 3-byte, 4-byte (emoji), max string with multi-byte
Common Mistakes to Avoid
❌ Only testing lower and upper boundary (missing the "just outside" values)
❌ Only applying BVA to visible input fields (missing API/backend boundaries)
❌ Not testing the absolute boundaries (0, null, MAX_INT)
❌ Ignoring output boundaries (when does the system change behavior?)
❌ Not combining with equivalence partitioning (BVA without EP is incomplete)
❌ Forgetting that boundaries can be implicit (undocumented limits)
What Distinguishes Senior from Junior
Junior Response
Senior Response
"Test min and max"
"Test at, below, and above each boundary including implicit ones"
Only tests input fields
Tests outputs, transitions, timeouts, capacities
Lists 3-4 test values
Derives complete set with rationale per value
Applies to numbers only
Applies to strings, dates, files, lists, time, concurrency
Doesn't explain why
Explains the off-by-one principle behind BVA
Follow-Up Questions
"How many test cases does BVA generate for a range with N boundaries?"
→ For each boundary: 3 values (at, below, above). For a simple min-max range: 7 values (2 boundaries × 3 + 1 nominal). For N boundaries: 3N + 1 minimum.
"When is BVA insufficient?"
→ When behavior depends on combinations of inputs (use decision tables), when there's no clear boundary (use exploratory), or when the bug is in the logic between boundaries (use EP for interior values).
"What's the difference between 2-value and 3-value BVA?"
→ 2-value: test ON the boundary and ONE adjacent value. 3-value: test ON and BOTH sides. 3-value is more thorough but generates more tests. Use 3-value for high-risk boundaries.
Practice Exercise
Apply BVA to this specification:
"Password must be 8-64 characters, must contain at least 1 uppercase, 1 lowercase, 1 digit, and 1 special character"
Identify ALL boundaries (not just length) and derive test values for each.
Q2Explain equivalence partitioning with an example.#
Objective
Show that you understand EP as a systematic coverage reduction technique — dividing infinite inputs into a finite set of classes where one representative is sufficient.
Interview Answer (2-3 minutes)
"Equivalence partitioning divides the input domain into classes where every value in a class is expected to behave the same way. The insight is: if the system processes $50.00 correctly, it will almost certainly process $75.00 correctly too, because they're in the same equivalence class. So we test one representative from each class instead of testing every possible value.
The power of EP is in reduction. If a field accepts numbers 1-999, exhaustive testing would be 999 tests. With EP, I identify the partitions: invalid-low (≤0), valid (1-999), and invalid-high (≥1000). That's 3 test values instead of 999+.
But the real skill is identifying non-obvious partitions. For a payment amount field, the partitions aren't just valid/invalid numbers. They include: zero, positive integers, positive decimals, amounts with different decimal places (1, 1.0, 1.00, 1.000), currency-specific minimum denominations, amounts that cross tax thresholds, and amounts that trigger fraud detection.
I always combine EP with BVA — EP tells me which classes exist, BVA tells me to focus on the boundaries between classes. Together they give systematic coverage with minimal redundancy."
EP Theory
EQUIVALENCE PARTITIONING — Core Principle
The input space is partitioned into classes where:
• All values in a class are processed by the same code path
• If one value in a class works, all values are expected to work
• If one value fails, all values are expected to fail
Rules for valid partitioning:
1. Classes must be MUTUALLY EXCLUSIVE (no overlap)
2. Classes must be COLLECTIVELY EXHAUSTIVE (cover all inputs)
3. One representative per class is sufficient
Benefits:
• Reduces test count dramatically
• Ensures coverage of each behavioral path
• Identifies missing test areas systematically
Worked Example: User Registration Email Field
Specification: Email must be a valid format, max 254 characters, not already registered.
ASCII letters, unicode, numbers, special chars, very long, single char, empty
Date field
Past, today, future, leap day, month boundaries, epoch, far future
Amount field
Zero, minimum denomination, integer, decimal, max precision, overflow, negative
File upload
Empty file, 1 byte, normal, max size, just over max, corrupt, wrong extension
Search query
Empty, single char, normal, max length, SQL injection, XSS, unicode, boolean operators
Common Mistakes to Avoid
❌ Only creating "valid" and "invalid" partitions (too coarse)
❌ Overlapping partitions (value belongs to two classes — ambiguous)
❌ Not covering the "empty/null/missing" partition
❌ Ignoring output partitions (different outputs suggest different input classes)
❌ Using EP alone without BVA (misses boundary errors)
❌ Not considering the data type of the partition (string "0" vs number 0)
Follow-Up Questions
"How do you identify equivalence classes when there's no specification?"
→ Look at the code (if accessible), examine error messages for different inputs, test systematically and observe where behavior changes, and use domain knowledge about common patterns.
"What's the minimum number of test cases for N partitions?"
→ N tests (one per partition) for single-input problems. For multi-input: multiply the dimensions if testing all combinations, or use pairwise to reduce.
"When is a single representative per partition not enough?"
→ When you suspect the processing is not uniform within the class (e.g., rounding might differ for 2-decimal vs 3-decimal amounts within the "valid" class).
Demonstrate that you recognize decision tables as the right tool for combinatorial business rules — where behavior depends on combinations of conditions, not individual inputs.
Interview Answer (2-3 minutes)
"I use decision tables when the system's behavior depends on combinations of conditions rather than individual inputs. If changing the value of one condition changes the expected outcome only when combined with specific values of other conditions, that's a decision table problem.
The classic example: a discount system where the discount depends on whether the customer is a member, whether they have a coupon, and whether the item is on sale. Each combination produces a different rule. Testing each condition independently would miss the interaction effects.
The process is: list all conditions (inputs), list all possible actions (outputs), enumerate all combinations (2^N for binary conditions), define the expected action for each combination, and then reduce by merging rules where a condition doesn't matter ('don't care' values).
Decision tables are especially valuable for: insurance underwriting rules, pricing engines, permission systems, notification logic, approval workflows, and any business rule that stakeholders describe with 'if... and... and... then...' language."
Decision Table Theory
DECISION TABLE STRUCTURE
┌───────────────────────────────────────────────┐
│ CONDITIONS │ Rule 1 │ Rule 2 │ ... │ Rule N │
├───────────────────────────────────────────────┤
│ Condition 1 │ T/F │ T/F │ │ T/F │
│ Condition 2 │ T/F │ T/F │ │ T/F │
│ Condition 3 │ T/F │ T/F │ │ T/F │
├───────────────────────────────────────────────┤
│ ACTIONS │ │ │ │ │
├───────────────────────────────────────────────┤
│ Action A │ X │ │ │ X │
│ Action B │ │ X │ │ │
│ Action C │ X │ X │ │ │
└───────────────────────────────────────────────┘
Number of rules = 2^(number of binary conditions)
3 conditions = 8 rules
4 conditions = 16 rules
5 conditions = 32 rules (consider pairwise reduction)
Worked Example: E-Commerce Discount Rules
Business rules:
Members get 10% base discount
Coupons add 5% discount
Items on sale already have 15% applied — no additional discounts stack
VIP members get 20% but coupons don't stack with VIP
Invalid/expired coupons are rejected with an error
Conditions:
Is Member? (Y/N)
Is VIP? (Y/N) — note: VIP implies Member
Has Valid Coupon? (Y/N)
Item on Sale? (Y/N)
Full Decision Table:
Rule
Member?
VIP?
Valid Coupon?
On Sale?
Expected Discount
Notes
R1
N
N
N
N
0%
No discount applies
R2
N
N
N
Y
15%
Sale price only
R3
N
N
Y
N
5%
Coupon only
R4
N
N
Y
Y
15%
Sale — no stacking
R5
Y
N
N
N
10%
Member discount
R6
Y
N
N
Y
15%
Sale overrides member
R7
Y
N
Y
N
15%
Member 10% + Coupon 5%
R8
Y
N
Y
Y
15%
Sale — no stacking
R9
Y
Y
N
N
20%
VIP discount
R10
Y
Y
N
Y
15%
Sale — no stacking
R11
Y
Y
Y
N
20%
VIP — coupon doesn't stack
R12
Y
Y
Y
Y
15%
Sale — no stacking
R13
N
Y
-
-
INVALID
Can't be VIP without membership
Observations for testing:
Rules R4, R6, R8, R10, R12 all result in 15% → "On Sale" dominates
Rule R13 is an impossible state — but test it anyway (data integrity)
Worked Example: Loan Approval System
Conditions:
Credit Score: High / Medium / Low
Employment: Employed / Unemployed
Debt-to-Income Ratio: ≤40% / >40%
Loan Amount: ≤$50K / >$50K
Decision Table (partial — key rules):
Rule
Credit
Employment
DTI
Amount
Decision
R1
High
Employed
≤40%
≤$50K
Auto-approve
R2
High
Employed
≤40%
>$50K
Approve with review
R3
High
Employed
>40%
≤$50K
Approve with conditions
R4
High
Unemployed
≤40%
≤$50K
Manual review
R5
Medium
Employed
≤40%
≤$50K
Approve with conditions
R6
Medium
Employed
>40%
Any
Manual review
R7
Low
Any
Any
Any
Decline
R8
Any
Unemployed
>40%
>$50K
Decline
Reduction Techniques
When the full table is too large (>16 rules), reduce using:
Don't-care values (-): If a condition doesn't affect the outcome for a rule, mark it "-" and merge rules
Impossible combinations: Eliminate states that can't occur (e.g., VIP without membership)
Pairwise coverage: Instead of all combinations, cover every pair of conditions
Risk-based selection: Full coverage for high-risk rules, representative coverage for low-risk
When to Use Decision Tables vs. Other Techniques
Situation
Best Technique
Multiple conditions interact to determine output
Decision Table ✓
Single input with boundaries
BVA + EP
Sequential states/transitions
State Transition
Many variables, too many combinations
Pairwise
Time/sequence-dependent behavior
State Transition
Complex rule with no clear conditions
Exploratory
Common Mistakes to Avoid
❌ Missing combinations (incomplete table)
❌ Overlapping rules (ambiguous — which discount applies?)
❌ Not testing "impossible" combinations (they might happen due to bugs)
❌ Only testing the positive rules (skip negative/error rules)
❌ Not validating the table with business stakeholders
❌ Creating a table for a simple if-else (overkill)
Follow-Up Questions
"How do you handle decision tables with more than 5 conditions?"
→ At 5 conditions, you have 32 rules. Use: don't-care reduction, pairwise coverage for lower-risk areas, and full coverage only for high-risk combinations. Or decompose into sub-tables.
"How do you verify your decision table is correct?"
→ Review with the business owner. Look for: completeness (all combinations covered), consistency (no contradictions), and missing rules (what happens for unlisted combinations?).
"Can you automate decision table testing?"
→ Yes — parameterized/data-driven tests are ideal. The table becomes the test data source, with each row becoming a test case. Very efficient to implement.
Practice Exercise
Create a decision table for this scenario:
A streaming service determines pricing based on: plan type (Basic/Standard/Premium), annual vs monthly billing, student discount eligibility, and promotional code validity. Annual gets 20% off, student gets 15% off, promos vary. No stacking of student + promo.
Q4How do you derive state transitions from a workflow?#
Objective
Demonstrate that you can model complex system behavior as states, transitions, and guards — revealing hidden test cases that linear thinking misses.
Interview Answer (2-3 minutes)
"State transition testing is critical for any system where behavior depends on current state and history — not just current input. Login flows, order lifecycles, subscription management, and payment processing are all state machines.
My process is: First, identify all possible states the system can be in. Second, identify all events/triggers that cause transitions. Third, map which transitions are valid (should work) and which are invalid (should be rejected). Fourth, identify guards — conditions that must be true for a transition to occur.
The real testing value comes from invalid transitions. Every state machine has a 'should not be possible' set of transitions — and bugs often allow them. Can you cancel an already-shipped order? Can you re-submit a payment that's already processed? Can you edit a locked record?
I use a state transition table (state × event matrix) to ensure complete coverage. For N states and M events, I have N×M cells to verify — either the transition succeeds to the correct target state, or it's properly rejected."
State Transition Diagram: Order Lifecycle
┌──────────────┐
┌────────▶│ CREATED │◀── create order
│ └──────┬───────┘
│ │ pay
│ ▼
│ ┌──────────────┐
│ ┌───▶│ PAID │
│ │ └──────┬───────┘
│ │ │ ship
│ │ ▼
│ │ ┌──────────────┐
│ │ │ SHIPPED │
│ │ └──────┬───────┘
│ │ │ deliver
│ │ ▼
│ │ ┌──────────────┐
│ │ │ DELIVERED │
│ │ └──────┬───────┘
│ │ │ return (within 30 days)
│ │ ▼
│ │ ┌──────────────┐
│ │ │ RETURNED │
│ │ └──────────────┘
│ │
│ │ cancel (from CREATED or PAID only)
│ │ │
│ │ ▼
│ │ ┌──────────────┐
└────┴───▶│ CANCELLED │
└──────────────┘
Guards:
- cancel: only from CREATED or PAID states
- return: only within 30 days of delivery
- ship: requires warehouse confirmation
State Transition Table (State × Event Matrix)
Current State
Pay
Ship
Deliver
Cancel
Return
CREATED
→ PAID
✗ Invalid
✗ Invalid
→ CANCELLED
✗ Invalid
PAID
✗ Duplicate
→ SHIPPED
✗ Invalid
→ CANCELLED
✗ Invalid
SHIPPED
✗ Invalid
✗ Duplicate
→ DELIVERED
✗ Invalid (too late)
✗ Invalid
DELIVERED
✗ Invalid
✗ Invalid
✗ Duplicate
✗ Invalid
→ RETURNED*
CANCELLED
✗ Invalid
✗ Invalid
✗ Invalid
✗ Duplicate
✗ Invalid
RETURNED
✗ Invalid
✗ Invalid
✗ Invalid
✗ Invalid
✗ Duplicate
*Guard: within 30 days
Test Cases from State Transition Table
Valid transitions (happy path):
TC-01: CREATED → pay → PAID
TC-02: PAID → ship → SHIPPED
TC-03: SHIPPED → deliver → DELIVERED
TC-04: DELIVERED → return (day 1) → RETURNED
TC-05: CREATED → cancel → CANCELLED
TC-06: PAID → cancel → CANCELLED
Invalid transitions (must be rejected):
TC-07: CREATED → ship → ERROR (can't ship unpaid order)
TC-08: SHIPPED → cancel → ERROR (too late to cancel)
TC-12: PAID → pay again → ERROR (idempotent or rejected)
TC-13: SHIPPED → ship again → ERROR (already shipped)
Sequence testing (path coverage):
TC-14: CREATED → PAID → SHIPPED → DELIVERED → RETURNED (full cycle)
TC-15: CREATED → CANCELLED (short cycle)
TC-16: CREATED → PAID → CANCELLED (mid-cycle cancel)
Coverage Levels for State Transition Testing
Level
What It Covers
Test Count
0-switch
Each state visited at least once
= number of states
1-switch
Each valid transition exercised
= number of valid transitions
2-switch
Each valid pair of consecutive transitions
Higher — useful for sequence bugs
All transitions
All cells in state×event matrix (valid AND invalid)
= states × events
Round-trip
All cycles (loops) in the state machine
Finds infinite-loop bugs
Worked Example: Account Authentication States
States: ACTIVE, LOCKED, SUSPENDED, DEACTIVATED, PENDING_VERIFICATION
ACTIVE:
→ login_success → ACTIVE (stay)
→ 3_failed_attempts → LOCKED
→ admin_suspend → SUSPENDED
→ user_deactivate → DEACTIVATED
LOCKED:
→ reset_password → ACTIVE (guard: valid reset link)
→ admin_unlock → ACTIVE
→ 30_days_pass → DEACTIVATED (auto-cleanup)
SUSPENDED:
→ admin_reactivate → ACTIVE
→ 90_days_pass → DEACTIVATED
DEACTIVATED:
→ reactivation_request → PENDING_VERIFICATION
→ (terminal state for most actions)
PENDING_VERIFICATION:
→ verify_success → ACTIVE
→ verify_timeout → DEACTIVATED
Common Mistakes to Avoid
❌ Only testing happy path transitions (missing invalid transition tests)
❌ Not testing what happens with repeated actions in the same state
❌ Ignoring guard conditions (time-based, permission-based)
❌ Not testing concurrent transitions (two events hit the same order simultaneously)
❌ Missing states (what happens to an order if the system crashes mid-transition?)
❌ Not testing recovery from each state (what if you need to "fix" data?)
Follow-Up Questions
"How do you handle implicit states?"
→ Look for states that aren't named but exist: "pending approval," "partially shipped," "payment processing" (in-flight state). These often have the most bugs because they're overlooked.
"How do you test concurrent state transitions?"
→ Race conditions: Two users cancel the same order simultaneously. Two payments hit the same invoice. Use thread-based tests or API-level concurrent requests.
"How do you model state transitions for a real-time system?"
→ Add time as a dimension. Some transitions have timeouts (auto-lock after inactivity). Others have windows (return within 30 days). Test at and around these time boundaries.
Q5What is pairwise testing and when is it insufficient?#
Objective
Show that you understand pairwise as an optimization technique for combinatorial testing — and critically, when it's NOT enough.
Interview Answer (2-3 minutes)
"Pairwise testing is a combinatorial reduction technique based on the empirical finding that most software defects are triggered by the interaction of at most two parameters. So instead of testing all possible combinations (which grows exponentially), we create a test set that covers every possible pair of values between any two parameters.
For example, if I have 4 parameters with 3 values each, exhaustive testing requires 3^4 = 81 combinations. Pairwise testing can achieve every pair coverage in about 9-12 test cases — a 85-90% reduction.
I use pairwise for configuration testing: browser × OS × screen resolution × network speed. Or for feature interaction: payment method × shipping option × discount type × user type.
However, pairwise is INSUFFICIENT when: defects require three or more factors to interact (use 3-wise or higher), when all combinations are genuinely high-risk (use exhaustive), when the specification demands full coverage (compliance), or when combinations have business meaning that would be missed by random pairing."
Pairwise Theory
PAIRWISE TESTING — Core Principle
Given: N parameters, each with multiple values
Goal: Create smallest test set where every pair of values
from any two parameters appears at least once
Exhaustive: |V1| × |V2| × |V3| × ... × |Vn| combinations
Pairwise: Approximately max(|Vi|) × max(|Vj|) tests
Empirical basis:
• 70% of defects are caused by a single parameter value
• 90% of defects are caused by pairwise interactions
• 97% of defects are caused by 3-wise interactions
• Nearly 100% by 4-wise interactions
Implication: Pairwise catches ~90% of interaction defects
with a fraction of the test cases.
Worked Example: Cross-Browser Testing
Parameters:
Browser: Chrome, Firefox, Safari, Edge (4 values)
OS: Windows 11, macOS, Ubuntu, iOS, Android (5 values)
Result: 16 tests instead of 180 — every pair covered ✓
Tools for Pairwise Generation
Tool
Platform
Notes
PICT (Microsoft)
CLI
Free, powerful, supports constraints
AllPairs
Web/CLI
Classic tool
Hexawise
Web
Commercial, visual
Jenny
CLI
Open source
PairwiseOnline
Web
Quick and simple
When Pairwise Is INSUFFICIENT
Situation
Why Pairwise Fails
Better Approach
3+ factors must interact
Pairwise misses 3-way interactions
3-wise or exhaustive for critical combos
Compliance/certification
Must demonstrate ALL combinations tested
Exhaustive (or risk-based subset with justification)
Financial calculations
Specific combinations have business meaning
Decision table for business rules
Safety-critical systems
Missing one combination could be catastrophic
Higher-order coverage (4-wise, exhaustive)
Small parameter space
Exhaustive is already manageable (<30 combos)
Just test all combinations
Known problematic combinations
Historical defects in specific configurations
Add forced combos to pairwise set
Pairwise + Constraints
Real-world parameters have constraints (invalid combinations):
# PICT input file with constraints
Browser: Chrome, Firefox, Safari, Edge
OS: Windows, macOS, iOS, Android
# Constraints:
IF [OS] = "iOS" THEN [Browser] IN {"Safari", "Chrome"};
IF [OS] = "macOS" THEN [Browser] <> "Edge";
IF [OS] = "Android" THEN [Browser] IN {"Chrome", "Firefox"};
Common Mistakes to Avoid
❌ Applying pairwise when exhaustive is feasible (e.g., 3 params × 2 values = only 8 combos)
❌ Not adding constraints (generates invalid/impossible combos)
❌ Treating pairwise as sufficient for all combinatorial problems
❌ Not supplementing with known-risky combinations
❌ Using pairwise for sequential/ordered problems (use state transition instead)
❌ Ignoring the 10% of defects that require 3+ factor interaction
Follow-Up Questions
"How do you decide between pairwise, 3-wise, and exhaustive?"
→ Based on risk and feasibility. Pairwise for low-medium risk with many parameters. 3-wise for higher risk. Exhaustive for critical paths with manageable combinations. Cost-benefit always.
"How do you handle it when the pairwise set generates a known-invalid combination?"
→ Add constraints to the tool to exclude impossible combinations (e.g., Safari on Windows desktop). Or mark rows as "skip" and replace with valid alternatives.
"Can you prove pairwise provides adequate coverage?"
→ Cite empirical research (90% of defects from pairwise interactions). Track: defects found with pairwise coverage vs. those requiring higher-order. For most features, pairwise + targeted supplements is sufficient.
Show that error guessing is not random — it's experience-based heuristic testing that supplements systematic techniques.
Interview Answer (2-3 minutes)
"Error guessing is the application of tester experience and domain knowledge to predict where defects are likely to hide. It's not a replacement for systematic techniques — it's a supplement that catches issues that formal techniques miss.
I use error guessing responsibly by: structuring it (not random), documenting it (not ad hoc), and using it after systematic techniques (not instead of them).
My error guessing is organized by heuristic categories. I maintain a personal 'bug catalog' from years of testing — common error patterns that I check for every time. Things like: null handling, empty strings, concurrent access, timezone issues, Unicode/emoji, very large inputs, special characters in names (O'Brien, García), network interruption during write operations, cache serving stale data, and off-by-one in pagination.
The 'responsible' part means I document my error guesses as test cases or exploratory notes, not just try things randomly. If I find something, it becomes a repeatable test. If I don't find something, the record shows I checked."
Error Guessing Heuristic Categories
STRUCTURED ERROR GUESSING — Categories
1. INPUT HEURISTICS
├── Null / empty / missing
├── Very long strings (beyond expected max)
├── Special characters: ' " < > & \ / ; -- /* */
├── Unicode: emoji 🎉, RTL text, zero-width chars
├── Leading/trailing whitespace
├── Numeric as string, string as numeric
└── Boundary integers: 0, -1, MAX_INT, MIN_INT
2. STATE HEURISTICS
├── Operation on deleted/archived item
├── Concurrent modification by two users
├── Rapid repeated actions (double-click, spam submit)
├── Action during state transition (in-progress)
├── Resume after timeout/expiry
└── Back button / refresh during submission
3. ENVIRONMENT HEURISTICS
├── Slow network / packet loss
├── Network disconnect during write
├── Time zone differences (client vs server)
├── Clock skew between servers
├── Low disk space / memory pressure
└── Different locale/language settings
4. DATA HEURISTICS
├── Data with apostrophes: O'Brien, D'Angelo
├── Names with accents: García, Müller, Ñoño
├── Very long email addresses (valid but uncommon)
├── Zero amounts, zero quantities
├── Dates: Feb 29, Dec 31, Jan 1, DST transitions
└── Mixed case sensitivity
5. INTEGRATION HEURISTICS
├── Dependency returns error/timeout
├── Dependency returns unexpected format
├── Dependency returns slowly
├── Duplicate events from message queue
├── Out-of-order events
└── Stale cache after update
When to Apply Error Guessing
Timing
Purpose
After systematic techniques
Fill gaps that BVA/EP/DT miss
During exploratory sessions
Guide charter-based exploration
After production incidents
Check if similar patterns exist elsewhere
When testing unfamiliar areas
Apply universal heuristics to new domains
Before release (final pass)
Quick "experience sweep" for common gotchas
Error Guess Checklist for Common Features
For any form/input:
Submit empty form
Submit with all optional fields empty
Paste extremely long text (10,000+ chars)
Input with HTML/script tags
Input with SQL characters (' OR 1=1 --)
Submit twice rapidly (double-click)
Submit, then use back button, then submit again
Input emoji in every text field
Input in right-to-left language (Arabic/Hebrew)
For any API:
Missing required field
Extra unexpected field
Wrong data type for each field
Empty body
Very large body (>1MB)
Invalid JSON (malformed)
Expired/invalid auth token
Correct auth but wrong permissions
Common Mistakes to Avoid
❌ Using error guessing as the ONLY technique (misses systematic coverage)
❌ Not documenting what you guessed and tested (unrepeatable)
❌ Same guesses every time without learning new patterns
❌ Guessing without domain knowledge (random ≠ error guessing)
❌ Not sharing your heuristics with the team (knowledge hoarding)
Follow-Up Questions
"How do you build your error guessing knowledge?"
→ Production incident analysis, defect pattern reviews, OWASP checklists, testing community resources, and personal experience catalog. I update my heuristic list after every significant bug I find.
"How is error guessing different from exploratory testing?"
→ Error guessing is a technique (predicting specific defects). Exploratory testing is an approach (simultaneous learning, design, and execution). You USE error guessing WITHIN exploratory sessions.
Demonstrate deep awareness of the notoriously complex domain of date/time testing — where subtle bugs cause silent data corruption.
Interview Answer (2-3 minutes)
"Date and timezone testing is one of the highest-value areas for finding subtle bugs because developers consistently underestimate the complexity. The issues are: leap years, month-end boundaries, DST transitions, timezone conversions, server vs. client time, UTC vs. local time, and the fact that 'today' is a different date for different users simultaneously.
I organize my date/time testing into three categories: calendar boundaries, timezone/offset issues, and temporal logic.
Calendar boundaries: February 28/29, month-ends (28, 29, 30, 31 days), year-end (Dec 31 → Jan 1), leap year rules (divisible by 4, except 100, except 400).
Timezone issues: What happens when a user in UTC+12 and a user in UTC-12 interact? Their 'today' might differ by 2 calendar days. What time zone does the server use? Are stored timestamps UTC? What happens at DST transitions — does an event at 2:30 AM disappear or duplicate?
Temporal logic: Expirations (does a 30-day trial started on Jan 31 expire on Feb 28, Mar 1, or Mar 2?), scheduling across DST, sort order of events near midnight, and 'business day' calculations."
Date/Time Test Case Catalog
Calendar Boundary Tests:
Scenario
Test Input
Common Bug
Leap year date
Feb 29, 2024
System rejects valid date
Non-leap year Feb 29
Feb 29, 2023
System accepts invalid date
Month-end rollover
Jan 31 + 1 month = ?
Becomes Mar 3 instead of Feb 28
Year-end
Dec 31, 2024 → Jan 1, 2025
Year doesn't increment
Century leap year
Feb 29, 2000 (valid)
Treated as non-leap
Century non-leap
Feb 29, 1900 (invalid)
Treated as leap
Epoch boundary
Jan 1, 1970 / timestamps = 0
Null/missing treated as epoch
Y2038 problem
Jan 19, 2038 + 1 second
32-bit timestamp overflow
Date of birth: today
User born today
Age calculated as 0 or -1
Far future date
Year 9999
Overflow, display issues
Timezone Tests:
Scenario
Test Setup
Common Bug
User in UTC-12, server UTC
Schedule event for "today"
Event shows on wrong day
DST spring forward
Event at 2:30 AM on DST day
Time doesn't exist — gap
DST fall back
Event at 1:30 AM on DST day
Time is ambiguous — repeated
Cross-timezone meeting
User A (EST) books for 3 PM
User B (PST) sees wrong time
Server restart across DST
System scheduled jobs
Jobs skip or duplicate
Mobile user crosses timezone
Start action in TZ A, complete in TZ B
Timestamps inconsistent
Display: UTC vs local
Event stored UTC, shown local
Wrong date for user near midnight
International Date Line
User in UTC+14 (Kiribati)
"Tomorrow" for most of the world
Temporal Logic Tests:
Scenario
Test Input
Common Bug
30-day trial from Jan 31
Start: Jan 31
Does it expire Feb 28 or Mar 2?
"1 month" addition
Start: Jan 31
Apr 31 doesn't exist → which day?
Subscription renewal
Monthly from Jan 29
Feb doesn't have 29 in non-leap
Deadline "end of day"
Which timezone's end of day?
Server or user's timezone?
"Business days"
Skip weekends and holidays
Which country's holidays?
Age calculation today
Born Feb 29
Are they 0 or do they "not exist" in non-leap?
Event ordering near midnight
Events at 23:59:59 and 00:00:01
Cross-day sorting issues
DST Transition Testing Diagram
SPRING FORWARD (March, US):
1:00 AM → 1:30 AM → 1:59 AM → 3:00 AM (2:00-2:59 doesn't exist)
Test: Schedule event at 2:30 AM on spring-forward day
Expected: System should either reject, adjust to 3:30, or warn user
FALL BACK (November, US):
1:00 AM → 1:30 AM → 1:59 AM → 1:00 AM again (1:00-1:59 repeats)
Test: Event at 1:30 AM on fall-back day — which 1:30?
Expected: System should disambiguate (first or second occurrence)
Common Mistakes to Avoid
❌ Only testing dates in your own timezone
❌ Assuming months all have 30 days
❌ Not testing at DST transitions
❌ Hardcoding timezone offsets (they change!)
❌ Testing only with recent dates (miss epoch, far-future)
❌ Not testing what "null" date means (epoch? display bug? crash?)
Follow-Up Questions
"How do you test a scheduling system across timezones?"
→ Test with users in UTC-12, UTC, and UTC+14 simultaneously. Verify: events show correct local time, notifications fire at correct local time, "today" view is correct for each user.
"What's the difference between UTC and GMT?"
→ For testing purposes, identical. But UTC is the standard — GMT is a timezone that happens to equal UTC. Some systems handle them differently (bug!).
Q8How do you test numeric rounding and precision?#
Objective
Show awareness of floating-point issues, currency rounding rules, and precision loss — common sources of silent financial bugs.
Interview Answer (2-3 minutes)
"Numeric precision testing is critical for any system handling money, measurements, or scientific calculations. The fundamental issue is that computers can't represent all decimal numbers exactly in floating-point — 0.1 + 0.2 = 0.30000000000000004 in most languages.
For financial systems, I test: rounding modes (banker's rounding vs. standard), precision (how many decimal places are preserved), accumulation (do small rounding errors accumulate over many operations), and boundary amounts (where rounding direction changes).
My test strategy focuses on three areas: single-operation precision (does one calculation produce the correct result?), accumulated precision (do 1000 operations produce the correct total?), and display vs. storage precision (is the value stored accurately even if displayed rounded?).
A concrete example: splitting a $10.00 bill three ways should produce $3.33 + $3.33 + $3.34 = $10.00. But naive division gives $3.333333... × 3 = $9.999999... A penny vanishes. I test for these 'penny loss' scenarios in every financial feature."
Precision Test Cases
Scenario
Input
Naive Result
Correct Result
Bug Type
0.1 + 0.2
—
0.30000000000000004
0.30
Floating point
$10 / 3
Split equally
$3.33 × 3 = $9.99
$3.33 + $3.33 + $3.34
Penny loss
5% tax on $1.01
—
$0.0505
$0.05 or $0.06?
Rounding mode
Sum of 1000 × $0.001
—
$0.9999...
$1.00
Accumulation
$999,999.99 + $0.01
—
$1,000,000.00
$1,000,000.00
Boundary crossing
Currency conversion
$1.00 → €0.85 → $1.00
$0.9975
$1.00 or documented loss
Round-trip loss
Rounding Mode Tests
Mode
2.5 rounds to
3.5 rounds to
When Used
Round Half Up
3
4
Most consumer apps
Round Half Down
2
3
Rare
Round Half Even (Banker's)
2
4
Financial systems
Round Toward Zero (Truncate)
2
3
Tax in some jurisdictions
Round Away From Zero
3
4
Rare
Test: Verify which rounding mode is implemented
Input: $2.555 (round to 2 decimals)
Half Up → $2.56
Banker's → $2.56 (5 rounds to even, 6 is even)
Truncate → $2.55
Which does the system use? Does it match the spec?
Accumulation Error Testing
// Test: Does small rounding accumulate?BigDecimaltotal= BigDecimal.ZERO;
for (inti=0; i < 1000; i++) {
total = total.add(newBigDecimal("0.01"));
}
// Expected: 10.00 (not 9.99999... or 10.00000001)
assertEquals(newBigDecimal("10.00"), total);
// Test: Does percentage distribution sum correctly?BigDecimalamount=newBigDecimal("100.00");
BigDecimal[] shares= splitEvenly(amount, 3);
// shares[0] = 33.33, shares[1] = 33.33, shares[2] = 33.34// SUM MUST = 100.00 exactly
Currency-Specific Edge Cases
Currency
Smallest Unit
Edge Case
USD/EUR/GBP
0.01
Can't charge $0.001 — round or reject?
JPY
1
No decimals — $1.50 → ¥225 or ¥226?
BHD (Bahraini Dinar)
0.001
Three decimal places
Bitcoin
0.00000001 (satoshi)
Eight decimal places
Common Mistakes to Avoid
❌ Using float/double for currency (use BigDecimal or integer cents)
❌ Only testing round numbers ($10.00, $100.00)
❌ Not testing the "split the remainder" problem
❌ Ignoring display rounding vs. storage value
❌ Not testing currency conversion round-trips
❌ Assuming all currencies have 2 decimal places
Follow-Up Questions
"How should a financial system store currency internally?"
→ As integers (cents/minor units) or BigDecimal. Never as float/double. Store $10.50 as 1050 cents. This eliminates floating-point precision issues entirely.
"How do you test tax calculations across jurisdictions?"
→ Each jurisdiction has specific rounding rules. Test: the rounding mode per jurisdiction, the application order (round per item vs. round the total), and the accumulation across line items.
Show comprehensive test thinking around a common but complex validation scenario — combining BVA, EP, negative testing, and security awareness.
Interview Answer (2-3 minutes)
"Password rules are a great example of where multiple test design techniques combine. Let me demonstrate with a typical rule: 'Password must be 8-64 characters with at least one uppercase, one lowercase, one digit, and one special character.'
I'd apply BVA to the length (7, 8, 64, 65 characters), EP to the character requirements (all uppercase, all lowercase, mixed, etc.), and decision tables for the combination of requirements. But I'd also add security-focused error guessing: common passwords that meet the rules technically, Unicode characters, SQL injection attempts in the password field, and information leakage in error messages.
The subtlety that seniors catch: I test what the error messages reveal. A good system says 'Password does not meet requirements' — not 'Password must contain at least one uppercase letter' (which helps an attacker narrow down what they're missing). And I test that the rules apply consistently: registration, change password, and reset password should enforce the same rules."
❌ Only testing valid passwords (missing rejection paths)
❌ Not testing that the same rules apply everywhere (registration, change, reset)
❌ Not testing error message information leakage
❌ Ignoring unicode/emoji handling in passwords
❌ Not testing password history (reuse prevention)
❌ Not verifying passwords are hashed (never stored in plain text)
Follow-Up Questions
"How do you test password hashing?"
→ Verify: database stores hash (not plaintext), same password doesn't produce same hash (salting), changing password invalidates old hash, and timing attacks are mitigated (constant-time comparison).
"What about copy-paste in password fields?"
→ Controversial UX decision. Test that if paste is disabled, the user knows why. If paste is enabled, test that password managers work correctly. Modern guidance (NIST) recommends allowing paste.
Show systematic testing of a feature with multiple interacting inputs, state management, and performance implications.
Interview Answer (2-3 minutes)
"Search and filtering is a rich testing area because it combines input validation, combinatorial logic, data sensitivity, performance, and UX. I structure my approach in layers.
First, individual filter accuracy: Does each filter return correct results? If I filter by 'price: $50-$100,' are all results actually in that range? Are none missing? This is functional correctness.
Second, filter combinations: Do filters interact correctly? Does 'category: electronics' + 'price: $50-$100' return only electronics in that price range? This is where bugs hide — incorrect AND/OR logic.
Third, data edge cases: Empty results, one result, filters with no matching data, special characters in filter values, very long query strings, and unicode search terms.
Fourth, state and UX: Are filters preserved across page navigation? What happens on back-button? Are filter counts accurate? Is the clear-all function correct? Does the URL reflect the filter state?
Fifth, performance: Does adding filters improve or degrade performance? Is the filtered result set fetched in acceptable time even on large datasets?"
Search Filter Test Matrix
Individual Filter Tests:
Filter Type
Valid Tests
Edge Tests
Invalid Tests
Text search
"laptop" → matches
"" (empty) → all results
Special chars: < > &
Price range
$50-$100 → correct range
$0-$0 → zero-dollar items
$100-$50 (reversed)
Category
"Electronics" → only electronics
All categories selected
Non-existent category
Date range
Last 7 days → recent items
Today only
Future dates
Rating
≥4 stars → correct items
0 stars, 5 stars
>5, <0
Boolean
In stock: yes → only in-stock
—
—
Multi-select
Colors: red, blue → both
All options selected
None selected
Combination Tests:
Scenario
Expected
Common Bug
Filter A + Filter B
Results match BOTH
OR logic instead of AND
Filter A + Filter B + Filter C
Results match ALL
One filter ignored silently
Filter that produces 0 results
"No results" message
Crash or infinite spinner
Filter + Sort
Sorted within filtered set
Sort ignores filter
Filter + Pagination
All pages are filtered
Page 2 shows unfiltered data
Filter + search text
Combined correctly
Text search overrides filters
State Management Tests:
Scenario
Expected
Apply filter → navigate to item → back button
Filters preserved
Apply filter → refresh page
Filters preserved (URL params)
Apply filter → share URL
Recipient sees same filters
Clear individual filter
Only that filter removed, others stay
Clear all filters
All filters reset, full results shown
Filter count indicators
Accurate count shown before applying
Performance Tests:
Scenario
Expectation
Filter on 1M+ record dataset
Results in <2 seconds
Type-ahead search with filter
Suggestions in <300ms
Multiple filters applied together
No cascading slow queries
Filter count calculation
Pre-computed or fast query
Common Mistakes to Avoid
❌ Only testing that results appear (not verifying they're CORRECT)
❌ Not testing that excluded items are actually excluded
❌ Ignoring filter persistence across navigation
❌ Not testing filter performance on large datasets
❌ Missing the "0 results" state
❌ Not testing URL deep-linking for filter state
Follow-Up Questions
"How do you test search relevance?"
→ Define expected ranking for known queries. Test: does the most relevant result appear first? Is relevance consistent? Does partial matching work? Is relevance affected by filters?
"How do you test filters on a system with eventual consistency?"
→ An item added 1 second ago might not appear in filtered results yet. Test: what's the delay? Is the user informed? Does re-filtering show updated results?
Show that a simple "max file size" specification hides many boundary, error-handling, and UX test scenarios.
Interview Answer (2-3 minutes)
"A file-size limit seems simple but has many testing dimensions. I'd combine BVA for the size boundary, EP for different file types, error guessing for failure scenarios, and security testing for bypass attempts.
BVA on size: if the limit is 10MB, test at 9.99MB (accept), 10.00MB (accept or reject? — clarify the spec), and 10.01MB (reject). Also test 0 bytes (empty file), 1 byte (minimum), and extremely large files (1GB).
But beyond size, I'd ask: where is the limit enforced? Client-side JavaScript? Server-side? Both? If only client-side, I can bypass it with curl or Postman — security vulnerability. What's the error experience? Does the user know the limit before uploading? Does a 9.99MB file that almost succeeds give them anxiety?
I'd also test: upload interrupted at 50%, upload resumed, concurrent uploads, and what happens to a partially uploaded file after failure. The 'limit' feature is never just about size."
File Size Limit Test Cases
BVA (Limit: 10MB):
Test ID
File Size
Expected
Notes
FS-01
0 bytes (empty file)
Reject? Or accept?
Clarify spec
FS-02
1 byte
Accept
Minimum non-empty
FS-03
5 MB
Accept
Nominal
FS-04
9.99 MB
Accept
Just below limit
FS-05
10.00 MB (exactly)
Accept or reject?
Is limit inclusive?
FS-06
10.01 MB
Reject
Just above limit
FS-07
100 MB
Reject
Well above limit
FS-08
2 GB
Reject (gracefully)
Very large — no crash
Error Handling:
Scenario
Expected Behavior
File exceeds limit
Clear error message before upload starts (client-side check)
Upload interrupted at 50%
Partial file cleaned up, user can retry
Network timeout during upload
Graceful error, no file corruption
Server out of disk space
Meaningful error, no data loss
User closes browser mid-upload
Partial file cleaned up (server-side)
Multiple files where total exceeds limit
Clear messaging about which failed
Security Tests:
Test
Attack Vector
Expected
Bypass client-side check
Upload via API (no size check)
Server rejects
File extension spoofing
Rename .exe to .jpg
Server validates content-type
Archive bomb
10KB zip → 10GB expanded
Server detects and rejects
File name with path traversal
"../../../etc/passwd" as filename
Sanitized, no directory escape
Extremely long file name
500-char filename
Handled gracefully
UX Tests:
Scenario
Expected
User selects oversized file
Error shown immediately (before upload starts)
Progress indicator for large files
Shows progress, not frozen
Upload cancellation
User can cancel mid-upload
Clear message about limit
Limit shown in the UI proactively
Multiple file upload
Individual vs. total limit enforcement
Common Mistakes to Avoid
❌ Only testing at the exact limit (miss the ±1 boundaries)
❌ Only checking client-side enforcement (API might have no limit)
❌ Not testing what happens to failed/partial uploads (cleanup)
❌ Ignoring file content vs. declared size (zip bombs, spoofing)
❌ Not testing the user experience (when/how is the error shown?)
Demonstrate that multi-step forms have state management, navigation, persistence, and error-recovery complexity beyond single forms.
Interview Answer (2-3 minutes)
"Multi-step forms are essentially state machines with data persistence at each step. The complexity comes from navigation (forward, backward, skip), partial completion (save and resume), validation timing (per-step vs. final), and data dependency between steps.
My test approach covers four dimensions: Step-level validation (does each step validate correctly?), Navigation behavior (what happens on back, refresh, close?), Data flow (do earlier steps correctly influence later steps?), and State recovery (can you resume an incomplete form?).
A key senior insight: I test what happens when you go BACK and change a value that affects subsequent steps. For example, in a multi-step checkout: if step 1 selects 'domestic shipping' and step 3 calculates tax based on that, what happens if the user goes back to step 1 and changes to 'international'? Does step 3 recalculate?"
Multi-Step Form Test Dimensions
Navigation Matrix:
From
Action
Expected
Step 1
Next (valid data)
Go to Step 2, data preserved
Step 1
Next (invalid data)
Stay on Step 1, show errors
Step 2
Back
Return to Step 1, data preserved
Step 3
Back to Step 1
Jump back, Steps 2-3 data preserved
Step 2
Refresh browser
Stay on Step 2 (or restart?) — clarify spec
Step 3
Close browser, reopen
Resume at Step 3 (or restart?)
Step 2
Direct URL to Step 3
Blocked (must complete Step 2 first)
Any step
Session timeout
Graceful handling, data saved or cleared
Data Flow Tests:
Test
Scenario
Expected
Forward dependency
Step 2 options based on Step 1 selection
Step 2 reflects Step 1 choice
Backward edit
Change Step 1 after completing Step 3
Dependent steps recalculate
Optional step skipped
Skip Step 2 (if allowed)
Step 3 handles missing data
Data persistence
Complete Step 1, close, reopen
Step 1 data preserved
Pre-population
Previous data exists
Form pre-filled correctly
Validation Tests:
Scenario
Expected
Invalid data on current step
Cannot proceed, clear error shown
Valid step data but overall form invalid
Caught at submission or at dependent step
Server-side validation failure
Return to correct step with error
Per-field vs. per-step validation
Clarify: real-time or on-next?
Edge Cases:
Scenario
Expected
Double-click "Next"
Only advances once
Rapid back-forward clicking
No data loss or corruption
Open form in two tabs
No conflicts or data merge issues
Mobile: phone call interrupts form
Data preserved on return
Form timeout/expiry
Clear message, save or restart gracefully
User idle for 30 minutes mid-form
Session handling documented and tested
Common Mistakes to Avoid
❌ Only testing forward progression (missing back/skip/jump)
❌ Not testing data dependency between steps
❌ Ignoring browser refresh/close behavior
❌ Not testing concurrent form submission
❌ Only testing with ideal data (miss partial/empty states)
Show that negative testing is systematic — not just "enter bad data and see what happens."
Interview Answer (2-3 minutes)
"Negative testing verifies that the system gracefully handles invalid, unexpected, or malicious input. It's where you prove the system is robust, not just functional.
I organize negative tests into categories: invalid data types (string in numeric field), out-of-range values (exceeding boundaries), missing required data, duplicate submissions, wrong sequence of operations, insufficient permissions, and intentionally malicious input.
The key principle: every negative test must have a clear expected result. 'Enter invalid data' is not a test case — 'Enter a letter in the age field; expected: field rejects non-numeric input with message X' is a test case.
Senior insight: the best negative tests come from inverting the positive assumptions. For every happy path, I ask: 'What if the opposite were true?' If the happy path assumes authenticated user, test without auth. If it assumes valid JSON, test with malformed JSON. If it assumes the database is available, test when it's not."
Negative Test Case Taxonomy
NEGATIVE TEST CATEGORIES
1. INVALID INPUT
├── Wrong data type (string in number field)
├── Out of range (too low, too high)
├── Wrong format (invalid email, date format)
├── Incomplete data (required field missing)
├── Excess data (extra fields, oversized input)
└── Null / empty / whitespace-only
2. INVALID STATE
├── Action on deleted resource
├── Action on locked/archived resource
├── Action in wrong sequence (ship before pay)
├── Action after session expiry
└── Action during maintenance mode
3. INVALID ACCESS
├── Unauthenticated request
├── Authenticated but unauthorized (wrong role)
├── Expired token/session
├── Accessing another user's resource
└── Replayed/forged authentication
4. INVALID ENVIRONMENT
├── Network failure during operation
├── Dependency unavailable
├── Disk full / memory exhausted
├── Concurrent conflicting operations
└── Clock skew / time manipulation
5. MALICIOUS INPUT
├── SQL injection
├── XSS (script injection)
├── Path traversal
├── Command injection
├── Buffer overflow attempts
└── SSRF (server-side request forgery)
Expected Results for Negative Tests
Every negative test needs a specific expected behavior:
Scenario
❌ Bad Expected
✓ Good Expected
Invalid email
"Shows error"
"Shows 'Please enter a valid email address' below the field, field highlighted in red, form not submitted"
Unauthorized access
"Is rejected"
"Returns HTTP 403, response body: {error: 'Forbidden'}, no data leaked in response, event logged"
Network failure
"Handles it"
"Shows retry option within 3s, data not lost, no partial save, progress indicator stops"
Common Mistakes to Avoid
❌ No clear expected result (just "test what happens")
❌ Only testing one type of invalid input per field
❌ Missing the security dimension of negative testing
❌ Not verifying that error messages are helpful but not too informative
❌ Only testing at the UI level (API might accept invalid data that UI blocks)
Show that you go beyond documented boundaries to find implicit system limits that cause production failures.
Interview Answer (2-3 minutes)
"Hidden boundaries are limits that aren't in the specification but exist in the system — database column sizes, API payload limits, timeout configurations, memory allocations, rate limits, and queue depths. They cause the most dangerous production bugs because nobody tested for them.
I find hidden boundaries through: reading the code and configuration, testing incrementally until I find the break point, examining database schemas (VARCHAR(255) is a boundary!), checking infrastructure limits (load balancer timeouts, max connections), and studying production incidents (where did the system actually break?).
My approach is systematic exploration: I pick a dimension (input length, concurrent users, records in a list, API response time), and increase it gradually until the system behaves differently. That change point is a hidden boundary that needs a test case.
For example, I once found that a 'notes' field accepted any length in the UI but the database column was VARCHAR(4000). At 4001 characters, the system silently truncated the note. No error, no warning — data loss. The boundary was hidden from QA because nobody tested beyond 'reasonable' input."
Where Hidden Boundaries Live
Layer
Hidden Boundary Examples
Database
Column size (VARCHAR 255, TEXT 65535), index key length, row count limits
API/Network
Payload size (1MB default in many frameworks), URL length (2048 chars), header size
Infrastructure
Connection pool size, thread pool, queue depth, memory limits
Framework
Session storage, cookie size (4KB), form field count (1000 in PHP)
Undocumented caps (max items in cart, max results returned)
Browser
Local storage (5-10MB), URL bar length, concurrent connections per domain
Time
Session timeout, token expiry, cache TTL, scheduled job windows
How to Discover Hidden Boundaries
DISCOVERY METHODS
1. CODE/CONFIG REVIEW
├── Database schema: column types and sizes
├── Configuration files: timeout values, max sizes
├── Framework defaults: request body limits
└── Infrastructure: connection pools, queue sizes
2. INCREMENTAL PROBING
├── Start with expected maximum
├── Double it until behavior changes
├── Binary search for exact boundary
└── Document the discovered limit
3. PRODUCTION DATA ANALYSIS
├── What's the actual max seen in production?
├── How close are users to the limit?
├── What are the outliers doing?
└── Where have truncations/failures occurred?
4. INFRASTRUCTURE DOCUMENTATION
├── Cloud provider limits (AWS, GCP, Azure)
├── Load balancer configuration
├── CDN restrictions
└── DNS/SSL certificate boundaries
Example: Finding Hidden Boundaries in an E-Commerce System
Area Tested
Documented Limit
Actual Limit Found
Impact
Product title
"Enter title" (no limit stated)
200 chars (DB column)
Truncation at 201 chars
Items in cart
None stated
99 (UI display breaks at 100)
Cart total wrong above 99
Search query
None stated
1024 chars (URL parameter)
414 URI Too Long error
Concurrent sessions
None stated
5 (security policy)
6th session kills first
API results
"Returns matching products"
100 (pagination default)
User thinks only 100 exist
Upload concurrent
None stated
3 (server thread limit)
4th upload hangs forever
Common Mistakes to Avoid
❌ Only testing documented boundaries (most dangerous ones are undocumented)
❌ Assuming the database can store anything the UI accepts
❌ Not testing at infrastructure layer (timeouts, connection limits)
❌ Not checking third-party API limits
❌ Accepting "unlimited" at face value (everything has a limit)
Q15What is combinatorial explosion and how do you control it?#
Objective
Show that you understand the mathematical challenge of testing all combinations and can apply practical reduction strategies.
Interview Answer (2-3 minutes)
"Combinatorial explosion is what happens when multiple parameters each have multiple values, and the total number of possible combinations grows exponentially. 5 parameters with 4 values each = 4^5 = 1024 combinations. 10 parameters = over a million. You can't test them all.
I control it with four strategies: pairwise testing (covers 90% of interaction defects with a fraction of tests), risk-based selection (test all combinations only for critical paths), constraint reduction (eliminate impossible combinations), and equivalence partitioning (reduce values per parameter).
But the real senior skill is knowing WHEN full coverage is justified versus when pairwise is sufficient. For a payment system with 3 payment methods × 3 currencies × 4 shipping options = 36 combinations — just test all 36. But for a configuration matrix with 8 parameters × 5 values each = 390,625 combinations — pairwise is the only practical choice."
Cover every pair of values across any two parameters
85-95% reduction
Constraint elimination
Remove impossible/invalid combinations
10-50% reduction
EP on values
Reduce parameter values by combining equivalent ones
Variable
Risk-based focus
Only test all combinations for highest-risk params
Focus effort
Layered testing
Different depth at different test levels
Distribute coverage
Classification trees
Visual combination selection
Systematic reduction
Worked Example: E-Commerce Checkout
Parameters:
Payment: Credit Card, Debit, PayPal, Apple Pay (4)
Shipping: Standard, Express, Same-day, Pickup (4)
Coupon: None, Valid, Expired, Invalid format (4)
User type: Guest, Member, VIP (3)
Platform: Desktop, Mobile Web, iOS App, Android App (4)
Exhaustive: 4 × 4 × 4 × 3 × 4 = 768 combinations
Reduction approach:
Constraints: Apple Pay only on iOS/macOS; Same-day not for Guest → reduces some combos
Risk assessment: Payment × User type is highest risk → test all 12 combos
Pairwise for remaining parameters → ~20 test cases
Add back specific known-risky combos: VIP + expired coupon, Guest + Apple Pay (error)
Final test set: ~35 tests instead of 768 (95% reduction with ~95% defect coverage)
Common Mistakes to Avoid
❌ Testing all combinations for everything (impossible and unnecessary)
❌ Testing only one combination (grossly insufficient)
❌ Not recognizing when exhaustive IS feasible (small matrices)
❌ Applying pairwise without adding known-risky combinations back
❌ Ignoring constraints (testing impossible combinations wastes time)
Follow-Up Questions
"How do you justify to stakeholders that pairwise is sufficient?"
→ Cite research: ~90% of defects caused by 1-2 parameter interactions. Show: pairwise catches X% of defects at Y% of the cost. Track escaped defects attributable to missed combinations.
"What's 3-wise and when would you use it?"
→ Covers every triple of values across any three parameters. Use for higher-risk areas where 3-factor interactions are plausible (e.g., security, financial calculations). Typically 2-3× more tests than pairwise.
Q16How do you test default values and optional fields?#
Objective
Show that default values and optional fields are common sources of silent bugs — data that appears correct but isn't what the user intended.
Interview Answer (2-3 minutes)
"Default values and optional fields are deceptively complex. Defaults can mask user intent (did they deliberately choose the default, or did they not notice it?), and optional fields can create null-reference bugs downstream when code assumes they'll be populated.
For default values, I test: Is the default correct and documented? What happens if the user explicitly selects the same value as the default? Is 'user selected the default' stored differently than 'user didn't make a choice'? Does the default change based on context (locale, user type, history)? And critically: do downstream systems handle the difference between explicit selection and implicit default?
For optional fields, I test: What happens when the optional field is omitted entirely? What about null vs. empty string vs. whitespace? How do reports, filters, and searches handle records with missing optional data? Does the API documentation accurately reflect which fields are optional?"
Default Value Test Cases
Scenario
Test
Common Bug
Default shown correctly
Open form → verify pre-populated value
Wrong default after config change
Default submitted unchanged
Submit without modifying default
Stored as null instead of default value
Default overridden
Change default → submit → verify stored
Reverts to default on next edit
Default per context
Different user types see different defaults
Wrong default for context
Default after reset
Clear form → defaults restored
Some fields don't reset
Default in API
Omit optional field → check applied default
No default — field is null
Default documentation
Check docs match actual behavior
Docs say "USD" but default is "EUR"
Optional Field Test Cases
Scenario
Test
Expected
Field omitted (API)
Send request without optional field
Accepted, null or default stored
Field empty string
Send field: ""
Accepted or rejected? (clarify)
Field null explicitly
Send field: null
Same as omitted?
Field whitespace-only
Send field: " "
Treated as empty or as value?
Display when missing
View record with null optional field
Shows "—" or "N/A", not crash
Filter on optional
Filter by optional field when some records are null
Null records included or excluded?
Sort on optional
Sort by optional field with nulls
Nulls first or last? Consistent?
Export/report
Export records with null optional fields
Graceful handling, not "null" text
Search on optional
Search text in optional field
Records without field are NOT returned (not error)
API response
Optional field in response
Omitted or null? Consistent across endpoints?
The Null vs. Empty vs. Missing Distinction
THREE DIFFERENT STATES — Test each separately:
1. MISSING (field not present in request)
{ "name": "Ahmad" } ← bio field not included
2. NULL (field present with null value)
{ "name": "Ahmad", "bio": null } ← explicitly null
3. EMPTY STRING (field present but empty)
{ "name": "Ahmad", "bio": "" } ← present but empty
Many systems treat all three the same — but some don't!
Test: Does each produce the same stored value?
Test: Does each display the same way?
Test: Does search/filter treat them identically?
Common Mistakes to Avoid
❌ Assuming defaults are always correct (they change, they're context-dependent)
❌ Not distinguishing null from empty from missing
❌ Not testing downstream behavior when optional fields are absent
❌ Trusting that "optional" means "not important" (optional data may be critical for analytics)
❌ Not verifying defaults in different locales/contexts
Show that complex business rules require systematic combinatorial testing, boundary testing at rule thresholds, and rule interaction analysis.
Interview Answer (2-3 minutes)
"A rules engine is essentially a complex decision system where multiple conditions determine outcomes — often with priority, precedence, and conflict resolution. Testing requires: completeness (have I tested all rule combinations?), correctness (does each rule produce the right outcome?), conflict detection (what happens when multiple rules match?), and boundary precision (where exactly does each rule activate?).
My approach: First, I extract or build a decision table from the rules. Second, I identify boundaries between rule activations. Third, I test rule precedence and conflict resolution. Fourth, I test rule updates (do changes take effect immediately? Do they affect existing data?).
The most common bug in rules engines is precedence violation: Rule A says 'give 10% discount' and Rule B says 'give 20% discount' — both match the same order. Which wins? What if the answer depends on rule creation order (fragile!) rather than explicit priority?"
Rules Engine Test Framework
TESTING A RULES ENGINE
1. INDIVIDUAL RULE VERIFICATION
├── Each rule fires when conditions are met
├── Each rule does NOT fire when conditions are not met
├── Rule produces correct output/action
└── Rule boundary values (where rule activates/deactivates)
2. RULE INTERACTION
├── Two rules that can both match — which wins?
├── Priority/precedence testing
├── Stacking rules (discounts that add up)
├── Mutual exclusion (rules that should never both fire)
└── Cascade effects (rule A outcome triggers rule B)
3. RULE LIFECYCLE
├── New rule takes effect (when? immediately?)
├── Modified rule: new vs old behavior
├── Disabled rule: no longer fires
├── Rule effective date (future activation)
└── Rule retroactivity (does it affect existing records?)
4. EDGE CASES
├── No rules match (default behavior)
├── All rules match (conflict resolution)
├── Rule with invalid/impossible conditions
├── Performance with many rules (1000+)
└── Circular rule dependencies
Worked Example: Insurance Premium Rules
Rules:
R1: Age < 25 → premium × 1.5
R2: Age ≥ 65 → premium × 1.3
R3: No claims in 5 years → premium × 0.8
R4: Sports car → premium × 1.4
R5: Multi-car discount → premium × 0.9
Test Cases:
Scenario
Rules Active
Expected
Testing Focus
Age 24, no claims, sedan, single
R1, R3
× 1.5 × 0.8 = × 1.2
Stacking
Age 24, claims, sports car, multi
R1, R4, R5
× 1.5 × 1.4 × 0.9 = × 1.89
Multiple surcharges + discount
Age 25, no claims, sedan, single
R3 only
× 0.8
R1 boundary (25 not triggered)
Age 65, no claims, sports car, multi
R2, R3, R4, R5
× 1.3 × 0.8 × 1.4 × 0.9 = × 1.31
Maximum stacking
Age 40, recent claim, sedan, single
No rules
Base premium
No rules match
Boundary tests:
Age 24 vs 25 (R1 activates/deactivates)
Age 64 vs 65 (R2 activates)
Exactly 5 years since last claim vs 4 years 364 days (R3)
Common Mistakes to Avoid
❌ Only testing individual rules (missing interactions)
❌ Not testing rule precedence/conflict resolution
❌ Not testing at rule boundaries
❌ Ignoring rule lifecycle (when do changes take effect?)
❌ Not testing "no rules match" scenario
❌ Not testing performance with many rules
Q18How do you test state recovery after interruption?#
Objective
Show that you think about what happens when things go wrong mid-operation — a critical differentiator for senior QA.
Interview Answer (2-3 minutes)
"State recovery testing verifies that a system can handle interruptions gracefully at any point during a multi-step operation. This is critical because users lose network, close browsers, run out of battery, and experience server crashes — all at unpredictable moments.
I identify every operation that takes more than one 'step' (multi-step forms, file uploads, payment processing, data imports) and test interruption at each stage. The key questions are: Is the state consistent after interruption? Can the user resume? Is there data loss? Are resources cleaned up (partial files, locks, reservations)?
My technique: I map the operation timeline, identify each state transition, and inject failure at each point. For a payment flow: interrupt before sending to gateway, after sending but before response, after successful response but before order update. Each point has different expected recovery behavior."
Interruption Test Matrix
Operation
Interrupt At
Expected Recovery
File upload
10% uploaded
No partial file stored, retry works
File upload
90% uploaded
Resume if supported, else clean restart
Payment
Before gateway call
No charge, order unchanged, retry safe
Payment
After gateway, before response
Idempotency handles retry, no double-charge
Payment
After charge, before order update
Reconciliation job detects and corrects
Form submission
After validation, before save
Data not saved, user can re-submit
Data import
50% through file
Partial import rolled back (or resume from checkpoint)
Email send
After template, before send
Email not sent, retry safe
DB migration
Mid-transaction
Transaction rolled back, schema unchanged
Interruption Injection Methods
HOW TO SIMULATE INTERRUPTIONS
Client-side:
├── Close browser tab
├── Navigate away (unload event)
├── Airplane mode (network cut)
├── Device sleep / lock screen
├── Kill app process
└── Browser crash simulation
Network-level:
├── Disconnect WiFi mid-request
├── Proxy: drop response after request sent
├── Throttle to very slow (timeout)
├── DNS resolution failure
└── SSL/TLS handshake failure
Server-side:
├── Kill application process (kill -9)
├── Database connection drop
├── Dependency timeout
├── Disk full during write
├── Out of memory
└── Pod/container restart (Kubernetes)
Recovery Verification Checklist
After any interruption, verify:
No data corruption (partial writes cleaned up or completed)
No resource leaks (locks released, temp files removed)
No duplicate operations (idempotency preserved)
User can retry safely (same action from same state)
Error message is actionable (tells user what to do)
Audit trail is consistent (no phantom records)
Related systems are consistent (no orphaned references)
Common Mistakes to Avoid
❌ Only testing happy-path completion (missing all interrupt scenarios)
❌ Assuming network is reliable (it's not, especially mobile)
❌ Not testing resume/retry behavior
❌ Not checking for partial writes or resource leaks
❌ Assuming transactions prevent all corruption (they don't across services)
Show comprehensive testing of multi-actor, multi-state business processes with authorization, delegation, and escalation.
Interview Answer (2-3 minutes)
"Approval workflows combine state machine testing with authorization testing and business rule validation. They're complex because multiple actors interact, each with different permissions, and the flow may branch based on conditions.
I model the workflow as a state transition diagram first: what are the states (draft, submitted, under review, approved, rejected, escalated)? What are the transitions? Who can trigger each transition? What conditions must be met?
Then I test: valid transitions with correct actors, invalid transitions (can a junior approve what only a senior should?), boundary conditions (approval limits, delegation chains), timeout behavior (what happens if nobody approves within SLA?), and conflict scenarios (approver and requestor are the same person)."
❌ Only testing the happy path (submit → approve)
❌ Not testing conflict of interest rules
❌ Not testing escalation/timeout behavior
❌ Ignoring concurrent approval attempts
❌ Not testing what happens when role/permission changes mid-flow
❌ Not testing delegation chains
Show that error messages are a testable artifact with quality criteria — not just "an error shows up."
Interview Answer (2-3 minutes)
"Error messages are user-facing outputs that deserve the same testing rigor as any feature. A bad error message can confuse users, expose security information, or make debugging impossible. A good one guides the user toward resolution.
I test error messages against five criteria: accuracy (does it correctly describe the problem?), actionability (does the user know what to do?), security (does it avoid revealing sensitive system information?), accessibility (is it perceivable by screen readers?), and consistency (same error → same message format across the application).
For each error condition I identify, I verify: the message appears, it's correct for the specific error, it doesn't expose internal details (stack traces, SQL queries, server paths), it's properly localized, it disappears when the error is corrected, and it's associated with the correct field or context."
"If this email is registered, we'll send instructions"
API
"SQL Error: SELECT * FROM users WHERE..."
"Internal server error"
File access
"File not found at /var/app/private/..."
"Resource not available"
Rate limit
"Limit: 100 req/min, current: 101"
"Too many requests. Try again in 60 seconds."
Common Mistakes to Avoid
❌ Not testing error messages at all (just checking "an error appears")
❌ Error messages that expose security information
❌ Error messages that don't tell the user how to fix the problem
❌ Inconsistent message format across the application
❌ Error messages that don't meet accessibility requirements
❌ Assuming developers write good error messages (they often don't)
Q21How do you test localization and Unicode input?#
Objective
Demonstrate awareness of internationalization complexity — where character encoding, text direction, locale rules, and cultural conventions create subtle bugs.
Interview Answer (2-3 minutes)
"Localization testing goes far beyond translating strings. It covers character encoding (do Unicode characters store and display correctly?), text direction (does RTL text layout correctly?), locale-specific formatting (dates, numbers, currencies), cultural conventions (name ordering, address format), and text expansion (German text is 30% longer than English — does the UI accommodate it?).
I organize localization testing into three tiers: encoding correctness (does the system handle all Unicode properly?), display/layout correctness (does the UI accommodate different text lengths and directions?), and functional correctness (do date/number/currency formats work per locale?).
A concrete approach: I test with a set of 'stress strings' that exercise different Unicode planes: Arabic text (RTL), Japanese (multi-byte), emoji (4-byte UTF-8), Chinese characters, names with diacritics (García, Müller, Ñoño), and special cases like zero-width joiners and combining characters."
Unicode Stress Test Data
Category
Test String
Purpose
Latin with diacritics
"José García-Müller"
Accent handling
Arabic (RTL)
"مرحبا بالعالم"
Right-to-left layout
Japanese (multi-byte)
"日本語テスト"
Multi-byte characters
Chinese
"中文测试"
CJK characters
Korean
"한국어 테스트"
Hangul
Emoji (4-byte UTF-8)
"Hello 🌍🎉👨👩👧👦"
Surrogate pairs, ZWJ sequences
Mixed RTL/LTR
"Hello مرحبا World"
Bidirectional text
Zero-width characters
"test" (with ZWS)
Invisible characters in strings
Combining characters
"é" (e + combining accent)
vs. "é" (single character)
Maximum BMP
"𐐀" (U+10400)
Characters above U+FFFF
Name with apostrophe
"O'Brien"
SQL/HTML escaping
Double-byte numbers
"123"
Fullwidth digits
Turkish dotless i
"İstanbul" vs "istanbul"
Case conversion issues
Locale-Specific Format Testing
Format
US (en-US)
Germany (de-DE)
Japan (ja-JP)
Saudi Arabia (ar-SA)
Number
1,234.56
1.234,56
1,234.56
١٬٢٣٤٫٥٦
Date
03/15/2024
15.03.2024
2024/03/15
١٥/٠٣/٢٠٢٤
Currency
$1,234.56
1.234,56 €
¥1,234
١٬٢٣٤٫٥٦ ر.س
Time
3:30 PM
15:30
15:30
٣:٣٠ م
Name order
First Last
First Last
Last First
First Last
Address
Street, City, State ZIP
Street, PLZ City
〒ZIP Prefecture City
Differs
Text Expansion/Contraction Table
From English
Target Language
Typical Expansion
English → German
Button labels, headings
+30% length
English → French
General text
+20% length
English → Chinese
General text
-50% length (but taller)
English → Arabic
General text
+25% length + RTL
English → Japanese
General text
-30% length (but character height)
Test: Does UI accommodate the longest translation?
Buttons: Do they wrap or truncate?
Tables: Do columns overflow?
Notifications: Are they cut off?
Navigation: Do menu items fit?
Key Tests for Localization
Test Area
What to Verify
Storage
Unicode stored correctly (UTF-8 end-to-end)
Display
Characters render correctly, no mojibake (garbled text)
Search
Can search for Unicode text, case-insensitive per locale
Sort
Locale-aware sorting (ä sorts differently in DE vs SE)
Comparison
String equality handles combining characters
Truncation
Truncation doesn't break multi-byte characters
Input
All characters can be typed/pasted in all fields
Export
CSV/PDF exports preserve Unicode
URL
Unicode in URLs properly encoded (%E2%80%99...)
Common Mistakes to Avoid
❌ Only testing in English and assuming other locales work
❌ Testing only Latin character sets (missing CJK, Arabic, Thai)
❌ Not testing text expansion in UI (German breaks layouts)
❌ Ignoring RTL layout (Arabic, Hebrew)
❌ Truncating multi-byte characters mid-sequence (garbled output)
❌ Assuming all locales use the same date/number format
❌ Case conversion with Turkish locale (i → İ, not I)
Q22How do you test accessibility with keyboard-only navigation?#
Objective
Show that accessibility testing is systematic and standards-based, not ad hoc — covering WCAG 2.1 AA keyboard requirements.
Interview Answer (2-3 minutes)
"Keyboard accessibility ensures that every interactive element can be reached, activated, and operated without a mouse. This is critical for users with motor impairments, screen reader users, and power users who prefer keyboard navigation.
My keyboard testing covers: focus visibility (can you SEE where focus is?), focus order (does it follow logical reading order?), focus traps (can you get stuck?), operability (can you activate buttons, links, menus with keyboard?), and shortcuts (do they work and not conflict with AT shortcuts).
I test by literally unplugging my mouse and attempting to complete every user journey with only the keyboard. I use Tab (forward), Shift+Tab (backward), Enter (activate), Space (activate/select), Arrow keys (within components), and Escape (dismiss/close). Every journey that works with a mouse must work with a keyboard."
Keyboard Navigation Test Checklist
Focus Management:
Test
Key(s)
Expected
WCAG Criterion
Focus visible
Tab
Clear visual indicator on focused element
2.4.7 Focus Visible
Focus order logical
Tab through page
Follows visual layout, left-right-top-bottom
2.4.3 Focus Order
No focus trap
Tab
Can always Tab/Shift+Tab away from any element
2.1.2 No Keyboard Trap
Focus moves to dialog
Trigger modal
Focus moves inside dialog
2.4.3
Focus returns from dialog
Close modal
Focus returns to triggering element
2.4.3
Skip to content
Tab (first action)
"Skip to main content" link appears
2.4.1 Bypass Blocks
Interactive Elements:
Element
Key to Activate
Expected
Button
Enter or Space
Button action fires
Link
Enter
Navigation occurs
Checkbox
Space
Toggles checked state
Radio button
Arrow keys
Moves selection within group
Dropdown/Select
Space to open, Arrows to navigate, Enter to select
Options accessible
Menu
Enter to open, Arrows to navigate, Escape to close
Full menu accessible
Tab panel
Arrow keys between tabs, Tab into panel content
All panels accessible
Accordion
Enter or Space
Expands/collapses section
Slider
Arrow keys
Value changes in increments
Date picker
Arrows for date, Enter to select
Full calendar navigable
Complex Component Tests:
Component
Keyboard Test
Common Failure
Modal dialog
Focus trapped inside, Escape closes
Focus escapes to background
Dropdown menu
Arrow navigation, type-ahead
Can't access options
Data table
Navigate cells with arrows
Focus disappears in table
Drag-and-drop
Alternative keyboard method
No keyboard alternative exists
Tooltip
Appears on focus (not just hover)
Keyboard users never see it
Toast notification
Focusable or auto-announced
Not perceivable to KB users
Infinite scroll
Can reach all content
New content not focusable
Carousel
Pause, navigate, interact
Trapped or inaccessible
Testing Methodology
KEYBOARD TESTING PROCESS
1. UNPLUG MOUSE (or disable touchpad)
2. Load page → first Tab should show skip-link
3. Tab through ALL interactive elements
4. Verify: focus visible on each
5. Verify: order makes logical sense
6. Attempt to complete each user journey:
□ Login
□ Navigate to content
□ Interact with forms
□ Submit data
□ Open/close modals
□ Use all menus
□ Complete primary workflows
7. Verify NO focus traps
8. Test Escape key dismisses overlays
9. Test error announcements on form submit
Common Mistakes to Avoid
❌ Only testing Tab (missing Arrow keys, Space, Escape, Enter)
❌ Custom components without keyboard support (div-as-button)
❌ Focus indicator removed via CSS (outline: none with no replacement)
❌ Modals that don't trap focus (screen reader reads background)
❌ Dynamically loaded content that can't receive focus
❌ Drag-and-drop without keyboard alternative
Show that exploratory testing is structured, goal-directed, and measurable — not random clicking.
Interview Answer (2-3 minutes)
"Exploratory testing charters provide structure to adaptive testing. A charter defines what you're exploring, what risks you're looking for, and what 'done' looks like for the session — without prescribing exact steps.
I use the format: 'Explore [target area] with [resources/techniques] to discover [potential risks/information].' This keeps the session focused without being rigid.
A session is time-boxed (usually 60-90 minutes) and produces documented findings — bugs, questions, observations, and coverage notes. At the end, I assess: What did I learn? What bugs did I find? What areas need more exploration? What should become scripted tests?
The senior insight is that charters should be risk-directed. I don't charter 'explore the login page' — I charter 'explore login under conditions of expired sessions, race conditions between tabs, and rapid repeated attempts to discover session management vulnerabilities.'"
Charter Template
EXPLORATORY TESTING SESSION CHARTER
SESSION ID: EXP-[number]
TESTER: [Name]
DATE: [Date]
TIME BOX: 60 minutes
CHARTER:
Explore [target area]
With [tools, techniques, data, conditions]
To discover [risks, information, potential issues]
FOCUS AREAS:
• [Specific risk 1]
• [Specific risk 2]
• [Specific risk 3]
SETUP NEEDED:
• [Test data, environment, tools]
NOTES DURING SESSION:
[Time] [Observation/finding/question]
──────────────────────────────────────────
[10:00] Started exploring payment flow with expired card...
[10:15] FINDING: No error message for expired card - just spins
[10:22] QUESTION: What timeout is configured for payment gateway?
[10:35] BUG: Double-click on "Pay" creates duplicate transaction
[10:50] Observation: Error message reveals last 4 digits of any card
SESSION DEBRIEF:
• Bugs found: [count and IDs]
• Questions raised: [list]
• Areas still unexplored: [list]
• Recommended follow-up: [new charters, scripted tests]
• Confidence in area: [Low/Medium/High]
• Test ideas for automation: [list]
Charter Examples by Risk Category
Risk Category
Charter Example
Security
"Explore the file upload feature with malicious files (scripts, oversized, double extensions) to discover input validation gaps"
Performance
"Explore the search feature with increasingly large result sets and complex queries to discover where response time degrades"
Data integrity
"Explore the checkout flow with concurrent sessions (two tabs, two devices) to discover state conflicts and lost data"
Error recovery
"Explore the form submission process with network interruptions at various stages to discover data loss and state corruption"
Integration
"Explore the payment webhook handling with duplicate, out-of-order, and delayed deliveries to discover reconciliation failures"
Session Metrics
Metric
What It Tells You
Bugs per session
Effectiveness of the charter focus
Bug severity distribution
Are you finding important issues?
Coverage (areas touched)
Breadth of exploration
Questions generated
Identifying knowledge gaps
Time to first bug
Charter relevance (fast = good targeting)
Follow-up actions
Session's impact on test coverage
Common Mistakes to Avoid
❌ No charter ("just explore") — unfocused, unrepeatable
❌ Charter too broad ("explore the app") — no depth achieved
❌ Charter too narrow ("click button X") — that's a test case, not exploration
❌ Not documenting findings in real-time (memory loss)
❌ Not time-boxing (sessions go too long, fatigue)
❌ Not debriefing (missing systematic improvement)
Show that "enough" is a risk-based judgment call — not a numerical threshold applied blindly.
Interview Answer (2-3 minutes)
"There's no universal answer to 'enough coverage' — it depends on the risk profile of what you're testing. My framework considers four factors: risk severity (what's the cost of missing a bug?), confidence from testing so far (are we still finding new issues?), release capability (can we monitor and rollback?), and time constraints (what's the cost of delay?).
I use a confidence model. Testing starts at low confidence and builds toward high confidence. I'm 'done enough' when: the diminishing returns curve is flat (additional tests aren't finding new issues), critical paths are covered with high confidence, residual risks are documented and accepted, and monitoring/rollback is in place for remaining uncertainty.
Concrete signals that coverage is enough: defect discovery rate is declining, last N tests found nothing new, all P0/P1 test cases pass, known risk areas have been explored, and the team can articulate what's NOT tested and why that's acceptable.
Signals that coverage is NOT enough: still finding critical bugs, significant areas unexplored, defect discovery rate is flat (not declining), and team is uncomfortable with the risk."
Coverage Sufficiency Decision Framework
COVERAGE SUFFICIENCY SIGNALS
ENOUGH (green flags):
✓ Defect discovery rate is declining toward zero
✓ All critical path tests pass
✓ Risk areas explored with no surprises
✓ Residual risks documented and accepted
✓ Rollback/monitoring in place
✓ Team confidence is high
NOT ENOUGH (red flags):
✗ Still finding critical/high bugs
✗ Defect rate flat or increasing
✗ Significant areas untouched
✗ New patterns emerging in late bugs
✗ Environment gaps unresolved
✗ Team says "I hope it works"
Coverage Types to Consider
Coverage Type
Measures
When "Enough"
Requirement coverage
% requirements with linked tests
100% for P0, 90%+ for P1
Code coverage
% lines/branches executed
80%+ for critical modules
Risk coverage
% identified risks tested
100% for high risks
Path coverage
% user journeys tested
All critical paths + key alternatives
Configuration coverage
% environments/configs tested
Pairwise minimum
Negative coverage
Error/invalid scenarios tested
All identified error classes
When to Stop Testing vs. Keep Going
Context
"Enough" Threshold
Why
Hotfix
Fix verified + adjacent areas + smoke
Speed matters, focused change
Feature behind flag (1%)
Happy path + key negatives
Limited exposure, easy rollback
Payment feature
Comprehensive + edge + security + performance
High risk, hard to rollback
Regulatory/compliance
Documented evidence of ALL requirements tested
Audit requirement
Internal tool
Happy path + key errors
Limited users, easy to fix
Common Mistakes to Avoid
❌ Using a fixed coverage % as the only criterion (80% ≠ enough if the 20% is critical)
❌ "We tested for 3 days, that should be enough" (time ≠ coverage)
❌ Stopping because the sprint ends (schedule ≠ quality)
❌ Continuing to test areas with no new findings (wasted effort)
❌ Not documenting the "not tested" areas (invisible risk)
Demonstrate with a concrete, realistic example how BVA directly prevented a production defect.
Interview Answer (STAR Format, 2-3 minutes)
Situation: "We were building a rewards program where customers earn points based on purchase amount. The rules were: $1-$49 earns 1 point, $50-$99 earns 3 points, $100+ earns 5 points. The developer implemented this and unit tests passed for $25, $75, and $150."
Task: "I was testing the points calculation engine. The developer's unit tests covered representative values from each tier — classic EP. But they missed the boundaries."
Action: "I applied BVA systematically. For each boundary, I tested the value on each side:
$0.99 → should earn 0 points (below minimum)
$1.00 → should earn 1 point (at lower boundary)
$49.99 → should earn 1 point (at upper boundary of tier 1)
$50.00 → should earn 3 points (at lower boundary of tier 2)
$99.99 → should earn 3 points (at upper boundary of tier 2)
$100.00 → should earn 5 points (at lower boundary of tier 3)
I found that $50.00 earned 1 point instead of 3, and $100.00 earned 3 points instead of 5."
Root Cause: "The developer used > instead of >= in the comparisons:
if (amount > 100) return5; // should be >= 100elseif (amount > 50) return3; // should be >= 50elseif (amount > 0) return1;
Every user spending exactly $50 or $100 was short-changed."
Result: "This affected approximately 12% of transactions (those landing exactly on tier boundaries with .00 amounts). At an average of 2 points lost per affected transaction and 50,000 monthly transactions, that's ~6,000 points/month incorrectly awarded — roughly $600/month in redemption value that would eventually need correction."
Learning: "This reinforced that BVA catches a specific, common bug type: off-by-one errors in comparisons. The fix was trivial (one character change × 2), but the bug was invisible to EP testing and would have eroded customer trust."
❌ Vague example without specific numbers
❌ Example where the bug would be caught by any basic testing
❌ Not explaining WHY BVA specifically was the technique that caught it
❌ Not quantifying the business impact
❌ Not connecting to the root cause (off-by-one)