Change the converter. Try it on your own worker

The test agent turns TestRail cases into executable tests and runs them in a real browser against a live product environment. You extend its converter and its runner. This page shows the loop, your personal worker and the fix for each refusal you can meet.

Start here Onboard a developer

What the test agent does

Four ideas explain most of what you see in the runner.

  • TestRail holds the expected valuesExpected values come from TestRail. You never edit an expected value in a YAML. You fix the cause: see Decide where the fix belongs.
  • The converterIt turns a TestRail case into a YAML test. Stage 1 uses rules. Stage 2 asks the model. For a trivial UI case, the converter skips Stage 2.
  • The runnerIt runs the YAML in a real browser against a live product environment. It checks the result against the scoring rules of the backend.
  • A verdict quotes the screenWhen the model decides, it quotes the captured page text. A pass without a grounded quote becomes inconclusive.
IllustrationA case travels from TestRail to a verdict. Names and numbers are sample data.

Words this page uses

Runner

This part of the test agent stores the cases and runs them. The runner UI is its page in the browser.

Gateway

The service in front of the workers. It serves the runner UI and sends each run to a worker.

Worker

A container with a real browser. It runs the cases. The shared workers serve everyone. A personal worker serves one developer. Some API routes and the header X-Stand use the word stand for a worker.

Env profile

The settings of one product environment: its portal and its device emulator. You select an env profile for every run. This page also says env. See Environment profiles.

Personal env

An env profile with the settings of your project env profile. Its name ends with -<worker name>, for example myproject-janedoe. An admin pins it to your worker.

Pin

An admin pins an env profile to a worker. A personal env runs only on its personal worker, and that worker serves only that env.

Model

The large language model (LLM) of the test agent: Claude. All workers share its limits.

Stage 1 and Stage 2

Stage 1 converts a case by rules. Stage 2 asks the model for the parts the rules cannot decide: this is the model enrichment of a case. A change of the rules is a Stage 1 change. A change of the prompt is a Stage 2 change. A change of the answer parsing code is a Stage 2 change too.

Cached conversion

A stored result of a conversion. A reimport can take it and skip a new conversion. See Reimport a case.

AI step

A catch-all step the runner explores with the model at run time. In the YAML it has type: ai_step. See Promoting an ai_step.

Tree

The XML file with the start data of the emulated device, in the TR-181 data model. See Tree file.

Golden corpus

Stored conversions of a fixed set of cases. tests/test_conversion_golden.py converts them again. It names every case with a changed output.

Readiness label

One label per case. It says what the case still needs, for example Coverage gap or Ready. See Readiness labels.

QA-verified

The quality assurance (QA) team verified the case, so the case is frozen. The runner skips a change, or asks for a confirmation or an admin. The Reimport Test dialog skips it. See Changes of a QA-verified case and QA-verified cases.

Builder

A converter function. It adds or rewrites one part of the YAML: a precondition, a device seed, a typed step or a check.

Shared store

The case volume of the shared workers. A personal worker has its own case volume, with a copy of the cases.

Released build

A commit the shared workers run now or ran before. The runner keeps the newest 50 of them.

Batch

One start of several cases: a run, an import or a reimport. For runs, the runner UI also calls a batch a wave.

Maintainer

This person merges pull requests, builds the release and deploys it. Write to Armen.Malkhasian@friendly-tech.com.

Admin

A runner account with the role admin. An admin manages the accounts, the env profiles and the workers. The maintainer names the admins.

The loop, from case to release

Step 1 is in TestRail. Steps 2 to 4 use the runner UI and the shared workers. Step 5 is on your machine. Steps 6 to 10 bring your change to your own worker and then to everyone.

  1. 1

    Write the case

    Write or adapt it in TestRail. Follow the phrasing grammar.

    You
  2. 2

    Import

    Import the case into the runner. Check that the case shows your project.

    You
  3. 3

    Run

    Run it on your env profile through the gateway.

    You
  4. 4

    Read

    Read the verdict, the run report and the failure screenshot.

    You
  5. 5

    Fix

    The converter or the runner lacks support? Fix it on a branch, with tests. Commit and push the branch.

    You

Run one case

Steps 3 and 4 in the runner: select the case, select the env, start, read.

IllustrationSelect a case, start the run on an env, read the verdict, open the report and the screenshot. Names and numbers are sample data.
  1. 6

    Build

    Run the workflow in GitHub Actions. It builds the worker image of your commit.

    You, then Actions
  2. 7

    Deploy

    Paste the full commit sha in the Your worker card. Click Deploy.

    You
  3. 8

    Reimport and run

    Click Work on this worker. Reimport your cases there. Run them with your personal env.

    You
  4. 9

    Pull request

    Open the pull request. Fill in the checklist of its template. The continuous integration (CI) job runs the targeted tests and the golden corpus. See the rules.

    You
  5. 10

    Release

    The maintainer merges and deploys. You reimport and rerun on the shared workers.

    Maintainer, then you
