Skip to content

Procedures and test cases

A procedure is one test document. It holds test cases, and a test case holds steps in the order they are carried out.

That is the whole structure. Everything else on this page is a way of saying something about those three.

Creating a procedure

Tests in the navigation has two pages for this: Test editor (the procedures) and Steps. On both, the tree stands on the left of the page and the editor on the right, as on Data points: drag the divider between them to make the tree wider — each page keeps its own width, also after reloading. In the Test editor, the + above the tree offers New procedure…, and you give it a name. A name cannot contain \ : * ? " < > |, and it cannot be a name Windows keeps for a device such as CON: the name becomes a file name in the report. In a procedure / separates its folders; in a test case it is not allowed either. Click the name of a procedure or a test case at the top of the editor to rename it; Rename… and Delete … are in the ⋯ beside Run procedure or Run test case. Procedures can live in folders (+ › New folder…), so a bench area or a product family keeps its own part of the tree. When there is no procedure left, the editor says No procedures in this workspace and offers Add a procedure; a procedure you delete does not stay open in the editor.

Inside a procedure, + Add test case creates a test case: choose Test case or Test case with variants, give it a name and a description; More: tags, steps, variants holds the rest. Delete test case… is in the ⋯ of its row. To change their order, drag a test case by its grip in the procedure; they run in that order. Give it a name that says what it establishes, in your own words. The output holds its value is a good name. Test 3 is not: it will be read by somebody looking for a result six months from now.

The editor with a procedure open

Steps

A step is one line, and it is one of three kinds:

Kind What it says
Setup something is set up or brought about
Action something happens
Check something must be true

The three are equal in what they can do. Any step can fail, and a failed step fails its test case whichever of the three it is — if the unit could not be powered up, the test case is red, not "not really failed because it happened during setup".

Two more words appear in a test case: And and But. They continue the line above and take its kind — And the output is stable under a Check is a Check. That is all they are. A step itself is never an And or a But: saving a step under one of them is refused, and a step you open in the step window from an And line keeps the kind it was defined with.

What the words are for is reading. A procedure written as Setup → Action → Check reads as a procedure; the same steps with no such order read as a list. Choose the word that makes the sentence true, and the report tells its own story to whoever opens it in a year.

What a step actually does — ask the operator, read a value, set a value — is decided when the step is created. See Steps.

In a test case, + Add a step adds a line: type a sentence, and existing sentences are suggested as you type. Open opens the step behind a line; a line with no step behind it offers + Add step. Technical details, at the foot of the test case, lists under Matched steps which step each line found. Save stands at the top of the page and is active as soon as something changed, with Unsaved changes beside it.

Preparation shared by every test case

A procedure can have a preparation that runs before every test case in it: the section Preparation steps on the procedure page, behind Before, preparation and after. It is the place for what belongs to the unit rather than to one check: reading its serial number, powering it up.

Its steps appear in the report with the test case they ran for, so a reader sees the state the check was made in.

Test cases with variants

When the same check has to run at several operating points, do not copy the test case. Give it a variants table instead: one row per set of values.

The step text refers to a column by its name in angle brackets — the supply is set to <u_set> volts — and each row fills it in. One test case, written once, tested at 3.3 V and at 5.0 V:

u_set u_min u_max
3.3 3.2 3.4
5.0 4.9 5.1

Each row runs on its own, has its own outcome and appears in the report under its own name. In a run and in the report a row is called a variant.

A test case that is given a variants table is a test case with variants, and it is saved as one. It also cannot be without its table: the last column and the last row cannot be removed, because a test case with variants and no rows runs nothing and would pass.

A column no step uses is reported — a value that is filled in for every row and never applied looks like part of the test and is not. If the column is there for whoever reads the table, start its name with #: #Objective is a note, and nothing expects a step to use it.

#Objective u_set u_min u_max
nominal supply 5.0 4.9 5.1
lower limit 3.3 3.2 3.4

