Manufacturing: test plan
For: testers checking Manufacturing (Recipes and Production) on the QA server: making a finished product from raw materials, the stock it moves, the sale of it, wrong input, cost and the accounts. Checks marked ⚠ failed on nova on 25-Nov-2026: log a bug if they fail again. The 25-Nov run found 14 bugs; they are in the QA folder (Manufacturing_E2E_Rice_Packet_Test_Report). Expected numbers in the examples: 10 packets use 10 kg Rice, 10 Cover, 10 Sticker (Rice 100 to 90, Cover 50 to 40, Sticker 50 to 40, Packet 10 to 20).
Set up once
Make these on the QA server, as in the Tester handbook: environments, test data and checks.
You need | Why |
|---|---|
Products QA MFG Rice (kg), Cover and Sticker (Piece), Rice Packet 1 KG (packet) | Raw materials and a finished product. Name every record QA … so it can be cleaned up |
Opening stock: Rice 100, Cover 50, Sticker 50, Packet 10 | Known numbers to compare after a run |
A recipe: 1 packet = 1 kg Rice + 1 Cover + 1 Sticker | Auto-calculation and cost checks |
A supplier and a customer named QA … | For the purchase and the sale; never use a real one |
An admin user | Delete of a production run is admin only and exists only in the API; the Production list has a view icon only |
Access to Accounts (Trial balance, General ledger) and Reports > Stock report | Section G |
A second tester must not work on the same products | On 25-Nov another tester changed stock of a test product during the run |
A. Products and opening stock
# | Check | Steps | Pass when |
|---|---|---|---|
1 | Create raw material Rice, KG, opening stock 100 | Add product with opening stock 100 (QA MFG Rice, unit Kilogram, cost 50) | Saved; stock 100 |
2 | Create raw material Cover, Pieces, opening stock 50 | Add product (QA MFG Cover, unit Piece, cost 2) | Saved; stock 50 |
3 | Create raw material Sticker, Pieces, opening stock 50 | Add product (QA MFG Sticker, Piece, cost 1) | Saved; stock 50 |
4 | Create finished product Rice Packet 1 KG, Packet, opening stock 10 | Add product (QA MFG Rice Packet 1 KG, unit packet, cost 53, price 80) | Saved; stock 10 |
5 | ⚠ Product type Raw Material / Finished Goods | Look for a product type on the form and in the API | A raw material and a finished goods type |
6 | Rice already exists as a product? | Search products for Rice | Rice not present (as stated) |
7 | Verify unit, stock tracking and stock configuration | Read the saved products | Unit and tracking as entered |
B. Recipe (bill of materials)
# | Check | Steps | Pass when |
|---|---|---|---|
8 | Create recipe for Rice Packet: Rice 1, Cover 1, Sticker 1 per packet | Save recipe, read it back (Output 1 packet) | Saved with 3 lines |
9 | Ingredient cost on the recipe | Read total ingredients cost (50 + 2 + 1) | Total 53 |
10 | ⚠ Second recipe for a product that already has one (API) | Save a second recipe for the same finished product (Rice 1) | Refused |
11 | Delete a recipe that productions used / that is unused | Delete recipe 9 (used) and recipe 11 (unused) | Used: refused with reason; unused: deleted |
C. Production
# | Check | Steps | Pass when |
|---|---|---|---|
12 | Create production of 10 packets | Add production, recipe QA MFG Rice Packet 1 KG, qty 10 (10 packets) | Run saved |
13 | Recipe selection on the screen | Add Production › product QA MFG Rice Packet B | Recipe picked automatically |
14 | Ingredient auto-calculation on the screen | Quantity 1 then 10 (1 and 10) | 1 kg/1/1 then 10 kg/10/10; cost 53 then 530 |
15 | ⚠ Raw material availability shown on the screen | Quantity 500 with 95 kg Rice in stock (500) | Warning that stock is short |
16 | Run completion record | Open run PXN8 (10 packets) | Run with 10 packets, cost |
17 | Raw material stock deducted | Compare stock before/after | Rice -10, Cover -10, Sticker -10 |
18 | Finished goods stock increased | Compare stock before/after | Packets +10 |
19 | Add 3 products on the product form | New product x3: QA UI Flour (kg, 40), QA UI Bag (Piece, 2), QA UI Bread Pack (packet, 42) | All saved |
20 | Add a purchase on the screen | New purchase, QA Batch Supplier, 20 Flour + 20 Bag, Save (Total 840) | Saved; stock +20 each |
21 | Add a recipe on the screen | Recipes › Add Recipe: Bread Pack, output 1 packet, 1 kg Flour + 1 Bag, Save (Cost per packet 42) | Saved with cost 42 |
22 | Add a production on the screen | Add Production: Bread Pack, quantity 5, Save, OK (5 packets) | Ingredients 5 kg + 5 PC, cost 210 |
23 | Stock after the production, from the product pages | Open the 3 product pages and the Stock report | Flour 15, Bag 15, Bread Pack 5 |
24 | ⚠ Save a production with short stock on the screen | Add Production: Packet B, quantity 100 with 95 kg Rice, Save, OK (100 packets) | Refused / warned |
25 | ⚠ Remove a wrong production run from the screen | Open the Production list; look for delete / cancel | A way to cancel or delete a run |
26 | Buy the raw materials again at a higher cost | New purchase: 10 Flour at 50, 10 Bag at 3, Save (Total 530) | Saved; stock +10 each |
27 | Production uses the average cost on the screen | Add Production: Bread Pack, quantity 10 (Flour (15x40+10x50)/25 = 44; Bag 2.40) | Estimate 440 + 24 = 464 |
28 | Production record at the new cost | Save PXN32 and open the production view (10 packets) | Flour 44, Bag 2.40, cost per packet 46.40 |
D. Stock and sale of the made goods
# | Check | Steps | Pass when |
|---|---|---|---|
29 | Stock before and after production | Read stock of the 4 products | Before 100/50/50/10; after 90/40/40/20 |
30 | Stock history rows for the run | Open stock history of Rice and Packet | BOM and PRODUCTION rows |
31 | ⚠ Stock history totals tie to stock | Units in / units out on stock history of Rice (Rice) | In 100, out 10, stock 90 |
32 | Stock report and product list agree with stock | Compare list, report and detail | Same numbers |
33 | Sell 2 packets | Sale of 2 packets at 80 (2 packets) | 20 -> 18; raw materials unchanged |
34 | Cost of goods on the sale | Read the sale line | COGS 53 per packet |
35 | Sell more packets than in stock | Sell 999 | Refused |
E. Wrong input and cancelling
# | Check | Steps | Pass when |
|---|---|---|---|
36 | ⚠ Manufacture without Rice stock | Set Rice to 0, produce 1 (Rice 0) | Refused |
37 | ⚠ Manufacture without Cover stock | Set Cover to 0, produce 1 (Cover 0) | Refused |
38 | ⚠ Manufacture without Sticker stock | Set Sticker to 0, produce 1 (Sticker 0) | Refused |
39 | ⚠ Insufficient ingredients | Produce 100 with 90 kg Rice, 40 Cover, 40 Sticker (100 packets) | Refused |
40 | Zero quantity | Produce 0 (0) | Refused |
41 | Negative quantity | Produce -3 (-3) | Refused |
42 | Decimal quantity | Produce 1.5 and 0.0004 packets (1.5 / 0.0004) | Allowed up to the unit decimals (3 for packet) |
43 | ⚠ Manufacture more than available stock | Same as N04 | Refused |
44 | Duplicate submit | Send the same production twice at once (2 x 1 packet) | One run, or a clear duplicate warning |
45 | Edit manufacturing quantity | Update run 7 to 5 | Refused or recalculated |
46 | Delete a manufacturing run | Delete test runs 8, 11-16, 17-18 | Deleted |
47 | Raw materials restored after delete | Compare stock after delete | Back to before |
48 | Delete when finished goods are already sold | Sell 13 of 15 packets, delete run PXN26 (made 5) | Refused |
49 | Manufacture without a recipe | Send no recipe; send a recipe id that does not exist (bomId null / 99999) | Refused |
50 | ⚠ Ingredient quantities that do not follow the recipe | Produce 1 packet with Rice 5 (Rice 5 for 1 packet) | Refused or recalculated from the recipe |
51 | ⚠ Production with no ingredients at all | Produce 1 packet with an empty ingredient list | Refused |
52 | ⚠ Inactive raw material | Deactivate Cover B, produce 1, reactivate (Cover B inactive) | Refused or warned |
53 | Unit conversion between recipe and stock | Look for a unit on recipe lines (kg vs gram) | Converted |
F. Cost
# | Check | Steps | Pass when |
|---|---|---|---|
54 | Individual ingredient cost | Read materials of a run | Rice 50, Cover 2, Sticker 1 per unit |
55 | Total raw material cost, 10 packets | Read run PXN8 | 530 |
56 | Cost per finished packet | Read run | 53 |
57 | Extra production cost (labour/overhead) 25 on 5 packets | Produce 5 with production cost 25 (Cost 25) | Total 5 x 53 + 25 = 290, unit 58 |
58 | Packet average cost after the run | Read packet average (10 @53 + 5 @58) | 54.6667 |
59 | Negative production cost | Production cost -5 (-5) | Refused |
60 | ⚠ Stock report value of finished goods | Compare report value and stock x average cost (Packet B 15) | 15 x 54.67 = 820 |
G. Accounts, reports and the whole flow
# | Check | Steps | Pass when |
|---|---|---|---|
61 | Product > raw stock > recipe > production > deduction > goods > sale > stock | Whole flow in order (Rice Packet) | Every step consistent |
62 | Frontend vs backend vs database | Compare screens, API and database | Same figures |
63 | Journals balance after production, delete and sale | Read trial balance and ledgers | Balanced |
64 | Failed saves and numbers | Look at run numbers after refused saves | No gaps |
65 | Journals for the run (Raw material, Finished goods) | Open the General ledger of Raw Materials and Finished Goods (PXN31, PXN32) | Balanced entries |
66 | ⚠ Product page cost after a purchase at a higher cost | Open Flour and Bread Pack product pages after INV58 and PXN32 (Flour bought at 50) | Cost / stock value follow the new average (Flour 44) |
67 | ⚠ Stock report value after the higher-cost run | Open Reports › Stock report | Flour 660, Bag 36, Bread Pack about 674 (average cost) |
68 | Trial balance after the runs | Accounts › Trial balance, 1 to 25 Nov | Debit = Credit |
69 | Ledger entries of the purchase and production | General ledger of Inventory Asset, Accounts Payable, Finished Goods, Raw Materials (INV57, INV58, PXN31, PXN32) | Each posted at the right amount |
70 | ⚠ Raw material consumption account | Open the Raw Materials Inventory ledger | Purchases and consumption hit the same inventory account |
71 | ⚠ Inventory in the accounts vs the stock report | Compare Inventory Asset + Finished Goods + Raw Materials with Stock at cost | About the same |
Related pages
- Batches: test plan
- Purchases: test plan
- Products: test plan
- Average cost (WAC): test plan
- Tester handbook: environments, test data and checks
No comments to display
No comments to display