A very large import or batch can spend the whole model limit
  • All workers use one Claude login. Everyone shares its usage limit, your own worker included.
  • An import or a reimport with With LLM (full) can ask the model for each case. A run asks the model too.
  • A large batch also holds the workers of its env for hours.
  • At the limit, a running batch pauses. The batch continues without your action after the limit opens again.
  • Before you start about 500 cases or more, write to the maintainer. State the number of cases, the LLM mode and the start time.
  • The maintainer sees the state of the limit. Together you select a good time for the start.

Read the verdict

A run ends with one verdict. If two verdicts apply, the first of them in this order wins: FAIL, BLOCKED, ERROR, INCONCLUSIVE, PASS. A failed expected result keeps the run FAIL, even when the runner could not perform a later step.

FAIL
An expected result did not hold: the portal shows another result than the case expects.
BLOCKED
The case could not continue. The runner could not perform a step, or a precondition is not met. A browser step over its time limit gives BLOCKED too. So does a single run of a case with an unmet env requirement: the case never starts. A batch skips such a case and shows it as not run.
ERROR
The test agent failed, not the case. The cause is the Claude CLI, a tool server, a helper of the runner or the time limit of the whole run. A stop by a user gives ERROR, even after a failed step.
INCONCLUSIVE
The runner could not measure at least one claim. One cause is a pass of the model without a grounded quote. This is not a product failure, and it is not a pass.
PASS
The case ran to the end, and every expected result held.
  • Read the judge tagA tag next to a verdict says how the runner reached the verdict. The run report shows Measured, Keywords, LLM-judged or Unverified. The lists show a short tag next to a pass or a fail: measured, keywords, LLM or unverified. Measured is the strongest: a check read the value itself. Unverified means nothing checked the claim. Some causes: no expectation, an auto-filled step, a step the pre-flight already satisfied, an unavailable check, or a step marked not measured. See Reading a Verdict.
  • Stop a runThe live panel on the Runs tab shows your running run. Click Force stop there. It stops the run or the batch on the panel, and the confirmation names the target. The runner UI calls a batch a wave. The runner records the run as an error.
  • Watch the browserClick Live browser in the header. A new tab shows the browser of your run.

What to do after each verdict

The run ended. Read the verdict.
FAIL
Find the place of the fix: see Decide where the fix belongs.
BLOCKED
Read the step and the reason in the report.
Find the place of the fix: see Decide where the fix belongs.
ERROR
Run the case again.
If the error repeats, give the run ID to the maintainer.
INCONCLUSIVE
Find [not measured] in the report. The line names the reason.
PASS
Compare the run with the TestRail text: steps, preconditions, expectation. A green run is not proof.
A dropped or merged step is a converter defect: see Decide where the fix belongs.

Decide where the fix belongs

Read the failure screenshot and the report first. Then compare the YAML steps with the TestRail text.

TestRail has the step in the phrasing grammar, and the YAML lacks it or merges it with another step

The converter is wrong. Fix it on a branch. A dropped step never ran, so a green run of that case is no proof.

TestRail itself lacks the step, or its wording does not follow the phrasing grammar

Fix the text in TestRail. Follow Writing TestRail cases. Then reimport the case: see Which settings to use.

Blocked: the step names a control the portal does not show

Compare the step with the portal. If the TestRail text has the wrong label, fix the text in TestRail. If the label is right and the runner does not find the control, the runner is wrong. Fix it on a branch.

Blocked: a precondition is not met

Read the env requirements of the case: the needs: pill in its row on the Test cases tab. See Env requirements. If the env profile lacks a setting or a device, ask an admin.

The device shows other data than the case needs

The emulated device does not hold the data of the case. The converter builds the emulator parameters from the TestRail text and the tree. The tree is usually the file attached to the TestRail case. Without a valid attachment, the converter selects a template tree by the title and the preconditions. For some kinds of case, the converter replaces the attached tree with a template tree. So fix the TestRail text, the attached tree or the converter. Do not fix the YAML in the Editor: the next reimport overwrites the edit.

Every step ran as TestRail says, the device holds the data of the case, and the portal shows another value

Never change the expected value in the YAML. The product or the TestRail text is wrong, and QA decides which. Click Awaiting QA… on the run report. Select a reason: Possible product bug (QA to confirm), Test text QA must change or Other. Write your question in the note and click Save mark. The gateway sends the mark to the shared worker live first. So the shared case gets the mark, even when you work on your own worker. If live does not answer, the worker of your session gets the mark. On your own worker, only your copy has the mark then. With Batch exclusion on, batches skip the case until someone clears the mark. The Readiness tab shows the state of Batch exclusion.

Where things are

