What is a test case?
A test caseTest caseA written set of steps, data and an expected result used to check one specific behavior.Open in glossary → is a written set of instructions for checking one specific thing in an app. It says what you need before you start, exactly what to do, and what should happen.
Why bother writing them down instead of just “trying the app”?
- Repeatability — the same checks can be run on every new buildBuildA specific compiled version of the app or website that is ready to be installed or tested.Open in glossary →, by anyone.
- Clarity — developers and product owners can see exactly what was tested.
- Coverage — writing cases forces you to think about what could go wrong, not just the happy path.
- Evidence — when something breaks, you can show precisely which check failed and how.
Test scenario vs test case
These two are easy to confuse.
- A test scenarioTest scenarioA high-level idea of what to test, such as 'User resets a forgotten password'.Open in glossary → is a high-level idea of what to test. It answers “what should we check?”, for example “Check that invalid sign-ins are handled”.
- A test caseTest caseA written set of steps, data and an expected result used to check one specific behavior.Open in glossary → is the detailed instructions for one check. It answers “how exactly do we check it?”
One scenario usually turns into several test cases. (There’s a third artifact, the checklist, and Test Scenarios vs Test Cases vs Checklists explains when to use each.)
| Test scenario | Test cases it might produce |
|---|---|
| Check that a user can sign in | Valid email and password · Email with uppercase letters · Password exactly 8 characters |
| Check that invalid sign-ins are handled | Wrong password · Unregistered email · Empty fields · Invalid email format |
| Check the account lock rule | Lock on 5th failed attempt · No lock after 4 failed attempts |
A group of related test cases is called a test suiteTest suiteA group of related test cases that are run together.Open in glossary →. For example, all the cases above could live in a “Sign in” suite.
Check this part
Which of these is a test scenario rather than a test case?
Why write test cases down instead of just trying the app?