The scenario editor
A scenario is a YAML file, and the editor shows it two ways at once: as a form on the left and as the file on the right. Both are the same text. A change in the form rewrites the lines it concerns and nothing else; a change in the YAML shows in the form as you type. Testers who write YAML keep their editor; testers who don’t build a scenario from the form; reviewers read the file either way, with its comments where they were.
What the form shows
Section titled “What the form shows”- The scenario: its name, a description, tags, and whether a run stops at the first failing step.
- The target: a simulated host on this Platform, picked from the hosts of your workspace, or your own system by address and port; and how long to wait for each response.
- Variables: name and value pairs that steps use as
{{name}}. - Steps: the list of steps, each with its name, what it does and what it checks, in a few words; open one to edit it.
Keys the form doesn’t cover stay in the YAML as written, and the form says which: TLS settings, headers and dialects on the target; state, rows and experiments on the scenario. A load scenario or a replay shows its header in the form and keeps its load or replay block in the YAML.
Editing steps from the form
Section titled “Editing steps from the form”Each step in the list has its name to edit and buttons to move it up or down, duplicate it and remove it. Add a step starts one from a shape: send a request, wait for a message, have the host send one, or send an HSM command. The new step appears at the end of the list and in the YAML, where its message and checks are edited; choosing a step in the form selects its lines in the YAML so they are easy to find.
A step moves with the blank lines and comments above it, so a comment that describes a step stays with the step. A duplicated step takes the name of the original with “(copy)” after it.
Editing a step
Section titled “Editing a step”Open a step and its message, checks and saved values appear under it.
- A send step starts from a sample (an authorization, a financial request or an echo) or from an MTI you give, with the card number, amount, currency and network, and a table of fields added to the sample or making up the request.
- A receive step names the MTI and field values of the message to wait for and how long to wait, and whether to answer it; the answer has its own MTI and fields.
- A host step picks which of the host’s messages to send: an echo, a sign-on, a sign-off, a cutover, or one of the messages the host defines.
- An HSM step has the command code, its fields and the timeout, and an address when the command goes to another HSM.
- The checks are the response’s MTI, fields with exact values, fields that must be present or absent, how fast the answer must come, whether the step passes only when no answer comes or the connection is refused, and the MAC check; an HSM step checks the error code and a pattern over the answer.
- Saved values name a variable and the field it takes from the response, for later steps to use as
{{name}}.
Fields are picked from the dialect the target speaks: a simulated host’s dialect and version, or the target’s own for an address. The picker lists each field by number and name with its format; a field the dialect doesn’t list is added by number. A value that doesn’t fit its field is flagged as you type (digits only, too long, half a byte), before the server’s validation runs.
What a step’s form doesn’t cover stays in the YAML and is named under the form: sub-element paths, patterns, ranges, echoed fields and the original data check among the checks; the PIN, MAC, chip and repeat settings of a request; a step’s own variables, rows and requirements. A step’s kind is fixed once added: to turn a send into a receive, add the receive and remove the send.
When the YAML has an error
Section titled “When the YAML has an error”While the YAML doesn’t parse (an indentation slip, a bracket left open) the form says on which line, and keeps showing the last text that did parse, greyed out, until the error is fixed. The check panel on the right still runs the server’s validation on every change, from either side, and the scenario saves when it passes. The form never decides for the server: what it writes is checked the same way as what you type.
What stays clean
Section titled “What stays clean”The editor never rewrites the file from scratch. Setting a value replaces that value and leaves a comment at the end of its line in place; adding a key adds one line at the map’s indentation; a flow map such as target: {simulated_host: Issuer} stays on its line. Every example scenario shipped with the Platform round-trips through the form unchanged, and an edit of any of them changes the lines it concerns and no other. A scenario kept in your repository and edited here comes back as a small, readable change.
Debugging a run
Section titled “Debugging a run”Debug on a scenario’s page runs it in the debugger. The run pauses before each request goes out and shows the request as built, with variables and saved values filled in and card numbers masked as in results. Change any field, add one, or change the MTI, then Send; or Skip this step; or Stop the run. After each step the run pauses again on the step’s result, with the response and what passed or failed: Next step goes on, Send this step again runs the same step once more (it keeps its STAN, as a resend does), Stop the run ends it.
A change made in the debugger is for that one request. The scenario file is untouched, the next step builds from the file, and a step sent again is built again from the file, so a change you want to keep goes into the editor. Changed fields pass the test-data guard as every request does.
A paused run holds a runner slot and a connection to the target, so the debugger is for members who may start runs, each pause waits ten minutes at most for a command, and a debug run has an hour in all; past either, the run ends as an error that says so. Everywhere else in the console a paused run shows as paused and otherwise looks like a running one; a skipped step counts as not passed, so a run with one ends as failed.
Keyboard
Section titled “Keyboard”Every control is a plain input or button, reached with Tab in reading order. A step’s name field selects the step when it takes focus; Enter in a tag or variable name field commits the value. The YAML editor is a code editor with the usual keys; Escape leaves it. The debugger’s fields and buttons are plain controls in reading order.