The tools you use, and what each one answers.

  • The runner UIhttp://ai.friendly-tech.com:8083/. The sidebar lists the tabs: Overview, Test cases, Readiness, Runs, Editor, Converter, Adaptation. An admin also sees Settings, Users, Workers and Activity. The owner of a personal worker sees Workers under the Your worker label.
  • The Your worker cardOn the Workers tab. The sidebar shows this tab under the Your worker label. The card shows Env, Build, Image and Busy of your worker, and the Deploy, sync and switch controls.
  • These docsThe user guide, the editor guide, Environments & the Gateway, the REST API and the architecture page.
  • knowledge-mcpPort 7030. Search the product docs first, before you ask a person: search_docs answers how the product should work.
  • Code searchThe code-search server answers which controller, service or component does what in the Java and Angular repositories. Pass the repository every time.
  • GitHub Actions and HarborActions builds your image with Build & Push images to Harbor. Harbor holds test-runner-agent:<full sha>.

Developer: start here

Ask for the access first. Then configure your checkout. Then run one case.

Access you need

  • The GitHub repository, with write accessClone, branches, pull requests and the build workflow. The build workflow needs write access. Ask the maintainer.
  • A runner account with the role editorImport, edit and run cases. An admin creates it on the Users tab.
  • An env profile for your projectIt holds the portal and emulator settings of your product environment. An admin creates it on the Settings tab.
  • A personal workerYou need it to try a converter or runner change before the release. An admin creates it and pins a personal env to it. See Your own worker.
  • TestRail accessTo the suite of your project. Ask the TestRail admin.
  • The code search tokenKNOWLEDGE_CODE_TOKEN lets the code-search server answer questions about the Java and Angular code. Ask the maintainer.
  • Network accessTo ai.friendly-tech.com, ports 8083, 7030 and 7020: the runner UI, knowledge-mcp and bbf-tree-mcp. Ask IT.
Configure your checkout
  1. Clone Friendly-Technologies/ft-ai-test-agent.
  2. Clone ft-device-network, oneiot_web_backend, oneiot_backend and oneiot_angular next to it.
  3. Install Python 3.11 and the dependencies: py -3.11 -m pip install -r requirements-test-runner.txt -r requirements-dev.txt.
  4. Install Claude Code.
  5. Add the knowledge-mcp server and the code-search server with your token.
  6. Create CLAUDE.md in the repository root with your runner account, env profile and project. Git ignores the file.
  7. Keep your runner password in the user variables FT_RUNNER_USER and FT_RUNNER_PASSWORD.
  8. Start Claude Code in the checkout. It loads .claude/rules/repo-rules.md.
The exact commands
  1. Open Contributing a Project, section Configure Your Checkout.
Your first import
  1. Open http://ai.friendly-tech.com:8083/.
  2. Sign in with your runner account. A new session works on the shared workers, even when you own a personal worker. The exception is an account an admin tied to one worker.
  3. Open the Converter tab.
  4. Click Import from TestRail….
  5. In the LLM list, select With LLM (full). A case never imported before has no cached conversion. The start value No LLM, cached only skips such a case.
  6. Leave Force refresh not ticked. It is not ticked after a page load.
  7. Under Import single test case, type the case ID.
  8. Click Import.
  9. Check that the case shows your project. An import from TestRail sets the project. To change it, see Organizing cases.
Your first run
  1. Open the Test cases tab.
  2. Tick the case.
  3. In the toolbar, select your env profile in the list — select env —. The run button stays disabled until you do. It then reads Run tests on and the env name.
  4. Click the run button.
  5. Open the run on the Runs tab.
  6. Read the verdict, the report and the failure screenshot first. The report shows the screenshot under the failed step, and Screenshot at step with the step number enlarges it. A run with no failed step shows the screenshot under Screenshot at failure.
  7. Read the readiness label of the case in its row on the Test cases tab. A needs: pill in the row names an env requirement.

Your own worker

A personal worker runs the image of the commit you deploy. Before your first deploy, it runs the image from its creation, by default the tag latest. Your deploy does not change the shared workers or the gateway.

Merge main into an older branch first
  • The personal-worker support is in main from commit 0b459538e on. A branch cut from a later main has it.
  • Check your branch: git merge-base --is-ancestor 0b459538e HEAD exits with 0 when the branch has it.
  • An older branch builds an image without the personal-worker support. Run git merge main on it before you build.
Build

An image of your commit

  1. Open the repository on GitHub.
  2. Click Actions.
  3. Select Build & Push images to Harbor.
  4. Click Run workflow.
  5. Select your branch.
  6. Tick Build the worker image only (a personal worker needs nothing else).
  7. Click Run workflow.
  8. When the run ends, copy the full 40-character commit sha from the summary.
What the run pushes
test-runner-agent:<full sha> to Harbor. It never moves latest.
Who can start it
GitHub asks for write access to the repository. The maintainer grants it.
Deploy and switch

Deploy from your card

  1. In the sidebar, click Workers under the Your worker label. The Your worker card shows your worker.
  2. Paste the sha into Commit sha (full 40 characters) to deploy.
  3. Click Deploy.
  4. Wait for the answer. The deploy waits up to 240 seconds for the worker to report the new commit. The Build line then shows it.
  5. Click Work on this worker.
  6. Reload the page. The case list and an open case do not follow the switch.
