Suites
A suite is a set of saved scenarios run together: the regression pack before a release, every scenario tagged visa, the nightly run. It runs from the console, from CI, or on a schedule, and the Platform keeps the suite’s own history: how many scenarios passed, failed or couldn’t start each time.
1. Tag scenarios
Section titled “1. Tag scenarios”A scenario file can carry tags:
name: Visa authorization basicstags: [regression, visa]target: {simulated_host: Issuer}steps: - ...A tag is up to 32 lower case letters, digits, _, . and -. The scenario page shows them, and GET /api/scenarios?tag=visa lists the scenarios carrying one.
2. Make a suite
Section titled “2. Make a suite”Under Suites, New suite. Name it, list the scenarios that must run (in order), and name the tags whose scenarios join them: the listed ones run first in their order, then every saved scenario carrying one of the tags, by name. Choose whether they run one after another (the default: a scenario’s failure doesn’t stop the next, and the suite’s shared state, scope: suite, passes from one to the next) or all at once (every scenario is started together, as fast as the runners take them).
3. Run it
Section titled “3. Run it”Run suite on the suite’s page starts it; the suite’s page shows each suite run with its counts, and its runs opens the run list filtered to that suite run, where each scenario’s run is as any other. A scenario that can’t start (its host is gone, say) is a run in error, so the counts account for it. When the last run ends the suite run is passed or failed, and the state its runs shared is removed from the stateful issuers, as the CI client does for its own suites.
From CI, the client runs a saved suite by name:
python iso8583sim-run.py --url https://your-platform --saved-suite "Nightly regression" --junit report.xmlIt waits for the suite run, prints each scenario’s result, writes the JUnit report, and exits with the suite’s result. A schedule on the suite’s page runs it on a cron expression in a time zone, as the schedules walkthrough describes for a scenario.
4. From the API
Section titled “4. From the API”GET /api/suites every suite, with its last runPOST /api/suites {name, description, scenario_ids, tags, parallel}GET /api/suites/{id} the suite and the scenarios it would runPUT /api/suites/{id}DELETE /api/suites/{id} its runs and their history stayPOST /api/suites/{id}/runs start it; the suite run, with its keyGET /api/suites/{id}/runs its suite runs, latest firstGET /api/suite-runs/{id} one suite run with its runsGET /api/runs?suite={key} the runs of one suite runPOST /api/suites/{id}/schedules a schedule on the suiteLimits for now
Section titled “Limits for now”- A suite runs its scenarios in order or all at once; stopping at the first failure, retries and marking a scenario as known flaky come with the next steps of this work.
- The suite run’s status is passed or failed; a suite whose every scenario couldn’t start is failed with its errors counted.