Download tests/cases/o2c/O2C-ORC-002.yaml from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 5.34 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-ORC-002.yaml
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/cases/o2c/O2C-ORC-002.yaml
-
curl -L -o O2C-ORC-002.yaml https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-ORC-002.yaml
5.34 kB
| # Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. | |
| id: O2C-ORC-002 | |
| title: Drop ship order creates supplier PO and closes on supplier ship confirmation | |
| module: O2C | |
| process: Orchestration | |
| priority: P3 | |
| priority_rationale: "Only if client drop-ships; crosses P2P. I4 x C3 x U2 = 24 -> P3 (map row ORC-02 is P3, score 24). Usage placeholder drove\ | |
| \ tier: usage 1 would give P4." | |
| 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: 3 | |
| usage: 2 | |
| usage_basis: ASSUMED (placeholder until Scout usage counts) | |
| risk: 12 | |
| score: 24 | |
| tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20 | |
| usage_sensitive: true | |
| map_ids: | |
| - ORC-02 | |
| verification: UNVERIFIED | |
| approval_status: draft - pending consultant approval (architecture approval gate) | |
| client_questions: | |
| - O2C-Q07 | |
| type: happy | |
| tags: | |
| - conditional | |
| - cross-pack-p2p | |
| - drop-ship | |
| - o2c | |
| - orchestration | |
| - p3 | |
| roles: | |
| - order_entry | |
| - buyer | |
| preconditions: | |
| - Drop-ship item and supplier (POD-REQUIRED); P2P recipes reused. | |
| data_recipes: | |
| - DR-O2C-USR-001 | |
| - DR-O2C-CUS-001 | |
| - DR-O2C-ITM-002 | |
| - DR-USR-001 | |
| - DR-SUP-001 | |
| - DR-PO-001 | |
| - DR-RCV-001 | |
| test_values: | |
| qty: 10 | |
| po_unit_price: 25.0 | |
| po_amount: 250.0 | |
| 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: Value accepted; no field-level error. | |
| - n: 5 | |
| action: fill | |
| target: | |
| role: searchbox | |
| name: Search Item | |
| value: "{{data.drop_ship_item}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 6 | |
| action: fill | |
| target: | |
| role: spinbutton | |
| name: Quantity | |
| value: '10' | |
| expected: Value accepted; no field-level error. | |
| - n: 7 | |
| action: click | |
| target: | |
| role: button | |
| name: Add | |
| expected: Action completes without error. | |
| - n: 8 | |
| action: click | |
| target: | |
| role: tab | |
| name: Fulfillment | |
| expected: Action completes without error. | |
| - n: 9 | |
| action: select | |
| target: | |
| role: combobox | |
| name: Supply Type | |
| value: Drop Ship | |
| expected: Value selected and shown in field. | |
| - n: 10 | |
| action: click | |
| target: | |
| role: button | |
| name: Submit | |
| expected: Order submitted; orchestration = drop-ship process. | |
| - n: 11 | |
| action: navigate | |
| value: "{{nav.scheduled_processes}}" | |
| expected: Work area 'scheduled_processes' opens (path resolved from ui-glossary nav map). | |
| - n: 12 | |
| action: click | |
| target: | |
| role: button | |
| name: Schedule New Process | |
| expected: Schedule New Process dialog opens. | |
| - n: 13 | |
| action: fill | |
| target: | |
| role: combobox | |
| name: Name | |
| value: Process Requisitions / Purchase Orders (supply) | |
| expected: Process 'Process Requisitions / Purchase Orders (supply)' is selectable. | |
| - n: 14 | |
| action: click | |
| target: | |
| role: button | |
| name: OK | |
| expected: Process Details dialog opens. | |
| - n: 15 | |
| action: click | |
| target: | |
| role: button | |
| name: Submit | |
| expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}." | |
| - n: 16 | |
| action: wait_for | |
| target: | |
| role: cell | |
| name: Status | |
| value: "{{run.process_id}}" | |
| expected: "Requisition and PO created to supplier {{data.supplier_name}} (P2P DR-SUP-001); PO 10 x 25.00 = 250.00 (P2P DR-PO-001 values)." | |
| - n: 17 | |
| action: login_as | |
| value: "{{users.buyer}}" | |
| expected: Home page loads for the buyer test user; no error banner. | |
| - n: 18 | |
| action: navigate | |
| value: "{{nav.purchase_orders}}" | |
| expected: Work area 'purchase_orders' opens (path resolved from ui-glossary nav map). | |
| - n: 19 | |
| action: fill | |
| target: | |
| role: textbox | |
| name: Order | |
| value: "{{run.drop_ship_po}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 20 | |
| action: click | |
| target: | |
| role: button | |
| name: Search | |
| expected: Matching row is returned in the results table. | |
| - n: 21 | |
| action: verify | |
| target: | |
| role: cell | |
| name: Ship-to | |
| expected: "Ship-to is the customer site {{data.ship_to_site}}, not our warehouse." | |
| - n: 22 | |
| action: manual | |
| note: Drop ship receipt is logical; no physical receiving. | |
| expected: "Supplier ship confirmation / ASN recorded (P2P DR-RCV-001 receipt pattern: logical receipt of 10)." | |
| - n: 23 | |
| action: verify_api | |
| target: | |
| method: GET | |
| path: "{{env.rest_base}}/salesOrdersForOrderHub?q=OrderNumber='{{run.order_number}}'&expand=lines" | |
| expected: Sales order line Shipped/Awaiting billing after supplier ship confirmation; AutoInvoice-eligible at 10 x sell price. | |
| expected_result: Sales order line Shipped/Awaiting billing after supplier ship confirmation; AutoInvoice-eligible at 10 x sell price. | |
| notes: | |
| - Reuses P2P recipes DR-SUP-001, DR-PO-001, DR-RCV-001 (tests/data-recipes/) per map §6 ORC-02. | |
| - Runs against a mock prove only the mock, never Oracle Fusion. | |