While you work on it
The case list, import, reimport and case edits go to your worker. Start runs with your personal env only.
Going back
Click Work on the shared workers. Then reload the page: the case list and an open case do not follow the switch. Do this to reimport and rerun cases after a release. A run stays on the worker you started it on.

Deploy your branch

The Your worker card on the Workers tab.

IllustrationPaste the full sha, deploy, then work on your worker. Names and numbers are sample data.

Synchronize your cases with the shared store

Your worker has its own case volume. The first start copies the shared cases into it. After that, imports, reimports and edits change only your copy. The shared store is read-only for your worker.

Sync missing cases
Copies every shared case file your worker lacks. That includes a file you deleted and a new scenario file of a case you changed. Nothing is overwritten.
Reset with case IDs
Overwrites the named cases with the shared copy. You lose your changes to them.
Reset with an empty field
Overwrites every numbered case of the shared store. Cases missing from the shared store stay. Files without a case number stay too.
Auto-reset
Every 5 minutes, the worker compares its cases with the shared store. It replaces each case you did not change with the newer shared version, with all its scenario files and extra files. A case counts as changed after you edit, save, import or delete any file of it. Auto-reset never touches a changed case. A check skips its round while a run or a batch runs. The next check comes one interval later. A check with work to do counts as a sync. During it, Sync missing cases and Reset answer 409 another sync is running. A deploy answers 409 <name> is busy. Repeat the action then.
Cases block
Shows the lists below. Click Refresh to update them.
  • A reset also replaces the extra files of a caseIts provenance, marks and history become the shared ones, or disappear when the shared store has none.
  • No sync during a runThe worker refuses a sync while a run or a batch runs on it.
  • Import your cases on the shared workersCases in Only on this worker do not exist on the shared workers. Import them there after your release.
  • Reset the cases you want backUse Put into the Reset field to copy the IDs from Changed on the shared store, your copy differs, then click Reset. You lose your changes to them.

Lists of the Cases block

Only on this worker

Cases the shared store lacks entirely. A copy you made with Duplicate, such as C12-copy, counts as its own case. A file name without a case number counts as its own case, so a renamed file shows here.

Removed from the shared store

You copied these cases from the shared store and did not change them. The shared store no longer has them. The worker never deletes them, so delete them here when you no longer need them.

Changed on the shared store, your copy differs

Cases with two different copies: yours and a newer shared one. You changed them, or your worker copied them before it kept a record of its copies. Such a case stays yours until a Reset. A hint lists the files without a case number: Reset cannot take them. To take the shared version of such a file, delete the file on your worker with More and Delete on the Editor tab. Then click Sync missing cases.

New on the shared store

Shared cases your worker lacks entirely. A new scenario file of a case your worker has is not in this list. If you did not change that case, it shows under Waiting for auto-reset. If you changed it, it shows under Changed on the shared store, your copy differs. Sync missing cases or a Reset of the case brings the file.

Waiting for auto-reset

The line names the unchanged cases the next check replaces. With auto-reset off, the line reads Changed on the shared store, not reset (auto-reset is off). This line and Changed on the shared store, your copy differs each have the button Put into the Reset field. The button copies at most 200 numbered case IDs.

The shared copy does not parse

The line names unchanged cases with a broken shared file. The check skips them until the shared file parses.

It cannot testWhat you cannot test on it

  • Changes under gateway_service/ and ui/test-runner/. They belong to the gateway image.
  • The shared stacks. Only the maintainer deploys them.

It never doesWhat a personal worker never does

  • Count a run as QA-verified.
  • Count a run for readiness when the case differs from the shared copy.
  • Post a result to TestRail.
  • Replace a release. A personal deploy is never a release.
  • Replace the pull request checks. Your change still needs them.
  • The model limits are sharedThe Claude login and the model limits belong to every worker. Before a very large import or batch, see A very large import or batch can spend the whole model limit.
  • Your runs count for readinessA run counts toward the readiness label when the case equals the shared copy. A run of your branch build counts too. The Readiness tab marks its case with the Branch build tag until a run of a released build replaces it.
  • Your worker has its own secretIt never gets the shared gateway secret. Branch code on it cannot call another worker as admin.

Reimport a case

A deploy or a release changes the code of a worker. The stored YAML of a case stays the same. Reimport only the cases your converter change touches, then run them. Start with the cases you fixed and the cases the golden corpus names. List the cases in your pull request. A runner change needs no reimport.

Every reimport overwrites the YAML
  • You lose your manual edits in the Editor, in every mode. Only a skipped or failed reimport keeps the YAML.
  • To save an edit first, click More, then Export YAML.
  • To keep a fix after every reimport, make it in the converter.
  • The Reimport Test dialog skips a QA-verified case, for an admin too. See Changes of a QA-verified case.
