File size: 4,761 Bytes
af1bee9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
# Fusion O2C test case. Schema: tests/README.md. UNVERIFIED against any Fusion pod.
id: O2C-OM-006
title: Cancel one line of a two-line order before shipping
module: O2C
process: Order capture
priority: P3
priority_rationale: "Cancellations moderate volume; compensation logic. I4 x C3 x U3 = 36 -> P3 (map row ORD-04 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:
- ORD-04
verification: UNVERIFIED
approval_status: draft - pending consultant approval (architecture approval gate)
client_questions:
- O2C-Q01
- O2C-Q04
type: happy
tags:
- cancel
- o2c
- order-management
- p3
roles:
- order_entry
preconditions:
- Cancel reason exists (POD-REQUIRED).
data_recipes:
- DR-O2C-USR-001
- DR-O2C-CUS-001
- DR-O2C-ITM-001
- DR-O2C-PRC-001
- DR-O2C-TAX-001
test_values:
  line1: 5 x 108.00 = 540.00
  line2: 3 x 108.00 = 324.00
  total_before: 933.12
  total_after: 583.2
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: Value accepted; no field-level error.
- n: 5
  action: fill
  target:
    role: searchbox
    name: Search Item
  value: "{{data.o2c_item}}"
  expected: Value accepted; no field-level error.
- n: 6
  action: fill
  target:
    role: spinbutton
    name: Quantity
  value: '5'
  expected: Value accepted; no field-level error.
- n: 7
  action: click
  target:
    role: button
    name: Add
  expected: Action completes without error.
- n: 8
  action: fill
  target:
    role: searchbox
    name: Search Item
  value: "{{data.o2c_item}}"
  expected: Value accepted; no field-level error.
- n: 9
  action: fill
  target:
    role: spinbutton
    name: Quantity
  value: '3'
  expected: Value accepted; no field-level error.
- n: 10
  action: click
  target:
    role: button
    name: Add
  expected: Action completes without error.
- n: 11
  action: click
  target:
    role: button
    name: Submit
  expected: "Order submitted: line 1 540.00, line 2 324.00; total 933.12 incl. 8% tax."
- n: 12
  action: login_as
  value: "{{users.order_entry}}"
  expected: Home page loads for the order_entry test user; no error banner.
- n: 13
  action: navigate
  value: "{{nav.order_management}}"
  expected: Work area 'order_management' opens (path resolved from ui-glossary nav map).
- n: 14
  action: fill
  target:
    role: textbox
    name: Order
  value: "{{run.order_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: "{{run.order_number}}"
  expected: Order page opens.
- n: 17
  action: click
  target:
    role: button
    name: Revise
  expected: Action completes without error.
- n: 18
  action: click
  target:
    role: row
    name: Line 2
  expected: Action completes without error.
- n: 19
  action: click
  target:
    role: button
    name: Actions
  expected: Action completes without error.
- n: 20
  action: click
  target:
    role: menuitem
    name: Cancel Line
  expected: Action completes without error.
- n: 21
  action: select
  target:
    role: combobox
    name: Reason
  value: "{{data.cancel_reason}}"
  expected: Value selected and shown in field.
- n: 22
  action: click
  target:
    role: button
    name: Submit
  expected: Line 2 Canceled; order total 583.20.
- n: 23
  action: verify_api
  target:
    method: GET
    path: "{{env.rest_base}}/salesOrdersForOrderHub?q=OrderNumber='{{run.order_number}}'&expand=lines"
  expected: Line 2 status CANCELED, quantity 0; line 1 unchanged quantity 5.
expected_result: Line 2 status CANCELED, quantity 0; line 1 unchanged quantity 5.
notes:
- Runs against a mock prove only the mock, never Oracle Fusion.