Download tests/cases/o2c/O2C-APR-001.yaml from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 3.55 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-APR-001.yaml
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/cases/o2c/O2C-APR-001.yaml
-
curl -L -o O2C-APR-001.yaml https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-APR-001.yaml
3.55 kB
| # Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. | |
| id: O2C-APR-001 | |
| title: Sales order above threshold routes for approval | |
| module: O2C | |
| process: Approvals | |
| priority: P2 | |
| priority_rationale: "Approval rules change; if order approval used. I4 x C4 x U3 = 48 -> P2 (map row O2C:APR-01 is P2, score 48). Usage placeholder\ | |
| \ drove tier: usage 2 would give P3." | |
| priority_source: case-level risk x usage (analysis/o2c-coverage-map.md §4 method) scored on what this case tests; not the row tier | |
| priority_score: | |
| impact: 4 | |
| change_likelihood: 4 | |
| usage: 3 | |
| usage_basis: ASSUMED (placeholder until Scout usage counts) | |
| risk: 16 | |
| score: 48 | |
| tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20 | |
| usage_sensitive: true | |
| map_ids: | |
| - "O2C:APR-01" | |
| verification: UNVERIFIED | |
| approval_status: draft - pending consultant approval (architecture approval gate) | |
| client_questions: | |
| - X-Q10 | |
| type: happy | |
| tags: | |
| - approval | |
| - o2c | |
| - order-management | |
| - p2 | |
| roles: | |
| - order_entry | |
| - order_manager | |
| preconditions: | |
| - Order approval rule 5,000.00 (ASSUMED). | |
| data_recipes: | |
| - DR-O2C-USR-001 | |
| - DR-O2C-CUS-001 | |
| - DR-O2C-ITM-001 | |
| - DR-O2C-PRC-001 | |
| - DR-O2C-APR-001 | |
| test_values: | |
| qty: 50 | |
| amount: 5400.0 | |
| threshold: 5000.00 (ASSUMED) | |
| steps: | |
| - n: 1 | |
| action: login_as | |
| value: "{{users.order_entry}}" | |
| expected: Home page loads for the order_entry test user; no error banner. | |
| - n: 2 | |
| action: navigate | |
| value: "{{nav.order_management}}" | |
| expected: Work area 'order_management' opens (path resolved from ui-glossary nav map). | |
| - n: 3 | |
| action: click | |
| target: | |
| role: link | |
| name: Create Order | |
| note: Tasks panel link | |
| expected: Create Order page opens. | |
| - n: 4 | |
| action: fill | |
| target: | |
| role: combobox | |
| name: Customer | |
| value: "{{data.customer_name}}" | |
| expected: Bill-to account, bill-to site and ship-to default from the customer. | |
| - n: 5 | |
| action: fill | |
| target: | |
| role: combobox | |
| name: Business Unit | |
| value: "{{org.o2c_bu}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 6 | |
| action: fill | |
| target: | |
| role: textbox | |
| name: Purchase Order | |
| value: "ZZ-CPO-{{run.suffix}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 7 | |
| action: fill | |
| target: | |
| role: searchbox | |
| name: Search Item | |
| value: "{{data.o2c_item}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 8 | |
| action: fill | |
| target: | |
| role: spinbutton | |
| name: Quantity | |
| value: '50' | |
| expected: Value accepted; no field-level error. | |
| - n: 9 | |
| action: click | |
| target: | |
| role: button | |
| name: Add | |
| expected: "Line added: item {{data.o2c_item}}, quantity 50." | |
| - n: 10 | |
| action: click | |
| target: | |
| role: button | |
| name: Submit | |
| expected: Order 50 x 108.00 = 5,400.00 (> 5,000.00 threshold ASSUMED) submitted; status Pending Approval. | |
| - n: 11 | |
| action: login_as | |
| value: "{{users.order_manager}}" | |
| expected: Home page loads for the order_manager test user; no error banner. | |
| - n: 12 | |
| action: click | |
| target: | |
| role: button | |
| name: Notifications | |
| expected: Notifications/worklist panel opens. | |
| - n: 13 | |
| action: click | |
| target: | |
| role: link | |
| name: "{{run.order_number}}" | |
| expected: Approval notification for the document opens with header, lines and amount matching the submitted document. | |
| - n: 14 | |
| action: click | |
| target: | |
| role: button | |
| name: Approve | |
| expected: Approved; order Processing. | |
| expected_result: Approved; order Processing. | |
| notes: | |
| - Runs against a mock prove only the mock, never Oracle Fusion. | |