Reimport one case
  1. On the Your worker card, click Work on this worker or Work on the shared workers. Without a personal worker, skip this step: your session works on the shared workers.
  2. Reload the page. The case list and an open case do not follow the switch.
  3. Open the case on the Editor tab.
  4. Click More.
  5. Click Reimport. The Reimport Test dialog opens.
  6. Set LLM and Force refresh as the table Which settings to use says.
  7. Click Reimport.
  8. Run the case.
  • How the dialog opensThe LLM list has three modes: With LLM (full), No LLM and No LLM, cached only. The dialog opens at No LLM, cached only with Force refresh ticked. In this mode Force refresh has no effect, and the dialog shows the box Changed TestRail text.
  • Cached conversionsThe runner stores conversions in a cache. No list in the runner UI shows the cases with a matching cached conversion. The dialog tells you: in No LLM, cached only it skips a case with none. On the Converter tab, the table of a past job shows the columns Cache and Stage 2 for each case. Your worker copied the cache of the shared store at its first start.
  • AI stepsWhen a case has no YAML on the worker, an import with With LLM (full) can turn catch-all steps into AI steps. In the YAML such a step has type: ai_step. A reimport of a case with a YAML never does this. After a reimport, such a step is an ordinary step again, with type: interact. The run still performs the step.

Which settings to use

Find your situation in the first column. Set each control to the state in your row.

Where and whenLLMForce refreshThe box Changed TestRail textWhat you get
Any worker: the first import of a new caseWith LLM (full)Not tickedNot shownThe model converts the case. The converter skips Stage 2 for a trivial UI case. The runner stores the result under the key of a first import. No reimport reads this key.
Any worker: you changed the TestRail text of the caseWith LLM (full)Not tickedNot shownNo cached conversion matches a changed text. The model converts the case, and the runner stores the result.
Your worker: you changed converter code outside Stage 2No LLMTickedNot shownThe code of your branch converts the case without the model. This covers the rules, the builders, the tree download and the emulator setup. The reimport spends no model limits. Your copy of the case has no model enrichment after it. Your worker drops its cached conversion of the case, so No LLM, cached only skips the case there afterwards.
Your worker: you changed Stage 2With LLM (full)TickedNot shownThe model converts the case again with the code of your branch. The reimport can spend the shared model limits: a trivial UI case skips Stage 2. Your worker drops its cached conversion of the case, so No LLM, cached only skips the case there afterwards.
Shared workers, after the release: try this firstNo LLM, cached onlyNo effectNot tickedIf the reimport finds a cached conversion, the case keeps its model enrichment. The runner runs a fixed set of the current builders again. Most other converter changes do not show. The reimport spends no model limits. If the reimport finds none, the dialog skips the case and names it.
Shared workers: the dialog skipped the case, with no cached conversion or with one on another treeWith LLM (full)Not tickedNot shownThe runner converts the case with the model. For an unchanged Stage 2 prompt, it takes the stored model answer. The runner stores a new cached conversion, unless Stage 2 failed.
Shared workers: the reimport ran, and your change does not showWith LLM (full)TickedNot shownThe model converts the case again. The reimport can spend the shared model limits: a trivial UI case skips Stage 2. The case has no cached conversion after it.

The order on the shared workers

After a release, the dialog and Diff tell you the next step.

The release is live, and you work on the shared workers. In the dialog, untick the box Changed TestRail text: convert without LLM instead of skipping. Reimport the case with No LLM, cached only. Then read the result: see Read the result under the diagram.
The reimport ran, and Diff shows all of your change
Run the case. You need no further reimport.
The dialog skipped the case: no cached conversion, or one on another tree
Reimport with With LLM (full). Untick Force refresh.
Run the case.
The reimport ran, and Diff does not show all of your change
Check that your change touches this case. If it does not, stop here.
Reimport with With LLM (full). Tick Force refresh.
Run the case.
The dialog skipped the case for another reason
A QA-verified case: see Changes of a QA-verified case. An unreadable TestRail attachment: reimport later.
Read the result
  1. Read the dialog after the reimport. A skip names the case.
  2. Open the case on the Editor tab. The panel Change history lists the versions, newest first.
  3. Find the top row. It has the tag reimported: it is your reimport.
  4. Click Diff on the row under it. Diff compares that older version with the case as it is now.
  5. If no row is under it, or the row has no Diff, read the YAML in the Editor. The runner then has no copy of an older version to compare.

The dialog lists a skipped case under Skipped, not re-imported, with its reason. It then also shows the line skipped: no usable cached conversion, whatever the reason. Decide by the reason, not by this line.

no cached conversion

The second branch. A release with a new cache version gives this reason for every case. A note after the reason does not change the branch.

the cached conversion is on another tree

The second branch too.

the TestRail attachment listing of the case could not be read

The fourth branch. Reimport later.

No reason, and the line 1 QA-verified case skipped

The fourth branch. The line also names the case ID.

