Download tests/cases/o2c/O2C-CM-004.yaml from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 3.08 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-CM-004.yaml
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/cases/o2c/O2C-CM-004.yaml
-
curl -L -o O2C-CM-004.yaml https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/cases/o2c/O2C-CM-004.yaml
3.08 kB
| # Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod. | |
| id: O2C-CM-004 | |
| title: Credit memo request routed for approval above threshold | |
| module: O2C | |
| process: Billing | |
| priority: P2 | |
| priority_rationale: "Approval rules change; credit control. I4 x C4 x U3 = 48 -> P2 (map row BIL-03 is P2, score 60). 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: | |
| - BIL-03 | |
| - "O2C:APR-01" | |
| verification: UNVERIFIED | |
| approval_status: draft - pending consultant approval (architecture approval gate) | |
| client_questions: | |
| - O2C-Q08 | |
| - X-Q10 | |
| type: happy | |
| tags: | |
| - approval | |
| - ar | |
| - credit-memo | |
| - o2c | |
| - p2 | |
| roles: | |
| - billing_specialist | |
| - ar_manager | |
| preconditions: | |
| - Approval threshold 200.00 (ASSUMED). | |
| data_recipes: | |
| - DR-O2C-USR-001 | |
| - DR-O2C-AR-001 | |
| - DR-O2C-APR-001 | |
| test_values: | |
| request: -250.0 | |
| threshold: 200.00 (ASSUMED) | |
| balance_after: 333.2 | |
| steps: | |
| - n: 1 | |
| action: login_as | |
| value: "{{users.billing_specialist}}" | |
| expected: Home page loads for the billing_specialist test user; no error banner. | |
| - n: 2 | |
| action: navigate | |
| value: "{{nav.billing}}" | |
| expected: Work area 'billing' opens (path resolved from ui-glossary nav map). | |
| - n: 3 | |
| action: click | |
| target: | |
| role: link | |
| name: Manage Credit Memo Requests | |
| note: Tasks panel link | |
| expected: "'Manage Credit Memo Requests' page opens." | |
| - n: 4 | |
| action: click | |
| target: | |
| role: button | |
| name: Create | |
| expected: Action completes without error. | |
| - n: 5 | |
| action: fill | |
| target: | |
| role: textbox | |
| name: Transaction Number | |
| value: "{{data.open_ar_invoice_number}}" | |
| expected: Value accepted; no field-level error. | |
| - n: 6 | |
| action: fill | |
| target: | |
| role: textbox | |
| name: Amount | |
| value: "-250.00" | |
| expected: Value accepted; no field-level error. | |
| - n: 7 | |
| action: click | |
| target: | |
| role: button | |
| name: Submit | |
| expected: Request routed for approval (above 200.00 ASSUMED). | |
| - n: 8 | |
| action: login_as | |
| value: "{{users.ar_manager}}" | |
| expected: Home page loads for the ar_manager test user; no error banner. | |
| - n: 9 | |
| action: click | |
| target: | |
| role: button | |
| name: Notifications | |
| expected: Notifications/worklist panel opens. | |
| - n: 10 | |
| action: click | |
| target: | |
| role: link | |
| name: "{{run.cmr_number}}" | |
| expected: Approval notification for the document opens with header, lines and amount matching the submitted document. | |
| - n: 11 | |
| action: click | |
| target: | |
| role: button | |
| name: Approve | |
| expected: Approved; credit memo -250.00 created; invoice balance 333.20. | |
| expected_result: Approved; credit memo -250.00 created; invoice balance 333.20. | |
| notes: | |
| - Runs against a mock prove only the mock, never Oracle Fusion. | |