A new QA engineer joins the team on Monday. On Tuesday she is handed the pre-release regression pack: 640 test cases in a spreadsheet, written by three people over four years. Test case 212 has fourteen steps. Step seven says to click “Confirm and continue”, a button that disappeared when the checkout form was rebuilt last autumn. Step ten says to log in as qa.sarah, an account someone deleted during an environment clean-up. The expected result reads: “Order is saved correctly.”

She asks in the team channel what “correctly” means. The author left the company a year ago. Someone replies that “if it saves and there’s no error, it’s fine.” The test is marked as passed. Two weeks later a customer reports that orders with a discount code are being saved at the pre-discount price. Test 212 was written to catch exactly that. Nobody except its author knew.

This article is for QA leads and anyone responsible for a test repository rather than only for running it. The thesis may sound contrarian: a test case can be handed over not when it has more steps, but when it states precisely what nobody could guess: why it exists, what state it starts from, what data it uses and which result counts as correct. Detailed click-by-click steps are not a measure of test case quality. In most teams they are the single biggest source of maintenance cost.

What is the difference between a test scenario and a test case, and does the naming argument matter?

“Test scenario”, “test case”, “test script” and “test” are often used interchangeably. The naming debate looks academic until two people discuss the same repository while meaning different things. One asks “how many scenarios do we have for payments?”, the other says “three hundred”, and both are wrong.

The most widely used reference point is the ISTQB glossary. In version 3.2 (Foundation Level terms) a test case is “a set of preconditions, inputs, actions (where applicable), expected results and postconditions, developed based on test conditions”. A test condition is “an aspect of the test basis that is relevant in order to achieve specific test objectives” or, in plain words, the thing you want to check. A test procedure is “a sequence of test cases in execution order, and any associated actions that may be required to set up the initial preconditions and any wrap up activities post execution”.

What the glossary leaves out is telling. There is no “test scenario” entry among the Foundation Level terms. The word “scenario” appears in the entry for use case testing, which lists “scenario testing” as a synonym: test cases are designed to execute scenarios of use cases. In practice, then, teams use “scenario” for one of two things: an end-to-end user journey, or a test condition written as a sentence.

The glossary also distinguishes high-level (logical, abstract) test cases, without concrete values for inputs and expected results, from low-level (concrete) test cases, which have those values. For the purpose of this article that distinction matters more than the argument about the word “scenario”, because it marks exactly the line between a record someone else can run and a record that needs its author’s knowledge.

A simple working split you can write into team conventions:

  • A test scenario answers “what are we checking?”. One sentence describing a situation: “A customer returns part of an order paid by card.”
  • A test case answers “how do we check it, and how will we recognise the result?”. It has a starting state, concrete data, an action and an expected result.
  • A procedure or script puts test cases in order and describes environment setup; in automation, it is code.

One scenario usually breaks down into several test cases: return one line item, return all items, return an item bought with a promotion code, return after the return window has closed. The names do not matter in themselves. They matter when everybody on the team knows which level they are writing at and what that level requires.

What makes a test case transferable to someone else?

Picture a competent tester who knows the domain in general but not your system, and who cannot ask anyone. What must the test case contain for them to run it as the author intended and reach the same verdict?

The answer comes down to five elements. They share one property: a competent tester cannot guess any of them.

Purpose. Why this test case exists: which business rule or which risk it checks. “Checks that a percentage discount is applied to the net price before shipping is added” tells the tester what to look at. Without a purpose, the tester follows the steps and misses a wrong result that the steps never mention.

Starting state. The state the system must be in before you begin: which user, with which permissions, which records in the database, which configuration, which feature flags. This is the element most often left out, because the author holds it in their head, usually in the form of an account they have used for months.

Data. Concrete input values, not “a valid postcode”. If the test case checks a boundary, the value must be written down, because its entire information value lies in someone having deliberately chosen €999.99 rather than €1,000.

Expected result. What exactly should happen and where to check it: in the UI, in the database, in the email to the customer, in the message sent to the finance system. This element gets a section of its own below, because it most often decides whether the test checks anything at all.

Postconditions and clean-up. The state the system is left in, and what must be tidied up so that the next test, or the next person, starts from a clean state.

Notice what is missing from this list: detailed steps. Not because steps are unnecessary, but because a competent tester can reproduce “place an order for two products as a B2B customer” without being told which button to press. What they cannot reproduce is that the customer must have a negotiated price list, that the products must ship from two warehouses, and that the defect only shows up in the document sent to the ERP.

