Download tests/README.md from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 10.5 kB
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/README.md
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/tests/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/tests/README.md
Fusion test cases and data recipes (Fusion Test Designer)
Status 9 Oct 2026 (IST): 709 cases across 11 modules: P2P 161 (122 core + 39 procurement depth; TAX-001/002 added; PAY-009 retired), O2C 84, R2R 76, A2R 52, EXP 49, PPM 53, SCM 57, HCM 60, P2M 46, SCP 36, CX 35 (see "Module packs").
Everything is UNVERIFIED: no Oracle Fusion pod was used. Runs against mock-app/ prove only the mock.
Layout
- Modules: P2P cases stay flat in
cases/*.yaml; other packs are in subfolders. The loader readstests/cases/recursively: Automation'ssrc/cases.ts(yamlFiles()) andscripts/case-map.js(walkFiles) both recurse, skipping names starting with.or_(verified 9 Oct 2026). Other modules go in subfolders (cases/<pack>/, recipes indata-recipes/<pack>/); see "Module packs" below. cases/P2P-<AREA>-NNN.yaml: one case per file, file name = case ID.data-recipes/DR-<AREA>-NNN.yaml: one recipe per file.traceability.md: coverage-map row -> cases.ui-glossary.yaml: nav keys, role/label conventions, placeholder namespaces, known mock-app label gaps. Per-module sections for o2c, r2r, a2r, exp, scm, p2m, ppm, scp, hcm and cx (the last six added 9 Oct 2026 from Playwright'ssrc/modules/<module>/labels.ts, all UNVERIFIED);npm run check:glossaryin automation/ reports 0 unmapped.
Case schema (keys in this order)
| Key | Rule |
|---|---|
id |
P2P-<AREA>-NNN, unique. Areas: REQ, APR, PO, POC (PO change/cancel), RCV, INV, HLD, CM (credit/debit memo), PAY, ACC, SUP, SEC, INT, E2E (P3 will add RTN, SRC). |
title, process |
process = coverage-map flow of the primary row. |
priority |
Exactly P1/P2/P3/P4. Scored per case (Chief of Staff ruling 9 Oct): Analyst's map 搂4 method applied to what the case tests: Impact x Change likelihood x Usage. P1 >= 75, P2 40-74, P3 20-39, P4 < 20 (P4 = designer split of the map's P3 band, matching QA's P4 'low'). Not inherited from the map row. |
priority_rationale |
One line: why, the I x C x U arithmetic, the map row's own tier, and whether the placeholder usage score drove the tier. |
priority_score |
{impact, change_likelihood, usage, usage_basis, risk, score, tiers, usage_sensitive}. usage_sensitive: true = a +/-1 change in the ASSUMED usage would change the tier. |
priority_source |
Fixed text naming the method. |
map_ids |
Coverage-map row IDs (e.g. AP-04). First = primary. Separate from id. |
verification |
Always UNVERIFIED until run on a real test pod. |
approval_status |
Draft until a consultant approves (architecture approval gate). |
type, tags, roles |
Roles are persona keys from DR-USR-001. |
preconditions, data_recipes, config_dependencies |
Recipes referenced by ID. |
test_values |
Concrete numbers for match/hold/approval/accounting cases (qty, unit price, amounts, variance vs tolerance). Tolerances/thresholds marked ASSUMED. |
steps |
List of {n, action, target{role,name} or {method,path}, value, expected, note}. |
expected_result |
Final business outcome (same as last step's expected). |
stand_in / manual_reference_steps |
Only where QA approved an automated stand-in (P2P-INV-006: rest-import). steps = automated stand-in; manual_reference_steps = original flow, not automated. |
notes |
Assumptions, config dependencies, automation caveats. |
Step actions: login_as, navigate (value = {{nav.<key>}}), click, fill, select, verify, verify_api, wait_for, check_mailbox, click_email_link, verify_file, seed_file, precondition_flow (reuse another case's flow), manual, note.
Targets use ARIA role + accessible name, intended for page.getByRole(role, { name }). Scope ambiguous names (e.g. Amount in header vs lines) to the region named in the step note or expected text.
Placeholders (never filled with invented pod values)
{{env.*}} run environment (REST base, mailboxes) 路 {{users.*}} persona usernames from vault 路 {{org.*}} Scout output (DR-ORG-001) 路 {{data.*}} recipe outputs 路 {{holds.*}} pod hold names (DR-TOL-002) 路 {{run.*}} values captured during the run 路 {{dates.*}} computed dates 路 {{nav.*}}/{{deeplinks.*}} UI map in ui-glossary.yaml 路 {{baseline.*}} pre-patch snapshots 路 {{timeouts.*}}.
Amounts, quantities, prices, tolerances and approval thresholds are concrete numbers (synthetic; thresholds/tolerances ASSUMED).
Concrete value set (ASSUMED where noted; verify on pod)
PO/req line: 10 x 25.00 = 250.00 路 partial receipt 4 路 price tolerance 5% (limit 26.25; over = 26.26) 路 qty ordered/received tolerance 0% 路 tax 10% 路 withholding 2% 路 req approval: <100.00 auto, <1000.00 L1, >=1000.00 L1+L2 路 PO approval: >=1000.00 L1, >=5000.00 L1+L2 路 over-receipt tolerance 10% (11 ok, 12 rejected) 路 days-early 5 路 change order 10x25.00 -> 15x27.00 = 405.00 路 services 2000.00 (receive 800.00) 路 credit memo -2 x 25.00 = -50.00 路 debit memo -75.00 (net pay 425.00) 路 prepayment 300.00 apply 200.00 路 non-PO invoice 500.00 split 60/40.
Generation
Files were generated from a designer script (kept outside the repo in the designer's scratch space); edit the YAML directly from now on.
Module packs (updated 9 Oct 2026, 17:30 IST)
| Pack | Cases | Recipes | ID pattern | Map | Status |
|---|---|---|---|---|---|
| P2P | tests/cases/*.yaml (flat, unchanged) | tests/data-recipes/*.yaml | P2P--NNN | analysis/p2p-coverage-map.md (46 rows) + analysis/procurement-depth-coverage-map.md (38 rows, P2P add-on, map_ids PRD:) |
161 cases: 122 core (incl. TAX-001/002; PAY-009 retired) + 39 procurement depth (incl. CTL-001..005; PRD owns the Terms Library for all packs, 9 Oct 2026); traceability-prd.md |
| O2C | tests/cases/o2c/ | tests/data-recipes/o2c/ (DR-O2C-*) | O2C--NNN | analysis/o2c-coverage-map.md | 84 cases, P1-P4 |
| R2R | tests/cases/r2r/ | tests/data-recipes/r2r/ (DR-R2R-*) | R2R--NNN | analysis/r2r-coverage-map.md | 76 cases, P1-P4 |
| A2R | tests/cases/a2r/ | tests/data-recipes/a2r/ (DR-A2R-*) | A2R--NNN | analysis/a2r-coverage-map.md | 52 cases, P1-P4 |
| Expenses | tests/cases/exp/ | tests/data-recipes/exp/ (DR-EXP-*) | EXP--NNN | analysis/expenses-coverage-map.md | 49 cases, P1-P4 |
| PPM | tests/cases/ppm/ | tests/data-recipes/ppm/ (DR-PPM-*) | PPM--NNN | analysis/ppm-coverage-map.md (50 rows) | 53 cases, P1-P4 |
| SCM | tests/cases/scm/ | tests/data-recipes/scm/ (DR-SCM-*) | SCM--NNN | analysis/scm-coverage-map.md (59 rows incl. WOC-01..03) | 57 cases, P1-P4 (incl. SCM-WOC-001..003) |
| HCM | tests/cases/hcm/ | tests/data-recipes/hcm/ (DR-HCM-*) | HCM--NNN | analysis/hcm-coverage-map.md (61 rows) | 60 cases, P1-P4; all held for pod/real data (mock runs allowed, non-gating) |
| SCP | tests/cases/scp/ | tests/data-recipes/scp/ (DR-SCP-*) | SCP--NNN | analysis/scp-coverage-map.md (35 rows) | 36 cases, P1-P4 (DMD-01 split: DMD-001 main, DMD-002 tolerant) |
| P2M | tests/cases/p2m/ | tests/data-recipes/p2m/ (DR-P2M-*) | P2M--NNN | analysis/p2m-coverage-map.md (49 rows) | 46 cases, P1-P4 (WOC rows hosted in scm/) |
| CX | tests/cases/cx/ | tests/data-recipes/cx/ (DR-CX-*) | CX--NNN | analysis/cx-coverage-map.md (35 rows) | 35 cases, P1-P4; all condition: CX-same-pod and held for pod/real data (mock runs allowed, non-gating); 3 tolerant AI cases (LEA-002, CHN-003, AIX-001); stops at quote submit (O2C:ORD-02 owns import) |
Traceability: tests/traceability.md (P2P) and tests/traceability-.md for each other pack.
Optional case fields:
owner: who owns a boundary row. A2R boundary notes are settled, so they were moved tonotesand A2R cases carry noowner. SCM-WOC-* carryowner: SCM.stand_in/stand_in_reason: a service path replaces a desktop add-in or UI flow (e.g. R2R-GL-003 journal import instead of ADFdi; HDL instead of Spreadsheet Data Loader).schedule: event-driven(same name as the map tag): runs in the patch cycle before the event, whatever its tier.condition: required on map rows tagged CONDITIONAL (e.g. P2P-TAX-001/002, HCM-PAY-013..016); also used on "if enabled" cases.condition_detail: a second, narrower condition when a case already carries a pack-widecondition(e.g. CX-WOR-001, CX-CTR-001, CX-SVY-001 are conditional rows inside the CX-same-pod pack).suite: tolerant+suite_reason+go_no_go: false: AI or probabilistic scenarios, run and reported separately, not counted toward go/no-go. Deterministic parts of a mixed row are split into a separate main-suite case.client_questions: IDs from analysis/open-client-questions.md that the case depends on (answers are never invented).status: retired+superseded_by+retired_reason: file kept for history (P2P-PAY-009 -> R2R-CM-003). Do not run retired cases.pii: synthetic,execution_hold: pod-masking-unconfirmed,execution_hold_reason,hold_scope: pod-and-real-data,mock_runs: allowed-non-gating: every HCM and CX case (Chief of Staff ruling, 9 Oct 2026). No run against any Fusion pod or any real data until masking is confirmed (HCM-Q02 / CX-Q02). Local mock runs with synthetic data only are allowed; their results are reported but do not gate go/no-go. Theexecution_holdkey is kept so qa/audit.py and case-map.js still treat these cases as held.map_idsprefix: O2C/R2R use the prefix only on shared cross-cutting rows (O2C:SEC-01). A2R, EXP, PPM, SCM, HCM and P2M use the prefix on every row. Cases hosted for another map list both (SCM:WOC-01,P2M:WOC-01).- Cross-pack recipe reuse is by ID, and each recipe's
used_bylists users from every pack. - Shared people: DR-HCM-HIRE-001, DR-HCM-TERM-001 and DR-HCM-ROLE-001 are the intended single source of synthetic users and approvers. Persona recipes that should point to them later (not rewritten yet): DR-USR-001, DR-O2C-USR-001, DR-R2R-USR-001, DR-A2R-USR-001, DR-EXP-USR-001, DR-PPM-USR-001, DR-PPM-EXE-001, DR-SCM-USR-001, DR-P2M-USR-001.
- Layout (gap 3, closed 9 Oct 2026): the loader reads tests/cases recursively. automation/src/cases.ts and scripts/case-map.js both recurse into the pack subfolders (case-map.js read all 709 cases in a dry run to a temp outdir). Duplicate IDs across folders make
allCases()throw, so IDs must stay unique repo-wide. Remaining gap: the new packs have no Playwright scripts yet.