patchwise-agent-studio / tests /cases /o2c /O2C-OM-001.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
3.67 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-OM-001
title: Create and submit a standard sales order
module: O2C
process: Order capture
priority: P1
priority_rationale: Main order-capture happy path; OM UI is a primary Redwood target. I5 x C4 x U5 = 100 -> P1 (map row ORD-01 is P1, score 100).
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: 5
change_likelihood: 4
usage: 5
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 20
score: 100
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: false
map_ids:
- ORD-01
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- O2C-Q01
- O2C-Q04
type: happy
tags:
- o2c
- order-management
- p1
- smoke
roles:
- order_entry
preconditions:
- Customer with no credit exposure (DR-O2C-CUS-001); item available (DR-O2C-ITM-001).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-ORG-001
- DR-O2C-CUS-001
- DR-O2C-ITM-001
- DR-O2C-PRC-001
test_values:
qty: 5
list_price: 120.0
discount: 10% (ASSUMED pricing rule, DR-O2C-PRC-001)
unit_selling_price: 108.0
line_amount: 540.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: 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: '5'
expected: Value accepted; no field-level error.
- n: 9
action: click
target:
role: button
name: Add
expected: "Line added: item {{data.o2c_item}}, quantity 5."
- n: 10
action: click
target:
role: button
name: Submit
expected: "Order submitted; status 'Processing' (or 'Awaiting Shipping'); capture {{run.order_number}}."
- n: 11
action: verify
target:
role: cell
name: Unit Selling Price
expected: Unit list price 120.00, discount 10% (12.00), unit selling price 108.00.
- n: 12
action: verify
target:
role: cell
name: Extended Amount
expected: Line amount 5 x 108.00 = 540.00.
- n: 13
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/salesOrdersForOrderHub?q=OrderNumber='{{run.order_number}}'&expand=lines"
expected: StatusCode OPEN/processing; 1 line, OrderedQuantity 5, UnitSellingPrice 108.00, ExtendedAmount 540.00.
expected_result: StatusCode OPEN/processing; 1 line, OrderedQuantity 5, UnitSellingPrice 108.00, ExtendedAmount 540.00.
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.