That gives the first practical rule: write precisely what cannot be guessed, and sparingly what can be reproduced. Most test case templates invert those proportions, with five fields for steps and one short field for the expected result.

Why is “the system works correctly” the most expensive sentence in a test repository?

The ISTQB glossary defines a test oracle as “a source to determine expected results to compare with the actual result of the system under test”. The oracle can be a specification, an existing system, a hand calculation, a regulation or a domain expert. A test case whose expected result is “works correctly” hands the oracle role to whoever runs it. The author knew what “correctly” meant. The tester has to guess.

In his STAR East 2003 talk “What Is a Good Test Case?”, Cem Kaner described a test case as a question you ask of the program, with the point of running it being to gain information. Among the attributes that make one test better than another he listed being easier to evaluate and being more useful for troubleshooting. A test case with “works correctly” as its expected result scores zero on both. Its outcome cannot be judged unambiguously, and when it fails nobody knows where to look.

Compare two ways of writing the same expected results:

ImprecisePrecise enough for someone else to judge the same way
Order is saved correctly.Order status is “New”, net value €1,845.00 (2 × €1,025.00 minus 10% discount), shipping €0 (free shipping threshold €1,500 net). Customer receives a confirmation email within 5 minutes.
An error message is displayed.The form is not submitted. Below the VAT number field the message “Invalid VAT number format for the selected country” appears. All other fields keep their values.
The report is generated properly.The report contains 3 rows (one per warehouse); the “Value” column totals €12,400.00 and equals the sum of invoices for the period in the accounting module.

Every entry on the right is longer. None of them describes a single click. Precision goes where it decides the verdict.

An expected result has one more property that is easy to miss: it should say where to verify. “The customer receives an email” is a different check from “a record with status sent appears in the outbound message table”. If testers in the test environment have no access to the customer’s mailbox, the expected result must say where to check the effect instead. Otherwise the test will be passed on the basis of what could be seen, not on what it was meant to check.

If your team has a Definition of Done that requires stories to be tested, this is where “tested” and “clicked through” part ways. We cover that in more depth in the article on how one Definition of Done list protects quality better than an extra testing phase. The expected result can usually be derived straight from the story’s acceptance criteria. If it cannot, that is a sign the criteria are too vague, not a reason for the test case to be vague as well.

How detailed should the steps be, and what does it depend on?

This is where the real argument starts. The common advice is “write it so that anyone can run it.” It sounds reasonable, but it produces test cases written for an imaginary executor who knows neither the system, nor the domain, nor the basics of testing. That person almost never exists. Yet you pay for writing for them every time the interface changes.

The ISTQB Foundation Level syllabus 4.0 (currently 4.0.1, September 2024) says directly that the choice of software development lifecycle affects, among other things, the level of detail of test documentation, and that contextual factors such as the organisation, tools and regulatory requirements affect the level of detail of testware. There is no single correct level. There is a level that fits a particular executor and a particular risk.

We propose a rule to replace “write it for anyone”: write for the least-informed person who will realistically run this test case in the next twelve months. Not a hypothetical intern from another company, but a specific role you can name.

Here is how that rule plays out:

Who runs the test caseWhat must be preciseHow detailed the steps areWhat to avoid
The author and a team that knows the productPurpose, data, expected resultOne sentence describing the actionCopying a click path everyone already knows
A new joiner or an external specialist in their first weeksPurpose, starting state with an account name or how to create one, data, result with where to verifySteps at the level of business actions (“add the product to the basket”), with exceptions where the UI is not obviousAssuming “everyone knows” which test account is “the good one”
A business user in acceptance testingPurpose in business language, data, result described as the user sees itDetailed where the user meets a new screen for the first timeTechnical jargon and references to database tables
An auditor in a regulated industry (medical devices, financial services, GxP)Everything above plus traceability to the requirement and evidence of executionFull steps, because the procedure record itself is evidenceShortcuts that cannot be reconstructed a year later
A test automation engineerPurpose, rule, data, a result a program can checkBehaviour, not interface; the code will define the stepsRecording clicks the engineer will rewrite anyway
A rarely run procedure (disaster recovery, year-end close)Everything, including order and checkpointsFull steps, because nobody remembers themRelying on whoever did it last time

