Lesson 6 of 6
Test cases
10 min
Contoso's sales order tests have one job: prove that orders behave as the business expects in the situations that actually happen. Saving an order proves very little. The value is in partial availability, incompletion, blocks and multi-item behavior, and in evidence that shows statuses, schedule lines and document flow, not just a success message.
A sales order test set
| ID | Scenario | Setup | Expected result |
|---|---|---|---|
| SO-01 | Standard multi-item order, full availability | 50 × CMC-ALT-100 and 20 × CMC-RTR-200, stock available in 1710 | Both items confirmed on requested date; correct prices, plant, item category; complete |
| SO-02 | Partial availability, partial delivery allowed | Only 30 alternators in stock; 40 due from production | Two schedule lines: 30 on requested date, 20 later |
| SO-03 | Partial availability, complete delivery required | Same stock; complete delivery set | 50 confirmed together on the later date |
| SO-04 | No availability | Zero stock, no receipts in horizon | No confirmed quantity; order appears in monitoring as not confirmed |
| SO-05 | Incomplete order | Save without incoterms location | Log lists the field; order not in delivery due list; completing it opens delivery |
| SO-06 | Delivery block set and released | Block 'address check' set by sales | Not in due list; unauthorized user cannot release; authorized release opens delivery |
| SO-07 | Billing block on item | Block 'price check' on item 10 | Delivery and goods issue proceed; item not in billing due list until released by pricing |
| SO-08 | Credit block | Order exceeds the test customer's credit limit | Credit status blocked; sales cannot release; credit controller releases |
| SO-09 | Duplicate customer reference | Reuse an existing customer PO number | Warning shown as configured |
| SO-10 | Order change after confirmation | Increase quantity from 50 to 60 | Availability rechecked; new schedule line for the extra 10 as stock allows |
Contoso's core sales order test cases. Quantities and settings are examples.
Evidence that proves the result
For block and incompletion tests, the strongest evidence is a before-and-after pair: the status and due list before the action, and after it. A block test that shows only the block reason on the order proves the block was set, not that it stopped anything.
Test data for availability
Availability tests are only as good as their stock setup. Before SO-02 to SO-04, set known stock in plant 1710 (for example by a test goods receipt) and known receipts (a planned production order for 40 units due on a known date), and record them. Then the expected schedule lines are predictable. Running availability tests on whatever stock happens to be in QAS produces results nobody can judge.
- Day 1 morningSet stock and receiptsPost 30 units into storage location 171A; create a production order for 40 due on the 20th
- Day 1 middayRun SO-02 and SO-03Check schedule lines against the expected 30/20 split and the complete delivery date
- Day 1 afternoonRun SO-04 on a product with no stockCheck no confirmation and the monitoring app entry
- Day 1 endClean upReject test orders so later cycles start from known stock
What would you do?
A tester reports SO-06 (delivery block) as passed with a screenshot of the order header showing the block reason. Priya reviews the evidence. What should she ask for?
- Test the situations that matter: multi-item, partial and no availability, incompletion, blocks, credit, changes.
- Rank variants by frequency and impact; test high-impact ones thoroughly and keep them in regression.
- Evidence: item details, schedule lines, statuses before and after, and document flow.
- Set known stock and receipts before availability tests so expected results are predictable.
- Block tests must prove set, stop, unauthorized release refused and authorized release.
Check your understanding · not graded
Lesson check
1. Which evidence best proves a delivery block works?
2. Why set known stock and receipts before availability tests?
3. Which variant belongs in 'test thoroughly and automate in regression' for Contoso?
4. A quantity is increased on a confirmed order. What should the test expect?