Test Case Writing
5 exercises — practise professional test case ID conventions, preconditions, atomic test steps, measurable expected results, and execution status vocabulary.
0 / 5 completed
Quick reference: Test case anatomy
- ID + Title — unique identifier + action verb + condition + platform (e.g. TC-PAY-001: Verify...)
- Preconditions — numbered, verifiable system state with specific test data
- Steps — numbered, atomic actions starting with a verb; one action per step
- Expected result — measurable, observable outcome; no "works correctly" language
- Status — Pass / Fail / Blocked / Not Run — each has a distinct meaning
1 / 5
A QA engineer is creating test cases for a login module. Which test case title follows professional naming conventions best?
A professional test case title must be unique, descriptive, and follow a consistent naming pattern.
Options A, B, and C are too vague and informal — they cannot be identified in a large test suite, give no indication of the test condition, and don't specify the interface under test. Option D is correct: it includes a unique identifier (TC-LOGIN-003) for traceability, the action under test (Verify that a registered user can log in), the exact condition (valid credentials), and the platform context (web interface). This format allows anyone to understand what the test covers without opening it.
Key vocabulary:
• Test case ID — a unique alphanumeric identifier used for traceability (e.g. TC-LOGIN-003)
• Test condition — the specific scenario or state being validated by the test case
• Traceability — the ability to link a test case back to a requirement or user story
• Naming convention — a standardised pattern for naming artefacts to ensure consistency across a test suite
Options A, B, and C are too vague and informal — they cannot be identified in a large test suite, give no indication of the test condition, and don't specify the interface under test. Option D is correct: it includes a unique identifier (TC-LOGIN-003) for traceability, the action under test (Verify that a registered user can log in), the exact condition (valid credentials), and the platform context (web interface). This format allows anyone to understand what the test covers without opening it.
Key vocabulary:
• Test case ID — a unique alphanumeric identifier used for traceability (e.g. TC-LOGIN-003)
• Test condition — the specific scenario or state being validated by the test case
• Traceability — the ability to link a test case back to a requirement or user story
• Naming convention — a standardised pattern for naming artefacts to ensure consistency across a test suite