The last row matters because it shows the rule is not an excuse for laziness. Some situations demand full steps, not because the executor is inexperienced but because the procedure runs once a year and getting the order wrong means losing data. There, detail pays for itself. In the regression of a checkout form that the team runs every two weeks, it usually does not.

A second consequence: the level of detail can change over time. A test case written to onboard a new person can have full steps that the team deliberately collapses into one sentence a few months later. Our QA onboarding checklist for new team members describes the stage where a new person reads and runs existing test cases. That is the ideal moment to record every question they ask and to add exactly that missing information, rather than adding every possible step.

How do you record the starting state and test data so a test does not depend on someone’s account?

The qa.sarah account in our example is a classic trap. For a year the author used a single test account with the right permissions, order history and negotiated price list. To the author, “log in as a B2B customer” meant “log in as my account”. When the account disappeared, the test case still looked complete, but it had lost its meaning.

The starting state can be recorded in three ways, from weakest to strongest.

A reference to a specific record. “Account qa.sarah, order 10045.” Quick and readable, but fragile: the record can vanish, be changed by another test, or exist in only one environment. If you use this approach, also describe the properties that matter: “a B2B account with a negotiated price list and a credit limit of €50,000”. When the record disappears, someone can create an equivalent one.

A description of the required state. “A B2B customer with a negotiated price list, no overdue invoices and at least one order fulfilled in the last 30 days.” It asks the tester to find or prepare the data, but the test case survives an environment refresh.

A recipe for creating the state. A script, an API call or a seed data set that builds the required state from scratch. This is the most durable approach and the only one that works well with automation. In mature teams these recipes live alongside the test cases and are shared by manual and automated tests. Once the data is externalised like this, the same test case can run against many rows of inputs, which is the essence of data-driven testing.

Whichever approach you choose, three rules help.

First, separate the data that is the point of the test from data that is just background. If the test case checks a discount for orders over €1,000, the amount is the point and the product name is background. Mark it explicitly, in bold or in a separate field. Whoever maintains the test case will then know what must not change when the product is withdrawn from the catalogue.

Second, do not use real people’s personal data, even pseudonymised in a way someone on the team could reverse. Under the GDPR, pseudonymised data is still personal data (Recital 26), so a production copy in a test environment carries the same obligations as production itself. There is also a practical reason: production data copied into test changes whenever someone refreshes the copy, and the test breaks without any code change.

Third, record what the test changes. If running it consumes the customer’s credit limit or alters warehouse stock, the next person who runs the same test on the same account gets a different result. This is where the glossary’s “postconditions” earn their place. In most templates it is an empty field; in practice it decides whether a test is repeatable.

Why are detailed steps a maintenance debt?

Take a worked example. The numbers are illustrative, but it is easy to plug in your own. A regression repository holds 800 test cases averaging 12 steps each: 9,600 steps written at UI level, such as “click”, “select from the drop-down”, “type into the field”. The team rebuilds two main forms that a quarter of the test cases pass through. If each of the 200 affected test cases takes 10 minutes to read, compare with the new screen and correct, the update costs about 33 hours of work, more than four working days, for a change that did not alter a single business rule.

In reality nobody gets those four days. The test cases stay out of date, testers learn that the steps “don’t quite match” and must be interpreted, and after a few rounds the repository becomes a collection of loose hints that everyone reads differently. That is the point at which detailed steps stop preventing inconsistent execution and start causing it, because everyone improvises in a different place.

Test cases written at the level of business actions (“place an order for two products as a B2B customer”) would have survived the rebuild unchanged, because what changed was how a customer places an order, not what placing an order means. Their purpose, data and expected result stay valid until the rule itself changes.

The Cucumber documentation, in its guide to writing better Gherkin, describes the same phenomenon. It contrasts an imperative style, which spells out actions (“type the email”, “type the password”, “press Submit”), with a declarative style, which describes the application’s behaviour (“Free Frieda logs in with her valid credentials”). It acknowledges that imperative tests are appropriate in some contexts, but notes that because they are so closely tied to the mechanics of the current UI, they often require more work to maintain. The observation applies just as much to manual test cases in a spreadsheet.

The point is not to delete every step. The point is that each step in the repository should be a deliberate decision the team pays for at every UI change, not the default way of filling in a template.

How should you write test cases that will later be automated?

In many teams a manual test case is the first draft of a future automated test. An automation engineer takes it from the spreadsheet and turns it into code. If the test case is a click record, the engineer transcribes the clicks, and the result is an end-to-end test that drives the UI even when the rule could be checked faster and more reliably at API or unit level.

