# Test case

> Test Case: What It Is and What a Good One Contains. Canonical page: <https://zapple.tech/glossary/test-case/>

A test case is one specified check of the software: the conditions it starts from, the inputs and steps, and the result expected. It can be run by a person or by a tool. A good one is traceable to a requirement and states its expected result, so you and a colleague running it reach the same verdict.

## What does a test case contain?

Fields differ between teams and tools. The [ISTQB Foundation Level syllabus](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf) (version 4.0.1) lists prioritized test cases among the work products of test design, next to test data requirements. It also says traceability of test cases to requirements can verify that the requirements are covered. The table is our template built from those parts.

| Field | What it is for | What goes wrong without it |
|:--|:--|:--|
| ID | A stable name for reports and bug links | Two people talk about different checks under one title |
| Precondition | The state the system must be in before step one | The check fails or passes for reasons unrelated to the feature |
| Steps | The actions, in order | The result depends on who ran it |
| Test data | The inputs, named or described | A pass on one account hides a failure on another |
| Expected result | What counts as a pass | Nobody can tell a pass from a failure; the check is only a demo |
| Priority | How soon it must run, by risk | Low-risk checks block a release while a risky one is skipped |
| Traceability | The requirement or story it covers | Coverage cannot be shown, and a changed requirement leaves orphaned checks |

[Azure Test Plans](https://learn.microsoft.com/en-us/azure/devops/test/create-test-cases?view=azure-devops) shows one shape: test cases define the individual steps testers perform, each step with an action and an expected result, and can include shared steps and parameters for data-driven testing. The product's [overview page](https://learn.microsoft.com/en-us/azure/devops/test/overview?view=azure-devops) adds that test cases can be linked to user stories, features or requirements for traceability. For reusing one case with many inputs, see [data-driven testing](/glossary/data-driven-testing/) and [test data management](/glossary/test-data-management/).

## How detailed should a test case be?

Our rule of thumb: write as much as the least experienced future runner needs, and no more.

- **Scripted steps** suit work that someone new will run, that an auditor may read, or that must be repeated exactly. The cost is upkeep: every product change means editing steps.
- **A charter** suits experienced testers exploring a new area. The syllabus describes exploratory testing as designing, executing and evaluating tests at the same time. In its session-based form, a test charter with objectives guides the tester, and a debrief usually follows.
- **A short outline** (title, expected result, requirement) sits between the two. We would use it for checks that will be automated soon anyway.

If a regulator or a contract asks you to show what was tested, choose scripted. If the team changes the UI weekly, choose the lighter forms and keep the steps for stable flows.

## What is the difference between a test case, a scenario, a script and a suite?

They sit at different levels. The syllabus says test cases can be organized into test procedures, which are often assembled into test suites, and that manual and automated test scripts are created during test implementation.

| Term | One line | Example |
|:--|:--|:--|
| Scenario (our usage) | A situation to cover | Paying with an expired card |
| Test case | One check with data and an expected result | Card expired last month: the payment is declined and the cart stays intact |
| Test script | The runnable form of one or more cases | A manual walkthrough, or an automated test |
| Test suite | A group of cases run together | The checkout regression pack |

Tools bend these words. Cucumber's [Gherkin reference](https://cucumber.io/docs/gherkin/reference/) uses the keyword Example, with Scenario as a synonym, for a check written as Given, When and Then steps, and describes the examples as an executable specification of the system. If you size test work by counting cases, see our [guide to estimation techniques](/blog/test-automation-methodologies/software-testing-effort-estimation-techniques/).

## Which test cases are worth automating, and which should stay manual?

Automate cases that run on every release, have a clear expected result and use stable data. The syllabus lists reduced repetitive manual work and consistent execution among automation's benefits, and warns against using a tool when manual testing is more appropriate and against relying on tools so much that human critical thinking is ignored.

Keep manual the cases that need judgment: a new feature's first pass, usability, anything where "correct" is a matter of taste. Our view is that the right test for a case worth automating is whether you would rerun it unchanged next month.

An automated case is still a test case in a different form. The [pytest](https://docs.pytest.org/en/stable/) documentation describes small, readable tests, and the [Playwright best practices](https://playwright.dev/docs/best-practices) advise that each test verify behavior the end user sees and run isolated from the others. Both guard against the same mistake as a vague manual case: a check nobody can trust.

If your cases are scattered across spreadsheets and people's heads, our [manual testing services](/services/manual-testing/) cover test design and test cases, and run the planned checks before a release.

## What changes when AI writes or runs the case?

Our view: the case still needs an expected result that a person has checked. AI can draft cases from a requirement, which saves typing. A person still has to check that each expected result matches what the product should do, that the risky paths are covered and that the data is realistic. For how agents execute written cases, see our post on [a test case format for AI agents](/blog/test-automation-methodologies/cige-agentic-test-case-standard/). The rest of the vocabulary is in the [QA glossary](/glossary/).

## What does Zapple.Tech do about it?

If your test cases are out of date, or you cannot show which requirements they cover, start with the evidence. Zapple.Tech starts with a one-week QA audit of one product area. It looks at its tests, pipeline and release process, and ends in a written report on what is at risk and what to fix first, plus a pilot plan you can run with Zapple.Tech or without it. Read more on the [QA audit and assessment](/services/audit-and-assessment/) page. Tell us about your product in the form below.

## FAQ

### What is a test case?

A test case is one specified check of the software. It sets the starting conditions, the inputs and the steps, and says what result to expect, so the person or tool running it can tell a pass from a fail. The ISTQB syllabus lists test cases among the work products of test design.

### What is the difference between a test case and a test scenario?

A scenario names a situation to cover, such as a customer paying with an expired card. A test case is one concrete check inside it, with exact data and an expected result. One scenario can break into several test cases. This is how we use the words; tools differ, and in Cucumber's Gherkin, for example, Scenario is a synonym of the keyword Example.

### What is the difference between a test case and a test script?

A test case says what to check and what to expect. A test script is the executable form of it, written for a person to follow or for a tool to run. The ISTQB syllabus lists manual and automated test scripts among the products of test implementation, after the cases are designed.

### What should a test case include?

Our template has an identifier, a precondition, the steps, the test data, the expected result, a priority and a link to the requirement it covers. A tool such as Azure Test Plans gives each step an action and an expected result. A short check may need fewer fields, but the expected result is never optional.

### Can AI write test cases?

AI can draft them from a requirement, which saves typing. A person still has to check that each expected result matches what the product should do, that the risky paths are covered and that the data is realistic. A draft that nobody has read is a list of plausible checks, not a tested one.

## Sources

- [ISTQB Certified Tester Foundation Level syllabus v4.0.1 (2024-09-15, newest edition read), sections 1.4, 4.4.2 and 6.2](https://istqb.org/wp-content/uploads/2024/11/ISTQB_CTFL_Syllabus_v4.0.1.pdf)
- [Microsoft Learn, Create and manage manual test cases, Azure Test Plans (last updated 2026-04-28)](https://learn.microsoft.com/en-us/azure/devops/test/create-test-cases?view=azure-devops)
- [Microsoft Learn, What is Azure Test Plans? (last updated 2026-08-14)](https://learn.microsoft.com/en-us/azure/devops/test/overview?view=azure-devops)
- [Cucumber documentation, Gherkin reference (current docs)](https://cucumber.io/docs/gherkin/reference/)
- [pytest documentation (current stable docs)](https://docs.pytest.org/en/stable/)
- [Playwright documentation, Best Practices (current docs)](https://playwright.dev/docs/best-practices)
