patchwise-agent-studio / tests /cases /o2c /O2C-ACC-004.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
2.76 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-ACC-004
title: COGS / deferred COGS from shipment
module: O2C
process: Accounting
priority: P3
priority_rationale: "Only if Cost Management used. I4 x C3 x U3 = 36 -> P3 (map row ACC-02 is P3, score 36). Usage placeholder drove tier: usage\
\ 4 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: 4
change_likelihood: 3
usage: 3
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 12
score: 36
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: true
map_ids:
- ACC-02
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- O2C-Q12
type: happy
tags:
- accounting
- cogs
- conditional
- o2c
- p3
roles:
- gl_accountant
preconditions:
- Cost Management in use (POD-REQUIRED).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-ORD-003
- DR-O2C-ITM-001
test_values:
unit_cost: 70.00 (ASSUMED)
qty: 5
cogs: 350.0
steps:
- n: 1
action: navigate
value: "{{nav.scheduled_processes}}"
expected: Work area 'scheduled_processes' opens (path resolved from ui-glossary nav map).
- n: 2
action: click
target:
role: button
name: Schedule New Process
expected: Schedule New Process dialog opens.
- n: 3
action: fill
target:
role: combobox
name: Name
value: Create Cost Accounting Distributions
expected: Process 'Create Cost Accounting Distributions' is selectable.
- n: 4
action: click
target:
role: button
name: OK
expected: Process Details dialog opens.
- n: 5
action: fill
target:
role: textbox
name: Cost Organization
value: "{{org.cost_org}}"
expected: Value accepted; no field-level error.
- n: 6
action: click
target:
role: button
name: Submit
expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}."
- n: 7
action: wait_for
target:
role: cell
name: Status
value: "{{run.process_id}}"
expected: Succeeds.
- n: 8
action: verify_api
target:
method: GET
path: "{{env.rest_base}}/costAccountingDistributions?q=SourceReference='{{data.shipped_order_number}}'"
expected: "Shipment 5 x 70.00 cost: Dr Deferred COGS 350.00, Cr Inventory 350.00; after invoice: Dr COGS 350.00 Cr Deferred COGS 350.00."
expected_result: "Shipment 5 x 70.00 cost: Dr Deferred COGS 350.00, Cr Inventory 350.00; after invoice: Dr COGS 350.00 Cr Deferred COGS 350.00."
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.