A test case written with automation in mind has four properties.

One test case, one rule. A test case that checks the discount, free shipping and the confirmation email turns into an automated test that can fail for three different reasons, each needing diagnosis. Three test cases with one rule each give three unambiguous signals.

Behaviour rather than interface. A “state, event, outcome” format, for instance Given/When/Then, lets the engineer choose the level at which the test is cheapest. “Given a B2B customer with a 10% discount, when they place an order worth €2,050 net, then the order value is €1,845 net” can be checked without opening a browser.

Data as parameters. If the test case has variants (0%, 10% and 25% discounts, a value just below the threshold and just above it), write them as a data table, not as five separate test cases with identical steps. That structure converts straight into a data-driven test, and reviewing it means reviewing one table.

A result a program can check. “The page looks right” is not a result a program can verify. “The summary amount equals the sum of line items minus the discount” is. If part of the expected result needs human judgement (layout, readability, tone of a message), split it into a separate test case that stays manual.

This also answers a common question: why write manual test cases at all if everything will be automated? Not everything will be, and a well-written test case is a specification of behaviour independent of who or what executes it. A test case written as a specification survives a change of automation framework. A test case written as click instructions survives only until the next UI change. The ISTQB definition quoted earlier mentions actions only “where applicable” and says nothing about steps, which is a useful reminder of where the emphasis belongs; our glossary entry on the test case walks through the individual fields.

When is a scenario without steps enough, and when is it too vague?

If precision belongs to purpose, data and result rather than steps, is a one-sentence scenario sufficient? Sometimes, yes. In the same talk, Kaner quotes Brian Marick’s definition of a test idea: “a brief statement of something that should be tested”, for example, for a square root function, “test a number less than zero”. A list of such ideas is often the most efficient form of documentation for an experienced team.

A scenario without detail is enough when three conditions hold: the executor knows the product; the expected result follows unambiguously from a rule everyone knows, or is written in the acceptance criteria the scenario points to; and the aim is broad coverage rather than repeatable evidence. That is how pre-release checklists and session charters in exploratory testing work. In exploratory testing the aim is to discover what nobody anticipated, so a detailed script would get in the way.

A scenario is too vague when:

  • two competent people could run it and reach different verdicts;
  • it checks a boundary or a calculation rule but gives no values;
  • it must serve as evidence for someone outside the team (an auditor, a customer at sign-off, a regulator);
  • it is run rarely and more time has passed since the last run than the team can remember;
  • it requires a starting state that is not obvious to set up.

A good way to decide: start with the scenario and expand it into a test case only when one of those conditions applies. The repository then grows where it is needed, rather than evenly everywhere because the template says so.

How do you maintain a test case repository so it does not rot?

Test repositories age for two reasons. The first is obvious: the product changes and the test cases fall behind. The second is less visible and appears among the seven testing principles in the ISTQB Foundation Level 4.0 syllabus: tests wear out. If the same tests are repeated many times, they become increasingly ineffective at detecting new defects. The syllabus adds that repetition can be beneficial, for instance in automated regression testing, but a manual pack that has passed without exception for two years is a signal to review it.

Kaner draws a consequence that many teams ignore: metrics that count test cases are essentially meaningless, because test cases merge or are abandoned as their information value diminishes. A repository of 2,000 test cases is not better than one of 600. It may be worse, if 1,400 of them are variants of the same thing that nobody maintains.

Maintenance can be organised around a few simple mechanisms:

An owner per area. Each functional area has a person responsible for its test cases. They do not have to write them all, but they decide what to add, merge and delete.

Event-triggered review. A changed requirement, a rebuilt screen or a production defect that no test caught triggers a review of test cases in that area. Ideally this is part of the Definition of Done: a story that changes a rule is not done until the test cases for that rule are updated.

Last-run and last-failure dates. A test case nobody has run for a year is either unnecessary or neglected. A test case that has not found a defect in two years may still be valuable, because it guards a critical rule, but that should be a conscious decision.

Deletion as a normal activity. A team that only adds test cases ends up, after a few years, with a repository nobody can run in full. In practice people then run a selection by personal judgement, which is worse than a deliberate reduction. Base the selection on risk, as in a structured regression testing strategy, not on what someone happens to remember.

How do you check a test case’s quality before it enters the repository?

The most effective check is also the simplest. We call it the cold-read test: the test case is run by someone who did not write it and does not know the feature, with no right to ask the author questions. An observer notes every point where the tester stopped, guessed or had to look for something outside the test case.