Before and after: preparation and clean-up

Five places hold steps around your test cases. The three of the procedure are on the procedure page, behind Before, preparation and after; the two of a test case are in the test case, behind Before and after this test case.

Place Runs
Before the procedure once, before any test case — set the bench up. A new procedure begins with the built-in step bench goes into safe state here; remove the row when the procedure has to find the bench as the one before left it
Before this test case once per test case, before its preparation
Preparation steps before every test case in the procedure (see above)
After this test case once per test case, whatever happened
After the procedure once, at the end — put the bench back

They are steps like any other: they can ask the operator, they can fail, they appear in the report with their outcome, and a defect filed from one of them hangs at that step.

The steps in these places are written with their values in. A <column> or a {placeholder} has nothing to fill it there: they run outside the variants table, so a row's values do not reach them.

Rules worth knowing:

  • A test case with variants gets them per row. Each row is a test case in its own right, so each row is prepared and cleaned up. Otherwise the second row would start on whatever the first one left behind.
  • If a step in Before the procedure or Before this test case fails, the run has failed. The test cases behind it do not run — they are skipped, not passed and not failed, because nothing was tested. But the run is not Passed: the run list shows it as Needs investigation, its results name the place, the step and the reason, and in the run report a procedure whose preparation failed counts as failed. A bench that could not be set up is a failure, even though no test case got to fail. The clean-up still runs: a bench that was set up has to be put back.
  • A step in Preparation steps that fails is a failed step of the test case it ran for, like any other.
  • When no test case of the procedure is run, Before the procedure and After the procedure do not run either. That is the case when every test case the run selected names a value that does not exist — see Running tests.

An assistant sets these places with the tool set_preparation; see Working with an assistant.

The Review tab

