Test suite vs test case
A test case is one check: its preconditions, its inputs or steps and the result expected. A test suite is a set of test cases grouped to be run together for a purpose, such as smoke or regression testing. One case can belong to several suites, and a suite can be regrouped without any of its cases changing.
The longer version
A results page shows the two at a glance. Each row is a test case with a verdict beside it: passed, failed or blocked. The heading above the rows is the suite, with a count and a single overall status. The row answers a narrow question, such as whether a password reset link that has already been used is refused. The heading answers a wider one, such as whether this build is fit to go to staging. The ISTQB glossary defines a test case as "a set of preconditions, inputs, actions (where applicable), expected results and postconditions, developed based on test conditions". It defines a test suite as "a set of test scripts or test procedures to be executed in a specific test run", and lists test set and test case suite as synonyms. A case is defined by what it checks, and a suite by the run it belongs to.
Several other words sit between the two, and password reset shows where each belongs. The test scenario is the one-line situation: a user resets a forgotten password. Under it sit the test cases, each fixing one check. A valid link sets a new password, an expired link is refused, a used link is refused, and a new password that breaks the rules is rejected with a reason. A test script is the instruction sequence that carries one or more of those cases out, as numbered steps for a person or as code for a tool. A test procedure puts cases or scripts in running order, with the setup before and the clean-up after: create the account, request the link, run the cases, delete the account. The test suite groups them for a run with a purpose. The used-link case might sit in the account suite and, since it guards a defect that was found and fixed, in the regression suite as well.
Membership is the practical difference. A case is written once and kept, while a suite is a selection that changes with what a run is meant to prove. One case can belong to several suites, usually as a tag or a folder entry and not as a copy, and a suite can be rebuilt without touching the cases in it. Results are read at both levels. A failed case points at one behaviour and becomes a defect report. A suite's result is an aggregate, and the rule for it has to be stated: whether one failure fails the run, and what happens to cases known to fail intermittently. Maintenance differs in the same way. A case is revised when the behaviour it checks changes, and a suite is revised when its run takes too long or stops answering its question.
Side by side: a test case is one check, defined by its preconditions, steps or inputs and expected result, with a verdict of its own, written from a test condition and kept for as long as the behaviour exists. A test suite is a selection of cases or scripts, with an aggregate result under a stated rule, assembled for a purpose and changed when the run needs to change. Suites are usually named by purpose, such as smoke, sanity, regression, functional or acceptance, or by product area, such as checkout or accounts. When to use which is a question of level. Write a test case whenever a behaviour needs checking, with one expected result per case so that a failure points at one thing. Define a suite whenever a set of cases has to run together for a decision, such as gating a build, signing off a release or re-checking an area after a change. The test plan sits above both and says which suites run, when, and against which exit criteria.
Common questions
Test suite vs test case: what is the difference?
A test case is a single check with its preconditions, its inputs or steps and its expected result. A test suite is a set of test cases grouped so that they run together for one purpose, such as a smoke run or a regression run. Verdicts are recorded per case, and scheduling and reporting happen per suite.
Can one test case belong to more than one test suite?
One test case can belong to several suites. A case that checks sign-in may sit in the smoke suite, the regression suite and the account suite at once. Test management and automation tools generally implement a suite as a tag, a folder or a list of references, so the case exists once and a change to it reaches every suite that includes it.
How many test cases are in a test suite?
A test suite holds as many cases as its purpose and its time allowance permit, and no fixed number applies. A smoke suite that gates every build has to finish in minutes and stays small. A regression suite grows as cases are added for new behaviour and for defects already fixed, and it is trimmed or split when the run becomes too slow to use.
What is the difference between a test suite and a test script?
A test script is the sequence of instructions that carries out one or more test cases, written as steps for a person or as code for a tool. A test suite is the group of cases, scripts or procedures selected for one run. The ISTQB glossary defines a suite as a set of test scripts or test procedures to be executed in a specific test run.
When does a test suite count as passed?
A test suite counts as passed when its cases meet the rule the team set for that run. The strictest rule is that every case passes. Other rules allow listed known failures or leave out quarantined cases that fail intermittently. Whichever rule applies, it belongs in the exit criteria of the test plan, so that a statement that the suite passed can be checked.
How does a test plan differ from a test case and a test suite?
A test plan describes the testing for a project or a release: its scope, approach, resources, schedule, and entry and exit criteria. A test case is one check within that testing, and a test suite groups cases for a run. The plan says which suites run and what result counts as done, each suite says which cases run together, and each case says what is checked.
What types of test suite are there?
Test suites are usually named for the purpose of the run. A smoke suite gates each build, a regression suite re-checks existing behaviour, a functional suite covers a feature against its requirements, and an acceptance suite supports the decision to accept a release. Teams also group cases into suites by product area, such as checkout or accounts, and most tools let one case belong to several suites at once.
Bug reports that arrive ready to triage.
Collect replay, console, network and browser context with the Free plan.