What the branches cost
  • The second and the third branch can spend the shared model limits. The third branch asks the model again, except for a trivial UI case.
  • The third branch also removes the cached conversion of the shared case.
  • Every reimport writes a YAML without AI steps: see AI steps above.
  • After a release with a new cache version, the dialog skips every case with the reason of the second branch. Before you reimport about 500 cases or more, see A very large import or batch can spend the whole model limit.
No LLM with Force refresh on the shared workers
  • Use these settings on the shared workers only after the maintainer agrees.
  • They remove the model enrichment of the shared case. No list in the runner UI shows the cases with an enrichment.

Changes of a QA-verified case

The Reimport Test dialog

The dialog skips a QA-verified case. An admin gets the same skip.

The TestRail text changed after the QA check

Use Import single test case in the Import from TestRail… dialog of the Converter tab. Select With LLM (full) in the LLM list first. Overwrite existing has no effect on Import single test case. The runner asks: The case is QA-verified, but its TestRail text changed after the check. Click Continue. After the import, the case is no longer QA-verified and returns to QA. The runner answers Only an admin can do this in two cases. It could not prove a change of the text, or the QA record of the case is of another kind, for example a QA sign-off. Ask the maintainer then.

The same path with No LLM, cached only

The Import from TestRail… dialog opens in this mode. With the box Changed TestRail text ticked, the runner converts the case without the model. The case is then no longer QA-verified and returns to QA. With the box not ticked, the runner skips the case, and the case stays QA-verified.

A save in the Editor

It needs a confirmation. Any account with the role editor can give it. A save with another case ID needs an admin.

Delete, restore a version, restore or purge from the trash, Regenerate, a YAML upload, a new tree, Import single test case with an unchanged text

Each needs an admin and a confirmation. Ask the maintainer.

Bulk delete, an import batch, a reimport batch

Each skips a QA-verified case, for an admin too.

Assign project, assign run, a bulk update of a field other than the title, Duplicate

The runner makes no check here. Ask the maintainer before you do it.

Reference: what each setting does, and the cache

The result depends on three things: the LLM mode, Force refresh and the cached conversion of the case.

LLMForce refreshThe reimport finds a cached conversionResult
No LLM, cached onlyNo effectYesTakes the cached conversion with its model enrichment. Runs a fixed set of the current builders again. Most other converter changes do not show.
No LLM, cached onlyNo effectNo. The box Changed TestRail text: convert without LLM instead of skipping is ticked, and the runner can prove a change of the TestRail text.Converts the case by rules only. The case loses its model enrichment.
No LLM, cached onlyNo effectNo, in every other caseSkips the case. The YAML stays as it is.
No LLM or With LLM (full)Not tickedYesTakes the cached conversion, as No LLM, cached only does. The runner does not ask the model.
No LLMNot tickedNoConverts the case by rules only. Stores no cached conversion.
With LLM (full)Not tickedNoConverts the case with the model. For an unchanged Stage 2 prompt, the runner takes the stored model answer. Stores the cached conversion, unless Stage 2 failed.
No LLMTickedYes or noConverts the case by rules only. Removes the cached conversion of the case.
With LLM (full)TickedYes or noAsks the model again and converts the case. Removes the cached conversion of the case. Spends model limits.
A reimport finds no cached conversion in these cases
  • No conversion with With LLM (full) and Force refresh not ticked ran since the case got its YAML. The first import does not count.
  • Something in the TestRail record of the case changed: its text, its section, its attachment, or a field such as priority.
  • The model or the import options changed.
  • The earlier conversion used another device serial. The Reimport Test dialog of one case sends the device serial of the case, for example test-runner-7. An import and a reimport of several cases send the base serial, test-runner by default. So the dialog of one case can miss a conversion from an import.
  • The case needs another tree than its cached conversion. The skip reason says so.
  • A release raised the cache version. Then no case has a match.
  • The last conversion with With LLM (full) had a failed Stage 2, so it stored nothing.
  • A reimport with No LLM or With LLM (full) and Force refresh removed the cached conversion.