A test case has two tabs, Steps and Review; a procedure has Test cases and Review. Review shows what each step does behind its sentence, so that you can read a test through without opening one step after the other, and decide on a walkthrough. The sentences stand as they stand on the page, saved or not.

  • In the order they run. Before the procedure, Before this test case, Preparation steps, the steps, After this test case, After the procedure. A test case shows the places of its procedure too; a place with no steps is left out. On a procedure the test cases stand between them, the first one open.
  • A card per step: its number, its walkthrough mark, its sentence and how it runs. The arrow opens it: a form step as a box with what it asks, sets or judges, a step built from blocks with its flow picture behind a closed door Blocks, hand-written Python as a note that nothing is read out of the code. Open all and Close all do it for the whole page.
  • A small table at the top of an open card says, row by row, where each answer comes from (Source):
  • What it's for — the step's description (Step definition); None written when it has none.
  • What it does — read out of the step (Computed from the step): a step built from blocks in one sentence made of the sentences of its flow picture, in the language chosen for the picture; a form step in the words of Show settings on the Steps page (the defect report stands under If it fails). A value of the sentence stands as {seconds}. Hand-written Python: Cannot say. Nothing is computed from hand-written code. (Hand-written Python).
  • If it fails — from the step's When it fails: Stops this test case · the next test case still runs, in a test case with variants Stops this variant · the next variant still runs, or Carries on · the next step runs, the step stays failed. A step that asks for a defect report adds · asks for a defect report. A step without the setting, written by hand, stops the test case, and the source says Runner default. Where the step stands decides it too, whatever its setting says, and the source then names the place:
    • Before the procedure: a failure skips the whole procedure (Stops the procedure · no test case runs).
    • Before this test case: it skips this test case or this variant.
    • After this test case: the rest of that place does not run, the test case counts as failed, and the next test case still runs.
    • After the procedure: the rest of that place does not run, and the test cases keep their results.
  • Message in the report — the error code and the message, E740 · No overcurrent alarm came; None set when there is none.
  • Approved — only on a step built from blocks, in the words of the step window: Ben, 12 Oct 2026, Not approved, Changed since Ben approved it.
  • The time-reference line, above the flow picture, on a step that sets a reference or measures from one — see Time has a reference. Light yellow with a clock: Sets reference “Trigger”: the moment this write took effect. Used by step 4., Measures from “Trigger”, set in step 2 …. Red with a red edge when the reference is not set earlier in the same test case: No reference “x” in this test case: the delay cannot be known. A mark from Before the procedure does not reach a test case, only After the procedure, and the line says so. The step it names is a link: it opens that card and moves there, with the keyboard too. The line is read from the blocks and the order of the test case, without a run; it is no finding and changes nothing. Every step with such a line shows ⏱ beside it in the editor, with the same words and colour. The description stands once, in the table, also when the blocks' PURPOSE says the same.
  • Open opens the step in the step window. A step is approved there, not here.
  • The strip at the top of a procedure says where its walkthrough stands. Before the first one: Not walked through yet. and Walk me through…, which asks your assistant for a walkthrough. The dialog lists every test case with at least N dry runs: one with good values and one more per checking step, in every place the test case runs through. Each can be deselected; at least one is needed. Schedule for the assistant puts a request walk through a procedure in Waiting for the assistant, with the words of Regression: Scheduled as …, Tell your assistant; the strip then says Waiting for the assistant., and Withdraw takes the request back. From its first dry run until it ends, the whole workspace is locked and a bar Walkthrough running with Cancel the walkthrough stands on every page — see The workspace stays as it is while a run goes. After a walkthrough the strip says how many decisions wait for you, when it was walked through and with how many dry runs, and counts every decision once — no reference, do not bite, miss the fault, possible misses, to decide, looked right, declined, outdated — with Next to decide, which opens the first card that waits, in its test case, and Walk through again…, which chooses the test cases that were not walked through or have changed since. There is no score and no percentage. Each test case shows one mark per step and Walk through again… or Walk through this one….
  • After a walkthrough, a card it says something about shows Walkthrough, open, under the table and the time-reference line: the group This step · same in N test cases · dry runs in “…” (the same in every test case with that step) and the group Only in this test case, each with the table Case, Values given, Expected, Actual, Status, Shown by, and each can be closed, with the keyboard too. Only Status has a colour; Cannot say stands grey with its reason. Dry run N opens that run on Runs, numbered in the order the dry runs ran; otherwise it says computed or not shown by a run. An outdated group is grey and says what changed, also when it is closed. The flow picture, the Python box and the settings box then stand behind closed doors — Blocks, Python, Settings —, and What it does says Computed in walkthrough. A test case that is Not checked says The test case does not run: and the sentence of check_procedure. A card the walkthrough says nothing about stays as it was. A walkthrough file of a newer XPressRT is not read: its sentence stands above the cards, and they stay as they were. Closed, a card says only what is behind its mark: Nothing found, 1 finding open, It cannot fail, Declined by Anna, 4 Nov 2026, Looked right by Anna, 3 Nov 2026 with its comment, Changed since it looked right to Ben.
  • At a test case that was walked through, above the cards: Runs (whether its good run went green, or at which step it fails), Can go red (whether a bad value turned a step red), Findings open and Cannot say, with Show what. Below, chips count the steps by their mark; a chip shows only those cards, and N steps shows all again.
  • Opening the tab and its cards writes nothing.
  • A line with no step behind it, or whose step names a data point that is gone, is marked in red with the reason, as on the Steps tab, and has no arrow when there is no step.
  • English and Deutsch switch the language of the flow pictures and the role words; it is the same remembered choice as in the step window.

Deciding on a walkthrough

