patchwise-agent-studio / tests /cases /o2c /O2C-ACC-001.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
5.51 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-ACC-001
title: Accounting for AR invoice and applied receipt
module: O2C
process: Accounting
priority: P1
priority_rationale: "Primary AR accounting (invoice + receipt). I5 x C3 x U5 = 75 -> P1 (map row ACC-01 is P1, score 75). 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: 5
change_likelihood: 3
usage: 5
usage_basis: ASSUMED (placeholder until Scout usage counts)
risk: 15
score: 75
tiers: P1 >= 75, P2 40-74, P3 20-39, P4 < 20
usage_sensitive: true
map_ids:
- ACC-01
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
type: happy
tags:
- accounting
- o2c
- p1
- sla
roles:
- ar_specialist
preconditions:
- Invoice 583.20 and its full receipt exist (DR-O2C-AR-001, DR-O2C-RCP-001).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-AR-001
- DR-O2C-RCP-001
- DR-O2C-PER-001
test_values:
invoice_journal: Dr Receivable 583.20 / Cr Revenue 540.00 / Cr Tax 43.20
receipt_journal: Dr Cash 583.20 / Cr Receivable 583.20
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 Accounting
expected: Process 'Create Accounting' is selectable.
- n: 4
action: click
target:
role: button
name: OK
expected: Process Details dialog opens.
- n: 5
action: fill
target:
role: textbox
name: Subledger Application
value: Receivables
expected: Value accepted; no field-level error.
- n: 6
action: fill
target:
role: textbox
name: Ledger
value: "{{org.ledger}}"
expected: Value accepted; no field-level error.
- n: 7
action: fill
target:
role: textbox
name: End Date
value: "{{dates.today}}"
expected: Value accepted; no field-level error.
- n: 8
action: fill
target:
role: textbox
name: Accounting Mode
value: Final
expected: Value accepted; no field-level error.
- n: 9
action: click
target:
role: button
name: Submit
expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}."
- n: 10
action: wait_for
target:
role: cell
name: Status
value: "{{run.process_id}}"
expected: Process succeeds.
- n: 11
action: login_as
value: "{{users.ar_specialist}}"
expected: Home page loads for the ar_specialist test user; no error banner.
- n: 12
action: navigate
value: "{{nav.billing}}"
expected: Work area 'billing' opens (path resolved from ui-glossary nav map).
- n: 13
action: click
target:
role: link
name: Manage Transactions
note: Tasks panel link
expected: "'Manage Transactions' page opens."
- n: 14
action: fill
target:
role: textbox
name: Transaction Number
value: "{{data.open_ar_invoice_number}}"
expected: Value accepted; no field-level error.
- n: 15
action: click
target:
role: button
name: Search
expected: Matching row is returned in the results table.
- n: 16
action: click
target:
role: link
name: "{{data.open_ar_invoice_number}}"
expected: Action completes without error.
- n: 17
action: click
target:
role: button
name: Actions
expected: Action completes without error.
- n: 18
action: click
target:
role: menuitem
name: View Accounting
expected: Action completes without error.
- n: 19
action: verify
target:
role: table
name: Journal Lines
expected: Dr Receivable 583.20; Cr Revenue 540.00; Cr Tax 43.20.
- n: 20
action: navigate
value: "{{nav.receivables_receipts}}"
expected: Work area 'receivables_receipts' opens (path resolved from ui-glossary nav map).
- n: 21
action: click
target:
role: link
name: Manage Receipts
note: Tasks panel link
expected: "'Manage Receipts' page opens."
- n: 22
action: fill
target:
role: textbox
name: Receipt Number
value: "{{data.applied_receipt_number}}"
expected: Value accepted; no field-level error.
- n: 23
action: click
target:
role: button
name: Search
expected: Matching row is returned in the results table.
- n: 24
action: click
target:
role: link
name: "{{data.applied_receipt_number}}"
expected: Action completes without error.
- n: 25
action: click
target:
role: button
name: Actions
expected: Action completes without error.
- n: 26
action: click
target:
role: menuitem
name: View Accounting
expected: Action completes without error.
- n: 27
action: verify
target:
role: table
name: Journal Lines
expected: Dr Cash (or Remittance/Confirmation per receipt class) 583.20; Cr Receivable 583.20.
expected_result: Dr Cash (or Remittance/Confirmation per receipt class) 583.20; Cr Receivable 583.20.
notes:
- Revenue account may be deferred if revenue rules/Revenue Management apply (POD-REQUIRED).
- Runs against a mock prove only the mock, never Oracle Fusion.