Every stop is missing information. Every guess is an ambiguity. If the tester reaches a different verdict from the author, the problem is almost always the expected result.

You cannot cold-read every test case, but you can sample: a few test cases from each new feature, or every test case written by a new person in their first month. The results quickly show what the team habitually leaves out. The starting state is especially easy to miss, because the author does not see it as information. To them it is simply “the normal state of the system”.

A short review checklist, pinned in your test management tool, complements the cold read:

  1. Does the test case make clear which rule or risk it checks?
  2. Can the starting state be reproduced without the author’s knowledge?
  3. Is the data that matters written as concrete values and distinguished from background data?
  4. Does the expected result say exactly what to check and where?
  5. Would two people running this test case reach the same verdict?
  6. Does the test case leave the system in a state that allows it to be run again?
  7. Are the steps detailed only where this executor needs them?

Treat test case review like code review: a test case is a work product someone else will maintain, not the author’s private note.

How do you hand over a test repository when the team or vendor changes?

Handover is the moment when every gap described above surfaces at once. The person who knew what “correctly” meant, which account was “the good one” and why test 212 checks the discount, leaves. Someone arrives with nothing but the spreadsheet.

This applies both to turnover in your own team and to working with external specialists. A model in which external testers join the team for several months works well only if the test repository is team knowledge rather than individual knowledge. If you work with QA engineers through staff augmentation, transferable test cases are what makes a new person productive in days rather than weeks.

Treat handover as a small project in three steps.

Inventory. How many test cases there are, how many were run in the last quarter, which areas have an owner. This step alone often shows that only a fraction of the pack is actually used.

Cold-read sessions for the highest-risk areas. The incoming person runs test cases from the riskiest areas while the outgoing person observes and adds every piece of information that prompted a question. A few days of this replace weeks of later guesswork.

Deliberate clean-up. Outdated test cases are fixed or deleted before handover, not after. The incoming person lacks the knowledge to delete a test case safely, so in practice they will not delete any.

If the handover involves changing testing vendors, make sure the contract states that the repository of test cases, test data and scripts belongs to the client and must be delivered in a format that can be imported into another tool. Without that clause, changing vendor means rewriting everything.

Do standards and templates solve the problem?

ISO/IEC/IEEE 29119-3, in its 2021 edition, which supersedes the 2013 version, provides templates and examples of test documentation, including the test case specification and the test procedure specification. According to IEEE’s description, the templates support functional and non-functional, manual and automated, and scripted and unscripted testing, and can be used with any software development lifecycle model. It is a useful reference, especially when test documentation has to serve as audit evidence.

A template does not solve the problem from our opening, though. Test case 212 had every template field filled in: ID, title, preconditions, steps, expected result. The expected result field held four words that said nothing. A template enforces the presence of fields, not their information value.

That is why it pays to write test case conventions as a short team standard that, instead of a list of fields, answers three questions: who are we writing for in each area, how detailed are the steps for each of them, and what do we require of an expected result. Such a standard fits on one page and serves a new joiner better than a fifty-page procedure nobody reads.

A test management tool helps, but for the same reason as a template it will not replace those decisions. Migrating 640 test cases from a spreadsheet into a tool gives you 640 test cases in a tool, with the same gaps. Cleaning up the content should come before migration, or at least alongside it.

What are the key takeaways for a QA lead?

A test case is only as good as the verdict it leads to in the hands of someone who did not write it. Length, step count and template completeness say almost nothing about that.

Remember six things. First, separate the scenario (“what are we checking”) from the test case (“how do we check it and how will we recognise the result”), and agree as a team when a scenario must be expanded into a test case. Second, put precision where the tester cannot guess: purpose, starting state, data, and an expected result with where to verify it. Third, write steps for the least-informed person who will realistically run them, and treat every detailed step as a maintenance cost. Fourth, write test cases destined for automation as behaviour with one rule and data in a table, not as a click record. Fifth, maintain the repository like code: with an owner, change-triggered review and deletion as a routine activity. Sixth, cold-read test cases before anyone has to rely on them.

If your test repository looks like the spreadsheet from our opening, or your testing team is about to change, see how we approach software testing and quality assurance. We can also strengthen your team with QA engineers, backed by a 2-week replacement guarantee and a replacement within 5 business days if someone leaves during the engagement. Book a short call and tell us what your test repository looks like today.