Test scenario vs test case vs test script, on one form
Test scenarios, test cases and test scripts on one real form: a scenario says what to prove, a case how you would know, a script the steps that run it.
A test scenario is what you want to prove, in one sentence: “an editor can create a new item”. A test case is one specific way to check it: this input, this expected result. A test script is the steps that run one case, written for a person or as code. One scenario has several cases, and one case can have several scripts.
That is the whole difference between the three. The definitions you find online disagree with each other mostly because they are written without an example, so here is one.
One form, three levels
Our practice app lets an editor create an item with a name and a note.

The test scenario
An editor can create a new item.
It names who (an editor) and what they get done (a new item exists). It has no values, no clicks and no expected result. You could explain it to someone who has never seen the app.
A scenario is the right level for deciding what to test at all. A list of twenty scenarios fits on a page, and a product person can read it and say “you’ve forgotten that viewers must not be able to do this”.
The test cases
| Case | What is typed | What must come out |
|---|---|---|
| Good input | Name Sample item, note A short sample note | The item’s page opens with that name as its heading and the note under it. |
| Empty | Nothing | The form stays, the name field says “Please fill out this field.”, and no item is created. |
| Wrong, then right | Nothing, then Sample item | Exactly one item is created. |
Each case fixes two things the scenario leaves open: the exact input, and what you must see for the case to pass. A case can fail. A scenario can’t, it can only be covered or not covered.
Three cases for one scenario is normal. One case per scenario is the common mistake: the good input gets its case, and “an editor can create a new item” is ticked off with nobody having pressed the button on an empty form.
The test script
Inside one case are the steps: log in as an editor, open “New item”, type the name, press “Create”, read the item’s page. Written down in order, so that anyone can run them the same way, they are the test script. A manual script is that list with the values filled in. An automated one is the same list as code. In Playwright, the good-input case could read:
await page.goto("/items/new");
await page.getByLabel("Name").fill("Sample item");
await page.getByRole("button", { name: "Create" }).click();
await expect(page.getByRole("heading", { name: "Sample item" })).toBeVisible();
One case can have several scripts: one for a person on a phone, one in code that runs after every deploy. They pass or fail on the same expected result, because that lives in the case. Scripts are the part most likely to change when the page is redesigned, and the part that matters least. If “New item” moves into a menu, the script changes and the case does not.
Scenario, case and script side by side
| Test scenario | Test case | Test script | |
|---|---|---|---|
| What it says | What to prove | One input, and what proves it worked | The steps that run one case |
| Example | An editor can create a new item | Empty name: refused at the field, no item | Open the form, press Create, read the message, open the list |
| Who it is for | Anyone, product people included | Whoever decides pass or fail | Whoever, or whatever, runs it |
| Can it fail? | No. It is covered or not | Yes | It can break while the app is fine |
| Changes when | The product changes | A rule changes | The page is redesigned |
A test scenario example with all its cases
The same scenario gets more cases once you ask who else is involved. Our practice app has a viewer, who can see the list but whose “New item” button is disabled.
| Kind of user | Case | What must come out |
|---|---|---|
| Editor | Good input | The item’s page opens. |
| Editor | Empty | Refused at the name field. |
| Editor | Wrong, then right | One item. |
| Viewer | Opens the list | “New item” is there and disabled. |
| Viewer | Opens the form’s address directly | “Viewers can’t create items.” |
| Signed-out visitor | Opens the form’s address | Sent to the login page. |
Strictly, the last three belong to a second scenario: “only editors can create items”. Whether you write that as its own scenario or as more cases under the first doesn’t matter much. Pick one way and keep to it. What matters is that the cases exist.
Test scenario examples for a whole app
For a typical app with accounts, a first list of scenarios reads like this:
- A visitor can sign up and reach the first real result.
- A member can log in, log out and reset a forgotten password.
- An editor can create, edit and delete an item.
- A viewer can see items and can’t change them.
- An admin can invite a person and choose their role.
- A signed-out visitor can’t open any page behind the login.
Each line becomes a heading, with a table of cases under it.
Why the three get mixed up
Different books, different words. Some teams say “test condition” or “test idea” for the scenario. Some call the scenario a “user story test” or a “user journey” (which is the word we use, below). Some tools call every row a “test” whatever it is. None of that is wrong. The useful question about any row in your test plan is whether it has an exact input and an expected result. If it does, it is a case, whatever the column header says.
Scenarios written like cases. “Verify that entering a valid name and clicking Create shows the item page” is a case with the values taken out. It is too detailed to plan with and too vague to run.
Cases written like scenarios. “Check that item creation works” in a list of test cases. No input, no expected result. We wrote about what that costs in expected results.
Which one should you write?
Both, at different moments, and neither at great length.
- When planning, write scenarios only. One line each, grouped by kind of user. Stop when a stranger could read the list and understand what your app is for. For a small app, a page or less.
- When testing, write cases for the scenarios that matter. Start with the ones where a break costs money or sign-ups. A scenario about a rarely used settings page can live with one case.
- Scripts, write down only if a person will run the case by hand and the route isn’t obvious. Otherwise the code is the script.
A team of three does not need a test management system for this. A document with a heading per scenario and a table of cases under it is enough, and it is honest about what was never tested: a heading with no table under it.
If you want the standard cases to put in those tables, we keep a checklist for any form, and how to write test cases goes through one in detail.
How this maps to EveryRole
EveryRole uses other words for the same three levels, because it describes what users do.

- A journey is the scenario: one kind of user getting one thing done. Its title is the sentence.
- A journey has stops, the places where the person does something the app must answer.
- Each stop has cases: what is typed, what must come out, and a result.
The scripts are not written by anyone. EveryRole finds the route by exploring the app, and walks it again on each run.
The reason for the split is the same as on paper. You decide at the journey level what is worth testing, by keeping or skipping the journeys it suggests. The cases under each one are where things pass or break.