Each group of Walkthrough — This step and Only in this test case — is decided on its own, by a person under Working as. Without a name the buttons are locked, with set your name under Working as first. Accepting and approving are two different things: Approve stays in the step window, and the Review tab shows it only as the row Approved.

  • Looks right for all N… (a step in several test cases), Looks right here… or Looks right: the step stays as it is, nothing is sent, and your name goes on it. When a group has findings, a comment is required — why it looks right all the same —, and it is kept as a resolved comment. The mark turns green with a tick, Looked right, and the group closes. Take back undoes it; the decision stays in the file, with who took it back.
  • Decline… requires a comment: what is wrong. It goes as a request fix after a declined walkthrough to Waiting for the assistant, with your comment and the findings of the group, and your comment stays open until someone resolves it. The mark turns red with ×. Withdraw takes the decline and its request back; withdrawing the request in Waiting for the assistant takes the decline back too. Both stay in the file, with who and when.
  • When a group has a red finding, Decline… is the main button; otherwise Looks right. After a decision the card closes and the next card that waits opens.
  • Comments, as in a pull request, on the whole group or on one row — the speech bubble at a row, shown when you point at it or when the row has comments. Each is Open or Resolved, with name and time; Resolve and Reopen are for anyone under Working as, never for an assistant. An assistant can answer a comment with reply_to_comment; its answer is open too. Resolved comments fold away: Show 1 resolved, or the bubble at the row.
  • While a comment is open in a group, its button says Looks right: resolve 2 comments first and goes to the first one; Decline… stays possible. A new open comment after Looks right puts the decision on hold — yellow, Looked right by Ben, on hold — and it is green again once the comment is resolved, without deciding again.
  • After a change — to the step, the test case or a data point it uses — the group turns grey: Changed since it looked right to Ben. Open comments stay, marked outdated; one whose row the new walkthrough no longer has stands at the group with case no longer there. Walk through again… there asks for a new walkthrough of that test case. A new walkthrough replaces only the findings: a decision holds while its group is unchanged.
  • Every decision, comment, resolve and reopen is one entry in the History, with the trailer Decision:.

The marks stand at a card, at a step on the Steps tab (a click opens its card in Review; ? explains them) and, 12 px, in the tree at a test case, a procedure and a folder. Each has its own sign, so colour is never the only signal: a dashed ring Not walked through, grey with an arrow Outdated, yellow with three dots To decide, yellow with ! Finding open, red with a clock No reference, red with a ring Misses the fault, red with ? Possible miss, red with a bar Check does not bite, red with × Declined, red with a square Not checked (a test case check_procedure keeps from running; right after Declined, and it counts upwards, but it is no decision), green with a tick Looked right; a small bubble says there is a comment, with the number of open ones. A step in several test cases shows the worse of This step and Only in this test case. Upwards, the worst below counts — red, yellow, grey, green —, and green only when everything below is green; a line with no step and a test case never walked through count grey. Where nothing below is walked through there is no mark, and the tree looks as before. The built-in step bench goes into safe state has no mark. Each tooltip starts with Walkthrough ·, counts, and ends with Not a run result.

The decisions are kept next to the walkthrough, in agents/pre-check/<procedure>.decisions.json (version 1): per group, looks right or declined with name, time and the fingerprint they were made on, and the comments with their state. A file of a newer XPressRT is not read, and its sentence stands above the cards.

What a walkthrough stores

