patchwise-agent-studio / tests /cases /o2c /O2C-COL-002.yaml
EnergyVenom's picture
Patchwise Agent Studio: Oracle AI Agent Studio cycles
af1bee9 verified
Raw History Blame Contribute Delete
4.3 kB
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-COL-002
title: "Collections: dunning, promise to pay and dispute"
module: O2C
process: Adjustments & collections
priority: P2
priority_rationale: "Collections workbench; Advanced Collections usage ASSUMED. I4 x C4 x U3 = 48 -> P2 (map row COL-02 is P2, score 48). 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:
- COL-02
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- O2C-Q10
type: happy
tags:
- collections
- dispute
- dunning
- o2c
- p2
roles:
- collections_agent
preconditions:
- Overdue invoice 432.00 (DR-O2C-AR-006).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-AR-006
test_values:
overdue: 432.0
days_past_due: 45
ptp: 432.0
dispute: 50.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: Send Dunning Letters
expected: Process 'Send Dunning Letters' is selectable.
- n: 4
action: click
target:
role: button
name: OK
expected: Process Details dialog opens.
- n: 5
action: fill
target:
role: textbox
name: Business Unit
value: "{{org.o2c_bu}}"
expected: Value accepted; no field-level error.
- n: 6
action: fill
target:
role: textbox
name: Customer
value: "{{data.overdue_customer_name}}"
expected: Value accepted; no field-level error.
- n: 7
action: click
target:
role: button
name: Submit
expected: "Confirmation dialog shows a process ID; capture as {{run.process_id}}."
- n: 8
action: wait_for
target:
role: cell
name: Status
value: "{{run.process_id}}"
expected: "Dunning letter generated for invoice 45 days past due (432.00); delivered to {{env.test_mailbox}} only."
- n: 9
action: login_as
value: "{{users.collections_agent}}"
expected: Home page loads for the collections_agent test user; no error banner.
- n: 10
action: navigate
value: "{{nav.collections}}"
expected: Work area 'collections' opens (path resolved from ui-glossary nav map).
- n: 11
action: fill
target:
role: textbox
name: Customer
value: "{{data.overdue_customer_name}}"
expected: Value accepted; no field-level error.
- n: 12
action: click
target:
role: button
name: Search
expected: Matching row is returned in the results table.
- n: 13
action: click
target:
role: button
name: Record Promise to Pay
expected: Action completes without error.
- n: 14
action: fill
target:
role: textbox
name: Amount
value: '432.00'
expected: Value accepted; no field-level error.
- n: 15
action: fill
target:
role: textbox
name: Promise Date
value: "{{dates.today_plus_7}}"
expected: Value accepted; no field-level error.
- n: 16
action: click
target:
role: button
name: Save
expected: Promise recorded, broken-promise check dated +7.
- n: 17
action: click
target:
role: button
name: Create Dispute
expected: Action completes without error.
- n: 18
action: fill
target:
role: textbox
name: Amount
value: '50.00'
expected: Value accepted; no field-level error.
- n: 19
action: click
target:
role: button
name: Submit
expected: Dispute 50.00 created, routed for approval; disputed amount excluded from dunning.
expected_result: Dispute 50.00 created, routed for approval; disputed amount excluded from dunning.
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.