← ClaudeAtlas

salesforce-flow-testslisted

Write, run and review Salesforce Flow Tests (FlowTest metadata, Flow Builder Test Mode or View Tests, sf flow run test) for record-triggered and autolaunched flows. Use when asked to test a flow, write flow tests, cover a flow's paths, or review existing flow tests.
PranavNagrecha/salesforce-flow-tests · ★ 0 · Testing & QA · score 72
Install: claude install-skill PranavNagrecha/salesforce-flow-tests
# Salesforce Flow Tests A Flow Test is a saved check that travels with a flow: a starting record (or input variables) and a list of assertions about what must be true when the flow finishes. This skill is a working method plus a list of platform behaviours that break tests. The behaviours under "Seen in sandbox runs" were observed in Salesforce sandboxes on API 68 in late 2026. They are observations, not Salesforce documentation. Where one disagrees with what you see, trust the org and say so. ## Method Work in this order. Each step exists because skipping it costs a failed run. 1. **Get the flow's API name from the person or the file name.** It is not inside the XML. Never build it from the label. 2. **Write the path table before any test.** One row per path, from the XML only: - each way into the flow (each term of the start condition; for a subflow, its input variables) - every Decision outcome including defaults, and each condition of a multi-condition outcome being the one that decides - every override (a lock, an exclusion) paired with each way in its Decision reads - list comparisons: each value when six or fewer, else inside, outside, blank, plus a near miss - Get Records found and not found; loops with 0, 1, many; fault paths - columns: id, elements in order, input, end state (every field the flow can set, value or "unchanged"), twin, Flow Test yes or no 3. **Ask, do not guess.** Custom metadata contents, formula definitions, picklist API value