We use analytics to count visits and form use. It is on unless you reject it. We show no ads on this site.

Glossary

Test case

Published . Last updated . Published by Zapple.Tech, founded by the founders of CodeceptJS and Codeception, open-source testing frameworks.

Also called
test cases
Published
Updated
Related service
Manual testing
Definition

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 (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 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 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 and test data management.

Test case: an ID, a precondition, steps, test data, an expected result, a priority and a link to the requirement it covers; a person or a tool runs it, and the expected result decides the verdict

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 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.

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 documentation describes small, readable tests, and the Playwright 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 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. The rest of the vocabulary is in the QA 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 page. Tell us about your product in the form below.

  • Data-driven testing

    Data-driven testing runs one test over many sets of input and expected values kept apart from the test logic. You write the check once and add cases as rows of data. It pays off when one flow must work for many inputs, such as prices, locales or user roles, and it is overkill for a handful of cases.

  • User acceptance testing

    User acceptance testing (UAT) is the stage of software development in which the people who will use the software, not the QA team alone, confirm that it meets their business needs and is ready for deployment. It is one form of acceptance testing. UAT validates fitness for use; system testing checks the system against its specification.

  • Behavior-driven development

    Behavior-driven development (BDD) is a way of working in which developers, testers and business people agree how software should behave by writing concrete examples in plain language, usually as Given/When/Then scenarios, and then automate those examples as tests. The conversation comes first; Gherkin and Cucumber are its notation and tooling, not BDD itself.

  • Test suite

    A test suite is a set of tests grouped to run together for one purpose, such as a quick build check or a full run before release. We sort suites by when they run and what a failure blocks. Our rule of thumb: a suite helps while it is fast enough to wait for, trusted and owned by someone.

All terms in the glossary

Test with AI

Manual testing

Manual testing services: manual software testing and exploratory QA by human testers. AI drafts test ideas and bug reports. Quote in one business day.

See the service

Questions about test case

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.

Request a QA audit quote

Tell us what you ship and what worries you.

What happens after you send this

  1. You send the form: your situation and what you need tested, then your name and work email.
  2. Within one business day, we reply with a suggested first step, its scope, timeline and a quote.
  • Fixed scope
  • You decide after each step
  • The tests live in your repository
  • An NDA signed before access

“They helped us to close the positions and consult our team how to proceed further. High-quality quick feedbacks with the deep checking of the required tasks, professional approach, great understanding of the company's technologies and product, detailed reports.”

Kristina Lavrentieva, Manager at keepgo.com, Israel
  • Rated 4.9 out of 5 on Clutch, from 7 client reviews
  • 42 completed test automation and infrastructure projects
  • Founded by the founders of CodeceptJS and Codeception, open-source testing frameworks

Request a QA audit quote

    What is closest to your situation?
    Optional. The product, the platforms, how often you release, what broke last.

    You decide after our reply whether to go ahead.

    Prefer to talk first? Book a call

    One-week QA audit · written report

    Request a QA audit quote