~/qa-guides/how-to-write-test-cases
>_ How to Write Test Cases: A Manual Test Case Template with Examples
Turn one delivery address requirement into three manual test cases. Copy the worksheet and see how a checkout can report success while keeping the old address.
Short answer
To write a manual test case, choose one outcome a requirement promises. Name the starting state, supply exact test data, list the actions in order, and say what another tester should observe to decide whether the case passed. Write the expected result before running the test. Record the actual result against a particular build afterward.
Take the instruction "check that the buyer can change the delivery address." Two testers could follow it and disagree. One sees a Saved message and passes the test. The other reopens the order and finds the old address. Adding "reopen the same order from Orders and read its street and postal code" gives both people a way to settle the question.
Copy the manual test case template
Select the table, copy it, and paste it into cell A1 in Excel or Google Sheets. The first column holds the field names. The second is intentionally blank. Give that column a short case name and fill it in from top to bottom. Duplicate the column for another case, or copy the completed worksheet further down this page as a starting point.
| Field | Your case |
|---|---|
| ID | |
| Title | |
| Rule | |
| Setup | |
| Baseline | |
| Input | |
| Action | |
| First check | |
| Verify | |
| Expected |
Setup identifies who can run the test and which record is ready. Baseline is the value to confirm before changing it. If a test is meant to preserve an existing value, this row gives you something concrete to compare afterward. Use a stable case ID so a result can still be found after someone improves the title.
First check describes the feedback the tester expects immediately after the action. Verify gives the next observation point, and Expected states what the tester should find there. A calculation displayed on one screen may need only one checkpoint. The address example needs two because a successful edit must survive reopening the order. Keep the fields that support the decision your reader has to make. TestRail's guidance on writing manual test cases
Turn a requirement into executable cases
The teaching requirement is "A signed-in buyer can change the delivery address on an open order." This tells us the actor, object, and starting state. It leaves several decisions open. In particular, what should Cancel do, and what happens if one address field is valid and the other is rejected?
For this example, the team agreed on three rules before drafting the cases. A valid save stores both fields on the order. Cancel discards both edits. An invalid postal code keeps the editor open, identifies the field in error, and preserves both stored values. The test checkout accepts exactly five digits for this field. Use your product's own address rules when adapting the example.
- Name the decision in the title. "Discard an unsaved address" tells a reviewer why the Cancel button matters. "Address test 2" gives them no clue which behavior a failure would put in doubt.
- Give each case a known start. Lee owns three separate open orders. Each starts with the same address. Using a different order for each case lets a tester run Cancel first or Save last without inheriting another case's changes.
- Choose inputs that expose a mistake. Change both the street and the postal code. For the invalid case, change one digit of the proposed code to a letter and keep the length at five. The street is still valid. This makes a partial save visible.
- Choose how to read the result. The tester can open Orders in a second tab, as the same buyer, and read the same order again. This uses a normal customer action and makes the result independent of the values still displayed in the editor.
A scenario such as "manage an address" can cover all three paths in a plan. Separate cases give each path a verdict. A business reviewer who also needs to accept the handoff to fulfillment has a different observation point, such as the address received by the warehouse. The UAT test case examples show how to write cases around those business outcomes.
Three filled manual test case examples
Each of the three example columns is a complete case. On a narrow screen, scroll the table sideways to see the invalid-code case. Select Edit address on the order named in Setup and use the street and postal code in Input. Keep the original tab available until the second-tab check is complete.
| Field | Save | Cancel | Invalid code |
|---|---|---|---|
| ID | ADR-01 | ADR-02 | ADR-03 |
| Title | Save an edited address | Discard an address edit | Reject a bad postal code |
| Rule | Store both fields. | Discard both edits. | Reject the entire edit. |
| Setup | As Lee, open order D-41. Its status is Open. | As Lee, open order D-42. Its status is Open. | As Lee, open order D-43. Its status is Open. |
| Baseline | 18 Oak Rd, 48120 | 18 Oak Rd, 48120 | 18 Oak Rd, 48120 |
| Input | 42 Pine Rd, 48121 | 42 Pine Rd, 48121 | 42 Pine Rd, 48X21 |
| Action | Edit address. Enter both values. Select Save. | Edit address. Enter both values. Select Cancel. | Edit address. Enter both values. Select Save. |
| First check | The editor closes and reports Saved. | The editor closes. | The editor stays open and identifies the postal code error. |
| Verify | In a second tab, open D-41 from Orders. | In a second tab, open D-42 from Orders. | Keep the error visible. In a second tab, open D-43 from Orders. |
| Expected | 42 Pine Rd, 48121 | 18 Oak Rd, 48120 | 18 Oak Rd, 48120 |
Save an address and read it back
On D-41, the old and new addresses differ in two places. After saving, look up D-41 by its ID. Looking at Lee's profile address or at the most recent order would answer a different question. A Saved message completes the first checkpoint. The new street and code on the reopened order complete the second.
For a repeat run, restore D-41 to the baseline or use a fresh equivalent order and record its ID. If D-41 already contains 42 Pine Rd, submitting that same value can appear to pass even when Save does nothing.
Cancel after making a real edit
On D-42, check that both new values are actually in the fields before selecting Cancel. Opening and closing an untouched form would also leave the baseline in place. It would tell you little about what happens to unsaved changes.
In one variation of the teaching editor, Cancel closed the form and wrote the edited address. The first checkpoint passed, and the second tab showed 42 Pine Rd, 48121. Only ADR-02 failed in that variation. This is why Cancel has its own case even though it uses the same valid input as Save.
Reject an invalid postal code without a partial update
On D-43, the letter X changes just one aspect of the proposed postal code. Check that the buyer can identify which field needs correction. Keep the editor open while checking the stored address so no later Save or Cancel can affect the observation.
We tried a version that correctly displayed the field error but persisted the valid street. The second tab showed 42 Pine Rd, 48120. Checking the postal code alone would have passed. Recording both values identifies exactly which part of the edit escaped validation.
Record a failed run and its retest
Keep the case definition available for reuse. Give each execution its own record with the case ID, build, environment, actual observation, and status. Save enough evidence to identify the order and the checkpoint that failed. A screenshot of a success message can document the first checkpoint. An observation from the reopened order documents the second.
These two entries came from running ADR-01 in the teaching editor with the same starting address. The first build updated the view after Save but left the stored address unchanged. The second build stored the edit.
| Build | Reopened D-41 | Status |
|---|---|---|
| rc.7 | 18 Oak Rd, 48120 | Failed |
| rc.8 | 42 Pine Rd, 48121 | Passed |
The expected address on both runs was 42 Pine Rd, 48121. Keep the rc.7 result when recording the retest on rc.8. A reviewer can then see exactly what failed and which build supplied evidence of the fix.
When a developer needs to reproduce that failed save, use the run's starting address and reopened value to fill in the bug report template.
Suppose the assigned order is already closed when the tester starts. Record Blocked for this run if an open order cannot be prepared. Include the order state and the missing prerequisite. If an eligible, open order meets the setup and the product still refuses the agreed edit, record the observed behavior as a failure. The distinction depends on where execution stopped.
Review a case before handing it to someone else
Give a colleague the worksheet and ask them to name the record they will open, the values they will enter, and the observation that would make them fail the case. If they have to ask which address to check, revise the Verify row. If two different outputs could both satisfy "address is correct," replace that phrase with the expected field values.
For cases with several data values, ask whether the actions and expected behavior stay the same. Two accepted postal codes can exercise one reusable workflow with two rows on a separate data sheet. Canceling an edit and correcting a rejected submission involve different user actions and deserve separate instructions. Azure Test Plans documents the same distinction when choosing between data iterations and separate workflows. Microsoft Learn on creating manual test cases
Update a case when the product agreement changes. For example, if two postal formats become valid, identify which old rejection case now needs a different input or expectation. Keep earlier results tied to the rule and build they exercised. For another worked feature, the shopping cart test cases apply starting conditions and observable results to quantities, line items, and totals.
FAQ
Add a checkpoint where a wrong outcome would change the verdict or explain the failure. A menu click used only to reach the editor can sit inside an action. Opening the wrong order, receiving a field error, or losing a saved address each merits a separate observation because the cause and the next step differ.
Yes, when the product promises the same workflow and outcome. Keep the case ID and record a separate execution for each browser and build. If one browser uses a different supported flow, write down the branch so the next tester knows which controls to use and what counts as success.
Agree on the user-visible signal or time limit before running the case. If the product promises an update within 30 seconds, record the start time, the observation time, and the first value seen at the agreed checkpoint. Repeatedly refreshing until the new value appears would conceal a late update. The teaching checkout above promises that reopening the order after Saved shows the new address.