ISTQB Mock App

N-switch Coverage

N-switch coverage is a state-transition coverage criterion that requires testing all sequences of N+1 consecutive transitions within a state model.

Official definition
ISTQB Official Glossary Definition
The coverage of sequences of N+1 transitions.

(Definition reproduced from the ISTQB Glossary. Copyright belongs to ISTQB.)

View the complete ISTQB Glossary

What is N-switch Coverage?

Increasing the value of N expands the number of transition sequences that must be exercised, providing stronger confidence in state-based behavior.

State transitions: Focuses on sequences rather than individual transitions.

Coverage strength: Higher values of N provide more thorough testing.

Model-based testing: Commonly applied to state machines.

Real World Example

A tax calculation module applies different deductions depending on income band, residency status, and submitted documents.

Reviewing the final tax amount is not enough when important code paths may never execute during testing. N-switch coverage helps the tester reason about the structure behind the result.

The tester works with the developer to identify decisions or paths in the calculation logic and designs inputs that exercise the meaningful alternatives.

The team gains better evidence about hidden logic because N-switch coverage connects tests to the implementation structure where certain defects can hide.

Practice Questions

Question 1

Which statement BEST describes N-switch coverage in the context of ISTQB terminology?

Question 2

A tester needs to explain N-switch coverage to a non‑technical stakeholder. Which approach is MOST appropriate?

Test your knowledge with real ISTQB-style questions

You’ve learned N-switch Coverage. Test your understanding with topic-specific questions in our Mock Exams.

Go to Mock Exams