The dialog gives one reason for all these cases, except the tree: no cached conversion. With the box Changed TestRail text ticked, a proven text change gives no skip: the runner converts the case without the model.

  • The box Changed TestRail textThe box Changed TestRail text: convert without LLM instead of skipping shows only in No LLM, cached only. It is ticked after a page load. The import dialog and the reimport dialog share it, so it keeps your last choice until the next page load. Each dialog has its own Force refresh. The runner proves a text change by a hash in the YAML. It skips a case without the hash, with the reason a TestRail change could not be proven.
  • The cache keyThe key holds the TestRail record of the case, its section name and its attachment. It also holds the model, the import options, the device serial of the request and a cache version. The first import of a new case adds one more field to the key, so no reimport reads its result. A converter change keeps the key, unless the release raises the cache version.
  • The stored model answerThe runner also stores each Stage 2 answer under its prompt. This store is separate from the cached conversions. For an unchanged prompt and model, the runner takes the stored answer. With LLM (full) with Force refresh asks the model again. The runner stores no answer of a failed Stage 2.
  • What reaches a cached conversionOn a cached conversion, the runner runs a fixed set of builders again. The set holds builders of preconditions, device seeds, typed steps and checks, but not every builder of these kinds. A change of another builder or of the Stage 1 step conversion does not reach a cached conversion. Neither does a change of the tree download or of the emulator setup built from the tree. Diff shows whether your change is there.
  • Not in the tableEvery mode skips a case with a YAML when the runner cannot read its TestRail attachment. An import of a section or a run without Overwrite existing leaves the YAML of an existing case as it is. Import single test case replaces the YAML with or without Overwrite existing. Only a skipped, refused or failed import keeps the YAML. A failed Stage 2 is not a failed import: the runner then writes a YAML by rules only.

Developer: rules that stop a pull request

The full list lives in .claude/rules/repo-rules.md. These stop pull requests most often.

Every file is in English

Code, comments, logs, tests and documentation. Review checks it.

New behaviour ships with its tests

In the same pull request. Review checks it.

