Regression¶
Assistant › Regression answers one question: a change happened — which of my test cases does it affect, and why?
A change is a code diff, a new revision of a requirement, a document, a ticket, or a sentence somebody wrote down. Your assistant reads it, splits it into change points, searches your workspace for what each point reaches, and hands the result in. XPressRT checks that result before it accepts it, shows it here, and keeps what you decide beside it.
It is a static analysis: it never looks at which test ran when or how often something was red. Nothing in your test cases is changed by it — adapting stays your decision.
What the page shows¶
A regression run is not tied to a test plan. Next to the run you choose Test
plan — Choose …, your plans, or New plan … — and the page shows the run
against that plan. Choosing a plan changes nothing on the run; it is a view. A plan
named when the run was asked for or handed in is chosen already; you can choose
another at any time, and the link remembers it (?plan=). Open plan leads to it
under Test plans.
The page is read top to bottom. Its aim, with a plan chosen: every affected test case is in the plan or deliberately left out, every obsolete one is out.
The head answers in one line.
- Without a plan: 21 of 44 test cases are affected. Choose a test plan to see how far it is. The tiles are the parts of the page: Need you, Waiting, Run as they are, Done, and Not affected, which is not listed here.
- With a plan: Release 2.5: 5 of 9 settled. Settled means in the plan or left out, of the test cases that are not obsolete. A bar shows each affected test case in the colour of its tile: In the plan, Left out, To add, Adapt first, To remove, Out of the plan, and Not affected.
- Three steps stand under it, Decide › Plan › Remove, each with what is left, and a button says what comes next: Next: add or leave out 3, Go →. Waiting for the assistant never holds up the next step; the line says 2 waiting for the assistant.
- ✓ Worked through for Release 2.5 comes when nothing is left to add, adapt or remove, no change is without a test case, and no test case in the plan still waits for its adaptation.
A click on a tile shows only those test cases, Showing only: To add, and Show all goes back. An amber line says when changes have no test case: 2 changes without a test case. Nothing checks them yet. Run details, folded, has what is still open, what was compared, where the change and the requirements come from — each source with its name as a link and its scope, such as submodule cm7, branch main, see Where they come from — and whether a person confirmed the change points. The quality stands with the title of the run, in colour, with the reason it is not higher.
Under it the parts of the page, each a card that folds:
| Part | What it answers | Starts |
|---|---|---|
| What changed | the facts, before anybody judges them | folded |
| Need you | test cases where you have to accept, reject or decide | open |
| Waiting | accepted: the assistant has it and has not answered | folded |
| Run as they are | ready, nothing to do | open when something can be added |
| Done | decided, or out of the plan | open when something can be added |
| Changes without a test case | what nothing here checks | open |
| Test cases that no longer exist | deleted since the run: nothing to accept | open, when there are any |
| Loose relations | a loose relation, not counted | folded |
| Findings | where code and requirements disagree | folded |
| Decision log | what people already decided; nothing in it is waiting for you | folded |
How you left a part folded or open is kept for you. The run you chose is in the address, so a reload or a link keeps it. A test case stays in one place with all the points that hit it: under Need you if any of them needs something, else under Waiting, Done or Run as they are. With a plan chosen, a part says at its head how many of its test cases are in the plan, left out or not in yet.
How much of your test base. 21 of 44 test cases affected by this change under the tiles opens Regression planning: the same count including variants, because at the bench a run is a row of the variants table, not a test case. XPressRT computes it from the run, your decisions and the pool — every test case counted once, with the strongest classification it has. Hints are not counted; they are named next to it, so leaving them out stays a visible decision.
What is still open stands under Run details: 2 open: 1 adaptation(s) not in the test case yet, 1 change(s) without a test case. — and when everything stands, ✓ Nothing open: every change is checked, adapted or decided.
An adaptation counts as done when it is in the test case, not when the agent reported it. The page reads the test case itself.
Change points. What changed, one statement each: where it stands, what it was before and what holds now, and where the "before" comes from — a source, a reading of the agent, or "not known". Cosmetic points (a blank line, a version string) are folded away; they never carry a finding.
A card is one test case. Its head stays visible when it is folded: the name, how many changes, how it stands to the plan (✓ In plan, ✓ In plan through suite @X, ⊘ Left out of Release 2.5, Not in plan, or No plan chosen) and what you can do there. Marks beside it say ↻ this run is a reason, adaptation pending or left out before. Inside, each change says who is next — Needs you, Waits for the assistant or Nothing to do — with its verdict: To adapt, Remove, Decide, Run as it is, Rejected, Decided, Done. An adaptation shows what it changes as a difference: the old line red, the new one green. Every entry carries its evidence — a judging step, a requirement tag, a coverage run, a data point, a static dependency, a functional relation — and the whole chain from the change to the test case is one click away. A test case without evidence cannot be here; it is a hint.
What the test case says now stands in the row of every adaptation, without opening the chain: ✓ step 3 now reads "Then between 2 s and 2.5 s the system is Ready" against step 3 still reads "Then within 2 s the system is Ready" — not changed yet. It is read from the test case, so it is right even when the agent changed the line and forgot to say so — and the waiting-for-the-agent note disappears the moment the value is there.
What is to be done is said as a sentence, with the short word beside it:
| Word | Means | What to do |
|---|---|---|
none |
affected, but nothing in the test case has to change | nothing: run it as it is |
adapt |
it checks the state before the change | accept or reject the proposal |
obsolete |
it checks something the change removed | take it out of the plan |
decide |
code and requirement disagree | pick one of the two options |
An adapt says what kind of change it is, and each kind carries what tells
later whether it happened:
| Kind | What it proposes |
|---|---|
| replace a line | a value becomes another — "within 2 s" → "between 2 s and 2.5 s" in step 3 |
| remove a step | remove step 4 ("the lamp is green") — the change took away what it checked |
| remove rows | rows of the variants table, with their cells, because the numbers shift after the first deletion |
| add a step | a sentence that is missing. It has to exist as a step already: what is accepted has to be something the agent can then write |
Loose relations are test cases with a loose relation — same device, same area — and no evidence. They stay apart on purpose, and they are not in a plan.
Changes without a test case, each with the search log: what was searched for, so that "nothing found" can be repeated. Where a test case is missing, the entry shows the changed statement — before → after, or the new requirement as a whole. That is what a new test case checks: a regression measures the change, never the whole requirement. Where the requirement had no test case before the change either, the agent says so — the rest of the requirement is a coverage question — and writes nothing for the rest; that is what Start coverage is for.
Findings: what code and requirements disagree on, what is not specified, what the diff does not show, global changes, and where coverage is not reliable.
What you do here¶
Decisions are recorded under the name you set under Working as — the page
says Decisions are recorded as agents/regression/runs/<run>/review/. The Decision log shows it,
and so do the HTML report and read_agent_run.
- Reclassify a test case when you know better — directly shown, functionally related, or hint only; Reclassify… on its row opens the choice. A reason is required, and the number at the top is recalculated. This is also the way a hint gets into a plan.
- Check a new change… — the main button at the top of the page, also on the empty page.
A test plan to preselect is optional — chosen already only when there is
exactly one; otherwise No plan preselected. It is what the run's page shows
first, nothing more. New plan … makes an empty one
under your name, described Created from Check a new change on
by , without a cycle: its test cases join one by one with Add to plan, each is Not run from the moment it joins, and you start the cycle when the first test of the plan runs. A plan made with its coverage under Test plans starts its cycle at once, because its tests are known. Choose where the change is — a recorded source of changes, or a new one with its link and the part of it that is meant — and say what changed — firmware 2.4 → 2.5 (commits abc..def), SRS revision 7; without it there is no request, because the agent has to know what to check against. While something needed is empty, the button stays off and the dialog says Still needed: …. It lands in the queue Waiting for the assistant. The regression run your assistant hands in for it closes it; if it cannot do it — the change is not readable, a source is missing — it says why. In a workspace in the browser no assistant can take it: the dialog says Not possible here: an assistant needs the workspace as a folder on your computer, and it waits in the queue. - Accept or Reject… an adaptation. An acceptance is not carried out by the
page: it becomes a request your agent sees the next time it calls
XPressRT, and the agent changes exactly that one line with
adapt_step. Rejecting takes a reason; the test case then runs as it is, and Ask the assistant to apply it after all stays on the card. If the text is no longer in the test case, the page says so and offers Mark as done instead. In a workspace in the browser the same sentence as above stands at Accept, and after the click it says It waits in the queue. - Withdraw acceptance… — while the agent has not answered the request yet: with a reason, under your name. The request is withdrawn, the adaptation is up for decision again, and the card says who withdrew it and why. It is a line of its own in the decision log. The same button is in the queue Waiting for the assistant.
- Decide a contradiction: the two options stand side by side, and neither is preselected. Code is what is observed, the requirement is what is wanted. Why? is optional.
- Ask for a missing test case where the run says one is missing: the agent
gets it as a request, with the changed statement, the point and its search
log — and writes a test case for that statement, not for the whole
requirement. Where the run says why none is needed, there is no button.
If the agent could already write it, the run carries its proposal — name,
steps, variants and new sentences, as a coverage proposal. Accept — the
assistant writes it sends exactly that as the request — what you approved stays
under the entry, folded, until the agent has written it; when the agent closes it
with another test case, other steps or another table, the close is refused
with the difference. Reject… takes a reason; the rejection stays with the
run (
proposals.json), and Ask the assistant again, with the reason sends it back. When it writes one, it names it — and then the change moves up to the affected test cases with actionnone, marked written for this change, on request, and drops out of "Changes without a test case". Details there gives the point, who asked and when, what the agent answered, and the test case. A name that points at nothing is refused: the request stays open instead. If the agent cannot write one — a data point is missing, a requirement is undecided — its reason stands here in place of the button, with who said it and when, and in the decision log. Asking again changes nothing until that is dealt with. - Start coverage for requirements whose coverage is not current. It runs as its own coverage run, limited to those requirements, and is linked here. The regression itself does not need coverage and does not ask for it first: a current coverage state is one piece of evidence among others. Only the quality says it — high only with current coverage.
- Add to plan and Leave out… — at a test case that is not in the chosen plan. Each opens a line for the reason, under your name; it is filled in with what the run says, such as Run 26 Oct 2026: affected by P-1, and it may not stay empty: Say why. It joins the plan as a test point from now on: in a running cycle it reads Not run until it is run again. A test case with an open adaptation or decision stands under Adapt first: Add is locked and says what it waits for, Unlocks once the adaptation is applied or rejected or Unlocks once you decide. Leave out is free; Take back undoes it. A suite your rules require for a global change has its own Add to plan. Hints get nothing: reclassify one first.
- Remove from plan — at a test case that stands in the plan on its own, with your name and a reason, also one the run calls obsolete. It leaves together with its reasons; the reason for removing it stays in the decision log and the history. A test case that is in the plan through a suite or a whole procedure cannot be taken out on its own: Remove from plan… says It comes with suite @X. Change it in the plan. and leads to the plan.
- Reasons. A test case added from this run carries the run as a reason (↻ this run is a reason). Results from before an adaptation do not count either way: the test case changed, so they read Outdated at its test point until it is run again — also when it is in the plan through a suite or a procedure, and without touching any other test case. A test case that is in the plan already and was adapted here shows Adapted in the plan's Regression column, with not confirmed for this plan until this run is one of its reasons.
- Changed again since — an adaptation that was applied and later changed
again, by a newer regression or by hand, stays done: it reads Applied …;
the test case has changed again since — by
and offers nothing to send back, since that would undo the later change.
Each of these is in the decision log and in the HTML report, and in the
workspace history with your name and the decision. What changed on which plan is
kept with the run in plan.json; why a test case is in a plan is kept in
plan-reasons.json beside plans.json, and shown at the plan under Test plans.
A run from before has no plan.json and nothing chosen; a run a plan was once
made from (Make a test plan, earlier) chooses that plan.
When the agent closes a request — an adaptation, a test case it wrote —, the page shows it by itself, also in another tab; there is no need to reload.
A request waits for an agent to call XPressRT — the page cannot reach it. Every
open request is named in one line above every answer the agent gets; the whole
of it — the finding, what was already searched, how to do it — is in
open_requests. If no agent is working, tell your assistant: Work through the
open requests in XPressRT. Everything that is waiting, from every page, is in
the queue Waiting for the assistant.
Whatever the agent answers, it is kept: done, or could not be done and why.
Quality, and why it is not chosen¶
Every run carries a quality — high, medium, low — computed from what went in: a diff, confirmed points, requirements, current coverage. A run that claims more than its input carries is refused, and the page says why it is not higher.
Rules for global changes¶
A compiler, a toolchain, an RTOS or a hardware revision is not searched test by test. Here you say which suites such a change requires; every run then names them for its global points, and a plan takes them along. The rules belong to the workspace and are kept by a person, not by the agent.
What it deliberately does not do¶
No run history, no pass rates, no bench minutes, no code coverage. Whether a test case ever ran says nothing about whether this change reaches it — and minutes come from a plan, not from an analysis.