Skip to content

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.

A scenario file can carry tags:

name: Visa authorization basics
tags: [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.

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).

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.xml

It 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.

GET /api/suites every suite, with its last run
POST /api/suites {name, description, scenario_ids, tags, parallel}
GET /api/suites/{id} the suite and the scenarios it would run
PUT /api/suites/{id}
DELETE /api/suites/{id} its runs and their history stay
POST /api/suites/{id}/runs start it; the suite run, with its key
GET /api/suites/{id}/runs its suite runs, latest first
GET /api/suite-runs/{id} one suite run with its runs
GET /api/runs?suite={key} the runs of one suite run
POST /api/suites/{id}/schedules a schedule on the suite
  • 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.