A new scripts/*.py is on the COPY list

In test_runner/Dockerfile. Without the line the container stops with ModuleNotFoundError.

A new step type or field has an editor block and a key

In ui/test-runner/index.html and in _step_fields. tests/test_ui_step_fields_parity.py checks it.

A converter change shows in the golden corpus

tests/test_conversion_golden.py names every case with a changed output. Accept an intended change with --force-regen and explain it.

Fixed waits do not grow

tests/test_wait_ratchet.py checks them against tests/wait_ratchet_caps.json.

A change of rules.yaml includes its fixture

tests/test_coverage_contract_rules.py checks it.

Expected values come from TestRail

A YAML never gets a hand-edited expected value. Review checks it.

You run targeted tests only

At most about 40 test files per run. ci/release_set.py --run starts one pytest run with two processes: never use more. Split a larger set in two with --shard 0/2 and --shard 1/2. Run the two parts one after the other. The nightly run covers the full suite.

A green run is not proof

Audit every case you touch against the TestRail text: the steps, the preconditions and the expectation.

Run the targeted set with py -3.11 ci/release_set.py --repo . --target origin/main --head HEAD --run. Run py -3.11 -m pytest tests/test_conversion_golden.py -p no:cacheprovider after a converter change.

Admin: onboard and offboard a developer

You create the worker once. After that, the developer deploys to it. The gateway enforces the naming and the pins.

Onboard

Fourteen steps, in this order

  1. On the Users tab, create an account with the role editor for the developer.
  2. Open the Workers tab.
  3. In Add Worker, select the account in the Owner (empty = shared worker) list.
  4. Leave the name empty.
  5. Click Provision. The new worker is disabled.
  6. On the Settings tab, select the project env in the Environment profile list.
  7. Click Export selected. The browser saves a JSON file with the settings. The file holds the passwords of the env in clear text.
  8. In the file, rename the key of the profile to <project>-<worker name>. The gateway checks the ending -<worker name>. Import overwrites a profile with the same name.
  9. Click Import. Select the file. The new env profile is in the list.
  10. Delete the file.
  11. Open the Workers tab again.
  12. Pin the personal env to the worker in the Env (pinned) column.
  13. Click Enable in the row of the worker. The gateway refuses it before the pin.
  14. Check that the developer has write access to the GitHub repository. The build workflow needs it. The maintainer grants it.
Offboard

Four steps, in this order

  1. On the Workers tab, click Delete on the worker row. Delete removes the stack of the worker. It also deletes the personal env of the worker and drops its queued jobs.
  2. On the Docker host of the worker, delete three volumes: test-cases-<worker name>, tr-worker-<worker name>_run-reports and tr-worker-<worker name>_qa-notes. The last two carry the stack name as a prefix.
  3. If the developer no longer uses the runner, click Delete on the account on the Users tab.
  4. Ask the maintainer to remove the GitHub write access.
Before you delete
  • Delete leaves the named volumes. Step 2 removes them.
  • Step 2 deletes every case copy of the worker, its run reports and its QA notes. Before step 1, the developer imports the needed cases on the shared workers.
  • Delete the case volume before you use the name again. A new personal worker cannot take the name while the case volume exists.

Add a developer’s worker

The Workers tab, Admin view.

IllustrationCreate the worker for an owner, pin the personal env, enable it last. Names and numbers are sample data.
  • The worker name comes from the usernameLowercase. Every character outside a-z, 0-9 and - becomes -. At most 31 characters. JaneDoe gives janedoe. If another worker has the name, the answer is 409. Type another name in the Name field then.
  • The gateway checks the personal env nameThe name must end with -<worker name>. No other worker may hold the env. The gateway refuses any other pin. For the worker janedoe, myproject-janedoe works. Default does not.
  • One worker per account, six in allAn owner has one personal worker. The gateway stops at 6 personal workers. If an admin tied the account to one worker, the account cannot own a personal worker.
  • Enable lastA new worker starts disabled. The gateway refuses to enable a worker with no pinned env. Runs never move to the shared workers.

When something goes wrong

Each refusal says what it needs. Here is the action to take.

409The worker is busy

  • <name> is busy: <job>
  • The worker runs a test. Wait for the run to end. Click Deploy again.
  • The worker refuses a sync the same way: a run or batch is in flight on this worker.

409The worker needs a personal env

  • pin an env to your worker first
  • Ask an admin to pin your personal env to the worker.
  • your session works on your worker <name>: run with env '<env>' or switch to the shared workers
  • Run with the env the message names. Or click Work on the shared workers.

403A stranger's env

  • env <env> is pinned to a personal worker of <owner>
  • Only the owner starts a run on a personal env. Not even an admin can.
  • Select your own personal env.

409The worker is disabled

  • the personal worker <name> is disabled: enable it, runs never fall back to the shared workers
  • Ask an admin to enable the worker.

409The worker needs another env name

  • a personal worker takes a personal env named <project>-<worker name>
  • Admin: create an env profile with that name and the settings of the project env. Pin it.
  • env <env> is already pinned to <worker>: a personal worker needs an env of its own
  • Admin: create another env profile. Each personal worker needs its own.

409A leftover volume

  • volume test-cases-<worker name> is left from an earlier worker: delete it or give the worker another name
  • Admin: delete the volume, or give the worker another name. The gateway created nothing.

502The sha is not in Harbor

  • deploy refused, the stack is untouched: image pull failed
  • Check that the build run in GitHub Actions ended green.
  • Check that you copied the full sha of that run. The deploy changed nothing on the worker.

504The sha never shows

  • <name> did not report <sha> within 240 s
  • Click Refresh on the card. Read the Build line again.
  • If the old commit stays, ask an admin to check the stack of the worker.

CardThe sha is not valid

  • Enter the full 40-character commit sha to deploy.
  • Paste all 40 characters. The card refuses a short sha before it calls the gateway.

400No TestRail run on a personal worker

  • a personal worker posts nothing to TestRail: start it without testrail_run_name
  • Start the run without a TestRail run name.

Case missingA case is not on your worker

  • The shared store has the case. Your copy lacks it.
  • Click Sync missing cases.
  • For a stale copy, type the case IDs. Click Reset.

Red runThe case fails

  • Download the failure screenshot of the run and read it before you form a theory.
  • Never edit an expected value in the YAML.
  • Find the place of the fix: see Decide where the fix belongs.

Questions we get

I changed the converter. Why does an old case still run the old YAML?

The case volume is persistent. A converter change reaches a stored case only by a reimport. On your worker, reimport after the deploy. On the shared workers, reimport after the release is live.

I reimported the case. Why is the YAML still the same?

The Reimport Test dialog opens in No LLM, cached only. With a cached conversion, this mode shows only a part of the converter changes. Select the settings for your case: see Which settings to use.

Can I test a change to the UI or the gateway on my worker?

No. Those files belong to the gateway image. A personal worker runs the worker image only. The pull request checks cover them.

Does a green run on my worker count as QA-verified?

No. A run on your worker never counts as QA-verified. It posts nothing to TestRail.

Does a run on my worker change the readiness label of a case?

Yes, when the case equals the shared copy and the build has no local changes. A run of a released build counts like a run of a shared worker. A released build is a commit the shared workers have run. A run of your branch build counts too. The Readiness tab marks its case with the Branch build tag until a run of a released build replaces it.

I imported a case on my worker. Why is it not on the shared workers?

Imports and edits change only your copy. The pull request and the release bring your code change to the shared workers. Import the case there yourself after the release.

When do I reimport on the shared workers?

After the maintainer tells you the release is live. Click Work on the shared workers, reimport the cases your change affects, and run them again. See Which settings to use.

My pull request is released. Does my worker run the release now?

No. Your worker keeps the commit you deployed last. A release never changes it. To get the code of main, deploy the full sha of a commit with a finished build in GitHub Actions. A push to main starts a build of its newest commit only. A released build is a commit the shared workers have run. Ask the maintainer for the sha of the release. The maintainer can also move your worker to the released build.

Where do I ask a product question?

Search knowledge-mcp first, in several phrasings. Then read the source repositories. Ask a person only what neither settles.

How many cases may I import, reimport or run in one start?

The runner sets no number. All workers share one model limit. Before you start about 500 cases or more, write to the maintainer: see A very large import or batch can spend the whole model limit.

Which test files do I run before a pull request?

The targeted files of your change, at most about 40 per run, with at most two pytest processes. The nightly run covers the full suite.

More

These pages have more detail than this guide.

Contributing a ProjectAccess, checkout, the loop, the LwM2M worked example and the full Your Own Worker reference.
Open Contributing a Project