patchwise-agent-studio / tests /cases /o2c /O2C-AR-003.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
2.72 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-AR-003
title: Tax calculated on AR invoice for the ship-to jurisdiction
module: O2C
process: Billing
priority: P1
priority_rationale: "Tax on every taxable AR transaction; tax content changes. I5 x C4 x U4 = 80 -> P1 (map row BIL-05 is P1, score 80). Usage\
\ placeholder drove tier: usage 3 would give P2."
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: 4
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 20
score: 80
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: true
map_ids:
- BIL-05
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- X-Q13
type: happy
tags:
- ar
- o2c
- p1
- tax
roles:
- billing_specialist
preconditions:
- Tax regime/rate configured (POD-REQUIRED).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-AR-001
- DR-O2C-TAX-001
test_values:
taxable_amount: 540.0
tax_rate: 8% (ASSUMED)
tax: 43.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 Transactions
note: Tasks panel link
expected: "'Manage Transactions' page opens."
- n: 4
action: fill
target:
role: textbox
name: Transaction Number
value: "{{data.open_ar_invoice_number}}"
expected: Value accepted; no field-level error.
- n: 5
action: click
target:
role: button
name: Search
expected: Matching row is returned in the results table.
- n: 6
action: click
target:
role: link
name: "{{data.open_ar_invoice_number}}"
expected: Action completes without error.
- n: 7
action: click
target:
role: tab
name: Tax
expected: Tax lines region opens.
- n: 8
action: verify
target:
role: cell
name: Tax Rate Code
expected: "Tax rate {{data.o2c_tax_rate_code}} = 8% on taxable 540.00 -> 43.20; jurisdiction matches ship-to {{data.ship_to_site}}."
expected_result: "Tax rate {{data.o2c_tax_rate_code}} = 8% on taxable 540.00 -> 43.20; jurisdiction matches ship-to {{data.ship_to_site}}."
notes:
- External tax engine changes expected values; set from DR-O2C-TAX-001.
- Runs against a mock prove only the mock, never Oracle Fusion.