A walkthrough shows, step by step, what a step detects and what it does not — with dry runs as evidence, never with a change to the test. An assistant makes it on request and hands it in; see Walkthrough. It is kept per procedure, in agents/pre-check/<procedure>.json (for Incoming/Visual: agents/pre-check/Incoming/Visual.json). A new walkthrough replaces only the test cases it gives: the other test cases of the procedure keep what an earlier one said about them. A step before or after the procedure is replaced when the new one gives it. This step goes with the test case its dry runs were in: it is replaced with that test case, and stays otherwise — unless the new walkthrough gives This step for the same step, then that one counts. Every hand-in is in the History, one entry each, with the assistant's name and the request it answers. The Review tab shows it on its cards.

  • Who and when: the assistant's name as XPressRT knows it, the time, and the request it answers — of the newest hand-in.
  • What a test case checks, in one sentence of the assistant, read from its steps (version 2). The Review tab shows it above the summary of the test case, marked not shown by a run: it is an estimate, no dry run shows it.
  • Every place, as this tab shows it. Before the procedure and After the procedure once, at the top; in each test case Before this test case, the Preparation steps, the steps and After this test case, each step by its place and its number there.
  • Per step, rows with Case, Values given, Expected (how a good test must react: Passes or Fails), Actual (what the step did: Passed or Failed), Status and Shown by — a dry run, computed (read off the blocks) or not shown by a run (the assistant's estimate). The status words are As expected and Catches the fault (green), False alarm and Sentence and step differ (yellow), No reference, Check does not bite, Misses the fault and Possible miss (red). Only a dry run counts as Shown by.
  • Not checked: a test case check_procedure keeps from running, with its sentence word for word, shown as The test case does not run: and that sentence. It has no rows and needs no dry run. The status is the review's: it keeps no test case from running, and a run takes it like any other.
  • Two groups. This step holds what is true wherever the step is used: it stands the same in every test case with that step and names the test case its dry runs were in. Only in this test case holds what depends on the test case — a value from its variants table, a time reference.
  • Cannot say, each with its reason: what a dry run cannot try with a chosen bad value. It is no finding.
  • A fingerprint per step and test case, taken at the hand-in: of the step — for a step built from blocks the same as Approve takes: its blocks, the Python they become and the version of XPressRT's generator —, of the test case (its steps, its variants table, before and after it; for a step before or after the procedure, those two places) and of every data point the step uses. The binding of a bench is in none of them. A test case that is Not checked keeps the fingerprint of the test case.

A walkthrough is outdated when one of these fingerprints is no longer what it was: the step, the test case or a data point it uses changed. A new version of the generator counts, as it does for Approve. A change to a binding does not: a walkthrough checks the check, not the bench. A Not checked is also outdated as soon as check_procedure no longer says its sentence — Outdated: check_procedure lets it run now. —, even when the test case itself did not change. Outdated is worked out when it is read; nothing is written then.

The file carries a version number, now 2; one of version 1 is still read. One written by a newer XPressRT is not read and not written over. A walkthrough changes nothing in steps, test cases, data points or bindings.

When a procedure file is broken

A procedure is a file, and a file can be damaged — edited by hand, merged badly, left half-written. When it is no longer valid Gherkin, XPressRT says which file it is and the line where reading stops, together with what stands there, instead of a message about something else.

You are not stuck with it. The broken test case can still be deleted without the file being readable first, and the healthy test cases in the same file stay. After that the procedure reads again.

Tags

A tag is a label. Test cases and procedures carry them, and so do steps and plans. XPressRT uses them for two different things:

  • Suites. A suite is defined by its tag: every test case carrying @Sicht is in the suite Sicht. See Plans and suites.
  • Your own grouping. @accepted, @draft, requirement:1234 — anything you want to filter or trace by.

Where they are set and read:

  • On procedures and test cases you add and remove tags in the editor. The coloured dot on a tag changes its colour, and the colour belongs to the tag: it changes everywhere the tag appears.
  • On a step, the step window has a Tags field. It is saved the moment you add or remove a tag, not with the step, and the tags are kept beside the step code in step-tags.json — so they survive a step changing from Python to blocks and back. The Steps page shows them.
  • On a plan, the plan dialog has a Tags field. They are shown on the plan, in its progress view and in its report.
  • Filter by tag at the top of the procedure list narrows the tree to the procedures that carry a chosen tag, or have a test case that does. Suite tags are in the list too.

Tags on steps and plans are for people: no run, selection or result reads them.

One tag is set by XPressRT itself: ai-generated. A procedure, test case, step or plan an assistant creates or changes carries it afterwards. It means an assistant wrote this and nobody has read it back yet. Removing the tag is the review; if an assistant changes the thing again, the tag comes back. See Working with an assistant.