Tools and techniques
Test and deliver the change
Make the change clear, manage the risks and check that it works.
From requirements to test evidence
Follow one requirement through to the test steps
This uses the same supplier ASN example as the warehouse receiving worked example. Open each level to see how the requirement becomes an executable test.
User story → Acceptance criteria → Test scenario → Test case → Test script → Test steps and evidence
These labels describe the structure used here; teams and test tools may group them differently. A scenario describes the business situation, a case defines a particular check, and a script sets out the actions and expected results.
One story number connects the example
US-01 is User Story 01. The same 01 follows each prefix: AC for acceptance criteria, TS for test scenario, TC for test case and SCR for test script. The next number identifies the item within that story; the final number identifies a script step.
For example, SCR-01-01-01 means Story 01, Script 01, Step 01. The links below show which criterion each case covers; the case number does not have to match the criterion number.
- Valid ASN import
- Unknown purchase order
- Duplicate ASN
- Product not on the order
Choose any reference to open its section. Two cases link to AC-01-02 because they check different invalid details.
User story
US-01 — Import the supplier ASN
As an inbound planning colleague,
I want to import supplier dispatch details linked to the purchase order,
So that the warehouse has an expected receipt to receive stock against.
Acceptance criteria
AC-01-01 — Create an expected receipt from an ASN
Given supplier ASN ASN-2042 references open purchase order PO-1042 and dispatches 100 units of SKU-100,
When the valid ASN is imported into the WMS,
Then an expected receipt is created with the supplier, ASN reference, purchase order, product and dispatched quantity,
And no physical stock or available quantity is created by the ASN alone.
AC-01-02 — Refer an invalid ASN for correction
AC-01-03 — Avoid a duplicate expected receipt
Test scenario
TS-01 — Import supplier dispatch details safely
Business situation: The warehouse receives an electronic ASN before the goods arrive. Check that valid dispatch details create one expected receipt, invalid details are referred for correction, and repeated imports do not duplicate the receipt.
Coverage: US-01 · AC-01-01 · AC-01-02 · AC-01-03
Each case has its own preconditions. Restore or prepare the stated test data before running it; do not rely on an earlier case having passed.
Test cases
TC-01-01 — Import a valid supplier ASN
Linked to: US-01 → AC-01-01 → TS-01 → TC-01-01 → SCR-01-01
Purpose: Import a valid supplier ASN.
Preconditions: An open PO-1042 exists for the correct supplier and SKU-100. ASN-2042 has not been imported. The tester can import ASNs and view receipts and stock balances.
Test scripts
SCR-01-01 — Import a valid ASN and verify the expected receipt
Linked to: US-01 → AC-01-01 → TS-01 → TC-01-01 → SCR-01-01
Execute this script in an agreed test environment. Each expected result is the acceptance check for that step; the linked acceptance criteria define the business requirement being tested.
SCR-01-01 — Import a valid ASN and verify the expected receipt
One script, executed in step order. Compare each actual result with its expected result before recording the step outcome.
| Step | Action | Expected result | Actual result and evidence | Result |
|---|---|---|---|---|
| SCR-01-01-01Step 1 | Check PO-1042 and record the current stock balances for SKU-100. | The order is open, the supplier and product are valid, and the starting physical and available balances are recorded. | ||
| SCR-01-01-02Step 2 | Prepare ASN-2042 with PO-1042, the supplier reference, SKU-100 and a dispatched quantity of 100. | The ASN contains the required references and the quantity is 100 units. | ||
| SCR-01-01-03Step 3 | Import the ASN into the WMS using the agreed import route. | The ASN is accepted without a validation error. | ||
| SCR-01-01-04Step 4 | Find the expected receipt using ASN-2042. | One expected receipt shows the correct supplier, ASN-2042, PO-1042, SKU-100 and 100 expected units. | ||
| SCR-01-01-05Step 5 | Check physical and available stock balances before recording any goods receipt. | Both balances are unchanged from the starting values; the ASN alone has not created physical or available stock. |
Evidence to retain: import or validation record, receipt reference where applicable, before-and-after quantities and any defect reference. Record the tester, date, environment and test-data version.
Recording outcomes: Mark a step Pass when the actual result meets its expected result, Fail when it does not, or Blocked when it cannot be executed. Reference any defect and follow the agreed rules before continuing after a failure. A passed script does not by itself constitute business acceptance.
TC-01-02 — Reject an ASN with an invalid purchase order
Linked to: US-01 → AC-01-02 → TS-01 → TC-01-02 → SCR-01-02
Purpose: Reject an ASN with an invalid purchase order.
Preconditions: Use a fresh ASN reference, ASN-2043, and a purchase-order reference that does not exist in the test environment. Record the starting stock balances.
Test scripts
SCR-01-02 — Reject an ASN with an unknown purchase order
Linked to: US-01 → AC-01-02 → TS-01 → TC-01-02 → SCR-01-02
Execute this script in an agreed test environment. Each expected result is the acceptance check for that step; the linked acceptance criteria define the business requirement being tested.
SCR-01-02 — Reject an ASN with an unknown purchase order
One script, executed in step order. Compare each actual result with its expected result before recording the step outcome.
| Step | Action | Expected result | Actual result and evidence | Result |
|---|---|---|---|---|
| SCR-01-02-01Step 1 | Confirm that PO-9999 does not exist, then prepare ASN-2043 referencing PO-9999 and 100 units of SKU-100. | The test data contains an unknown purchase-order reference and a unique ASN reference. | ||
| SCR-01-02-02Step 2 | Import ASN-2043 through the agreed ASN import route. | Validation identifies the unknown purchase order and the ASN is not accepted for normal receipt. | ||
| SCR-01-02-03Step 3 | Review the validation record or exception queue. | The ASN reference and validation issue are recorded and available for correction by the responsible colleague. | ||
| SCR-01-02-04Step 4 | Search for a receivable expected receipt for ASN-2043 and check stock balances. | No receivable expected receipt exists for the invalid details; physical and available stock balances are unchanged. |
Evidence to retain: import or validation record, receipt reference where applicable, before-and-after quantities and any defect reference. Record the tester, date, environment and test-data version.
Recording outcomes: Mark a step Pass when the actual result meets its expected result, Fail when it does not, or Blocked when it cannot be executed. Reference any defect and follow the agreed rules before continuing after a failure. A passed script does not by itself constitute business acceptance.
TC-01-03 — Re-import an unchanged ASN without duplication
Linked to: US-01 → AC-01-03 → TS-01 → TC-01-03 → SCR-01-03
Purpose: Re-import an unchanged ASN without duplication.
Preconditions: First import valid ASN-2042 successfully. Record its expected receipt, the expected quantity of 100 units and the current stock balances. Do not record a physical receipt.
Test scripts
SCR-01-03 — Re-import an ASN and verify no duplicate receipt is created
Linked to: US-01 → AC-01-03 → TS-01 → TC-01-03 → SCR-01-03
Execute this script in an agreed test environment. Each expected result is the acceptance check for that step; the linked acceptance criteria define the business requirement being tested.
SCR-01-03 — Re-import an ASN and verify no duplicate receipt is created
One script, executed in step order. Compare each actual result with its expected result before recording the step outcome.
| Step | Action | Expected result | Actual result and evidence | Result |
|---|---|---|---|---|
| SCR-01-03-01Step 1 | Find ASN-2042 and note its existing expected receipt reference and quantity. | Exactly one expected receipt exists with an expected quantity of 100 units. | ||
| SCR-01-03-02Step 2 | Re-import the same ASN-2042 with identical references and quantity. | The WMS identifies that the ASN has already been imported, following the agreed duplicate-handling rule. | ||
| SCR-01-03-03Step 3 | Search again for expected receipts linked to ASN-2042 and PO-1042. | The original expected receipt remains; no second expected receipt has been created. | ||
| SCR-01-03-04Step 4 | Compare expected quantities and stock balances with the recorded starting values. | The expected quantity remains 100, not 200; physical and available balances are unchanged. |
Evidence to retain: import or validation record, receipt reference where applicable, before-and-after quantities and any defect reference. Record the tester, date, environment and test-data version.
Recording outcomes: Mark a step Pass when the actual result meets its expected result, Fail when it does not, or Blocked when it cannot be executed. Reference any defect and follow the agreed rules before continuing after a failure. A passed script does not by itself constitute business acceptance.
TC-01-04 — Reject an ASN with a product not on the purchase order
Linked to: US-01 → AC-01-02 → TS-01 → TC-01-04 → SCR-01-04
Purpose: Reject an ASN with a product not on the purchase order.
Preconditions: PO-1042 is open but does not contain SKU-999. Use a fresh ASN reference, ASN-2044. Record the starting physical and available stock balances.
Test scripts
SCR-01-04 — Reject an ASN containing a product not on the purchase order
Linked to: US-01 → AC-01-02 → TS-01 → TC-01-04 → SCR-01-04
Execute this script in an agreed test environment. Each expected result is the acceptance check for that step; the linked acceptance criteria define the business requirement being tested.
SCR-01-04 — Reject an ASN containing a product not on the purchase order
One script, executed in step order. Compare each actual result with its expected result before recording the step outcome.
| Step | Action | Expected result | Actual result and evidence | Result |
|---|---|---|---|---|
| SCR-01-04-01Step 1 | Confirm that SKU-999 is not on PO-1042, then prepare ASN-2044 with that order, product and a dispatched quantity of 100. | The purchase order is valid but the ASN product is not on that order. | ||
| SCR-01-04-02Step 2 | Import ASN-2044 through the agreed ASN import route. | Validation identifies the product mismatch and the ASN is not accepted for normal receipt. | ||
| SCR-01-04-03Step 3 | Review the validation record or exception queue. | The ASN reference and product mismatch are recorded and available for correction. | ||
| SCR-01-04-04Step 4 | Search for a receivable expected receipt for ASN-2044 and compare stock balances. | No receivable expected receipt exists for the invalid details; physical and available stock balances are unchanged. |
Evidence to retain: import or validation record, receipt reference where applicable, before-and-after quantities and any defect reference. Record the tester, date, environment and test-data version.
Recording outcomes: Mark a step Pass when the actual result meets its expected result, Fail when it does not, or Blocked when it cannot be executed. Reference any defect and follow the agreed rules before continuing after a failure. A passed script does not by itself constitute business acceptance.
Check the coverage before acceptance
Manual or automated testing: explore the benefits, limitations and costs →
TC-01-01 covers the normal import against AC-01-01; TC-01-02 checks an unknown purchase order and TC-01-04 checks a product not on the order, covering both conditions in AC-01-02; TC-01-03 checks duplication against AC-01-03. Consider additional cases for other agreed rules such as missing fields, permissions, quantity tolerances and amended ASNs.
Passing a script provides evidence for its linked criteria. Business acceptance remains an authorised decision based on agreed coverage, results, outstanding defects and operational readiness.
The right level of detail for your challenge
We select and combine these methods around your operation. The scope, outputs and level of detail are agreed with you at the start.
Explore discovery workshops →