Scenarios for authentication, CRUD, forms, pagination, uploads and payments — each one a condition that has shipped broken, with the reason it is there.
9 scenarios for authentication and sessions
9 of them are high priority. Each one is a condition that has shipped broken somewhere, not a restatement of the flow.
Expect: Signed in, redirected to the intended destination, and a session cookie set.
Why this one: The control case. Run it first: without it, a failure in any scenario below is ambiguous between the condition under test and the sign-in flow itself.
Expect: Rejected with a message that does not say which of the two was wrong.
Why this one: A message distinguishing "no such account" from "wrong password" lets anyone test whether an address is registered. The same applies to response timing and to status codes.
Expect: Indistinguishable from the wrong-password case in message, status and timing.
Why this one: Account enumeration is usually leaked by timing rather than by wording: a real account runs a password hash and a fake one returns immediately. Hashing a dummy value in the missing-account path is the fix.
Expect: Throttled or locked, with a clear message and a way back in.
Why this one: Without a limit, a weak password is found offline-fast. With a limit keyed only on the account, anyone can lock a person out deliberately, so the limit usually needs to consider the source too.
Expect: The other session is invalidated.
Why this one: This is the whole point of changing a password after a compromise. A session that survives it means the change achieved nothing, and nothing in the interface tells the person that.
Expect: A new session identifier is issued on sign-in.
Why this one: Keeping the pre-authentication identifier is session fixation: anyone who could set that cookie is now signed in as the person.
Expect: Not signed in, and no authenticated content served from cache.
Why this one: A page that renders from cache after sign-out shows the previous person's data on a shared computer. Cache-Control on authenticated responses is what prevents it.
Expect: Rejected with 401, and nothing about why.
Why this one: A token verified without checking its expiry, or with its algorithm taken from its own header, is a classic failure that no functional test notices.
Expect: Rejected the second time.
Why this one: A reusable reset link in a mailbox is a permanent key to the account, and mailboxes outlive passwords.
The copied output always contains the whole set for this flow rather than the filtered view, because a plan with scenarios silently missing is worse than one that is too long.
# Authentication and sessions
## Sign in with correct credentials
1. Open the sign-in page
2. Enter a valid email and password
3. Submit
**Expect:** Signed in, redirected to the intended destination, and a session cookie set.
*Why:* The control case. Run it first: without it, a failure in any scenario below is ambiguous between the condition under test and the sign-in flow itself.
## Sign in with a wrong password
1. Enter a valid email with an incorrect password
2. Submit
**Expect:** Rejected with a message that does not say which of the two was wrong.
*Why:* A message distinguishing "no such account" from "wrong password" lets anyone test whether an address is registered. The same applies to response timing and to status codes.
## Sign in with an address that has no account
1. Enter an unregistered email and any password
2. Submit
3. Compare the response and its timing with the wrong-password case
**Expect:** Indistinguishable from the wrong-password case in message, status and timing.
*Why:* Account enumeration is usually leaked by timing rather than by wording: a real account runs a password hash and a fake one returns immediately. Hashing a dummy value in the missing-account path is the fix.
## Attempt sign-in repeatedly with wrong passwords
1. Submit ten incorrect passwords for the same account in quick succession
**Expect:** Throttled or locked, with a clear message and a way back in.
*Why:* Without a limit, a weak password is found offline-fast. With a limit keyed only on the account, anyone can lock a person out deliberately, so the limit usually needs to consider the source too.
## Change the password while signed in elsewhere
1. Sign in on two devices
2. Change the password on the first
3. Use the second
**Expect:** The other session is invalidated.
*Why:* This is the whole point of changing a password after a compromise. A session that survives it means the change achieved nothing, and nothing in the interface tells the person that.
## Sign in with a session identifier that existed beforehand
1. Note the session cookie before signing in
2. Sign in
3. Compare the cookie
**Expect:** A new session identifier is issued on sign-in.
*Why:* Keeping the pre-authentication identifier is session fixation: anyone who could set that cookie is now signed in as the person.
## Sign out, then go back
1. Sign out
2. Press the browser back button
3. Reload
**Expect:** Not signed in, and no authenticated content served from cache.
*Why:* A page that renders from cache after sign-out shows the previous person's data on a shared computer. Cache-Control on authenticated responses is what prevents it.
## Use an expired or tampered token
1. Take a valid token
2. Alter one character, or wait past expiry
3. Make a request
**Expect:** Rejected with 401, and nothing about why.
*Why:* A token verified without checking its expiry, or with its algorithm taken from its own header, is a classic failure that no functional test notices.
## Use a password reset link twice
1. Request a reset
2. Use the link
3. Use the same link again
**Expect:** Rejected the second time.
*Why:* A reusable reset link in a mailbox is a permanent key to the account, and mailboxes outlive passwords.
> These are scenarios to write tests from. Nothing has been executed.These are starting scenarios for flows nearly every product has. A particular product’s worst defects live in the parts that make it particular, and no planner knows those — add them. Nothing here has been executed.
Test Scenario Planner runs entirely on your device — the scenarios are assembled in your browser and nothing is sent.
You’re on the Free plan. Compare plans
Six flows appear in nearly every product: signing in, creating and editing records, submitting forms, paging through lists, uploading files and taking payments. Each has a set of conditions that have shipped broken somewhere, and most of them are not the conditions anyone thinks to test.
So these are not a restatement of the flow. "Sign in with the right password" is on the list as a control, and everything else is a specific failure that has happened: account enumeration by response timing rather than by wording, sessions that survive a password change, a record readable by the wrong account, a form that clears itself on a validation error, offset pagination over changing data, a payment webhook delivered twice.
The most common serious defect in CRUD is on this list — reading another account's record, because the query checked that the id exists and not that it belongs to you, and because every test was written with one account. Nothing finds it except deliberately trying it with a second account, which is why it is written down.
Every scenario is a specific condition that has shipped broken in real software, with the mechanism named. "Test error handling" is a category; "deliver the same payment webhook twice and confirm the order is created once" is a scenario you can run, and it describes a defect that has cost real money.
Because it is the most common serious vulnerability in CRUD code and the easiest to miss. The query checks that the record exists, not that it belongs to the caller — and every test passes, because they were all written with one account. It takes two accounts to find.
Because matching the wording of an error is not enough. If a wrong password takes 200ms and an unknown email takes 20ms, the difference reveals which accounts exist just as effectively as a different message would. Fixing the message and not the timing is a very common half-fix.
No. A particular product's worst defects live in the parts that make it particular, and no planner knows those. These cover the flows nearly everyone has, which is the part that can be written down in advance.
No. These are scenarios to run, and the output says so.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab