The difference between a test case and a requirement is the moment of (2024)

There are several straightforward ways to distinguish a test case from a requirement. A test case tells you how to check some kind of thing about the application, a requirement tells you that the application should do some kind of thing. A test case is written by a tester, a requirement by a business analyst. A test case takes the shape of an action and an evaluation of the result, a requirement takes the form of a sentence like “product ABC shall do XYZ.”1

A less straightforward, but more interesting way to distinguish a test case and a requirement, isthis:

The difference between a test case and a requirement is the moment of discovery.2

In this post I want to explore the meaning of that statement. In the next post I’ll explore how looking at requirements and test cases in this way, can help us to do better testing. So this post will be a bit more philosophical, the next one morepractical.

About requirements and testcases

What is arequirement?

A requirement describes some aspect of the thing we are building. It tells us what the thing should be or should do. Requirements are input for the building ofsoftware.

So a requirement is anything that the team as a whole believes the thing they’re building should be or do. Early on something might be a requirement because the lead dev knows it to be. Later on, it might only be a requirement if it’s part of the shared understanding within the team. While if it’s only a passing thought of a single developer, notreally.

What is a testcase?

A test case describes something we want to find out about the thing we’re building. It tells us how we might learn something about the thing. Test cases are input for the evaluation ofsoftware.

In that sense, the term “test idea” might be more apt than “test case”. Whenever someone says “test case”, I always wonder what they mean exactly. Do they mean “something we should test”, so a test idea or a charter for exploratory testing? Or “if you do this in the application, this other thing should happen”, so what would I call a test case? Or do they mean a list of steps with detailed descriptions of what to do and what to check, so a testscript?

Test cases that are translated requirements versus ones thataren’t

While all three (test ideas, test cases, and test scripts), count as test cases for the purpose of this post, there is a distinction to be made between test cases and test scripts on the one hand, and test ideas on theother.

Test cases and test scripts are translations of requirements. There is an expected result. We know what the thing we’re building, should do. That makes them rephrasings of the requirements. This is especially clear if you create a test case through a formal test design technique. The test case is no more than the transformation of a requirement by an algorithmic test designtechnique.

With test ideas, on the other hand, there’s no expected result specified upfront. They take the form of “I wonder what would happen if …” and “I’m curious about …” So the goal is to discover something first, and then to evaluate it. How to evaluate that discovery, might be immediately obvious in the moment of discovery. Or it might take some work to figure out how to evaluate it. To decide - in a sense - if you’ve found a feature or abug.

The difference lies in the when, not in thewhat

A requirement is an answer, a “should”. It serves the purpose of design. A test case is a question, a “what if?”. It serves the purpose ofevaluation.

And still, they are the same thing. They both capture something that the thing we are building, should do. It’s just that for a requirement we already know what it is. For a test case, sometimes we do (test cases and scripts) and sometimes we don’t (testideas).

So it’s not the “what” that distinguishes a test case from a requirement, but the “when”. The difference lies in the moment of their discovery. For a requirement the moment of discovery is while we are designing what we are going to build. For a test case it’s while we are evaluating (or preparing to evaluate) what we havebuilt.

The moment ofdiscovery

The value of distinguishing test cases from requirements by their moment of discovery, lies in making us aware of that moment - and where that moment fits in our processes. It lets us notice, when we discover something we expect of our software, if we discover it either as a requirement or as a test case, as part of design or as part oftesting.

And once we notice this moment, this distinction, we can reflect on it. We have a new angle to explore how we might get better at either type of discovery. We can decide if we want to move that moment of discovery, either earlier or later. And it lets us ask the question: should some discoveries be moved to other side of thatmoment?

More on those questions in the nextpost.

The difference between a test case and a requirement is the moment of (2024)
Top Articles
New York Stock Exchange (NYSE): Definition, How It Works, History
10 Best January Dividend Stocks To Buy
Woodward Avenue (M-1) - Automotive Heritage Trail - National Scenic Byway Foundation
Www.1Tamilmv.cafe
123 Movies Black Adam
Wild Smile Stapleton
Trade Chart Dave Richard
2022 Apple Trade P36
Kentucky Downs Entries Today
Elden Ring Dex/Int Build
Bubbles Hair Salon Woodbridge Va
Ohiohealth Esource Employee Login
13 The Musical Common Sense Media
Keniakoop
Los Angeles Craigs List
Vcuapi
What Happened To Anna Citron Lansky
Kitty Piggy Ssbbw
Sound Of Freedom Showtimes Near Cinelux Almaden Cafe & Lounge
Accident On May River Road Today
Ms Rabbit 305
Axe Throwing Milford Nh
Nhl Tankathon Mock Draft
20 Different Cat Sounds and What They Mean
Heart Ring Worth Aj
Wbiw Weather Watchers
Unionjobsclearinghouse
Dtlr Duke St
Mybiglots Net Associates
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Ltg Speech Copy Paste
From This Corner - Chief Glen Brock: A Shawnee Thinker
Unity Webgl Car Tag
O'reilly's In Monroe Georgia
Bridgestone Tire Dealer Near Me
Craigslist Maryland Baltimore
Diana Lolalytics
Police Academy Butler Tech
42 Manufacturing jobs in Grayling
Manatee County Recorder Of Deeds
Giantess Feet Deviantart
Planet Fitness Lebanon Nh
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Ise-Vm-K9 Eol
2020 Can-Am DS 90 X Vs 2020 Honda TRX90X: By the Numbers
Cocaine Bear Showtimes Near Cinemark Hollywood Movies 20
Lucifer Morningstar Wiki
Erica Mena Net Worth Forbes
Ewwwww Gif
Research Tome Neltharus
Edt National Board
Latest Posts
Article information

Author: Roderick King

Last Updated:

Views: 6543

Rating: 4 / 5 (51 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Roderick King

Birthday: 1997-10-09

Address: 3782 Madge Knoll, East Dudley, MA 63913

Phone: +2521695290067

Job: Customer Sales Coordinator

Hobby: Gunsmithing, Embroidery, Parkour, Kitesurfing, Rock climbing, Sand art, Beekeeping

Introduction: My name is Roderick King, I am a cute, splendid, excited, perfect, gentle, funny, vivacious person who loves writing and wants to share my knowledge and understanding with you.