On this page
Regression testing on saved steps
A regression suite has to run often, so it has to be cheap. In xtest the first AI run of an end-to-end test writes down the steps that worked; every run after that replays them with no AI cost unless a step needs it. A test agent only comes back for a step that broke, which is usually the one your change caused, or a step that types a value read off the screen.
What a re-run actually does
First run
The AI works the test out on the device you picked, action by action, and saves the steps it settled on.
Every run after
Those steps replay. No model is called unless a step needs it, so a run in which no step needs it costs no AI and finishes in seconds rather than minutes.
When a step breaks
Replay stops at that step and the AI takes over from there, not from the beginning. The repaired step is saved, so the next run replays it at no AI cost unless a step needs it. A repair that would change what the test checks waits for your approval, and the saved steps stay as they were until then.
When you want no AI at all
Send "ai": "off" and a test with no saved steps is skipped rather than explored, with the reason written on the run.
A test costs roughly $0.15 of Claude to work out once. After that a regression pass over the same suite costs no AI unless a step needs it, however often you run it.
Running the suite after a deploy
Run with a test agent in the Test Library starts a suite by hand. From a build server, one POST does the same thing: it answers straight away with a run id, and you poll that id until the run is finished. Runs started this way use the Cloud browser.
curl -X POST https://xtest.io/api/v1/suites/SUITE_ID/runs \
-H "X-API-Key: xtest_live_…" \
-H "Content-Type: application/json" \
-d '{ "ai": "repair" }'
# 202 Accepted
# { "runId": "…", "status": "queued", "poll": "/api/v1/runs/…" }
# A suite with a Playwright script answers "status": "running" instead.
# A suite with more than 200 tests answers testsPlanned, testsTotal and a note as well:
# a run takes at most 200, and xtest starts a run of the rest when it has ended.
# A suite with cases a test agent added, which wait for a person to press Looks good
# on its page, answers casesLeftOut and a note: a run started with a key leaves them out.There is no test selector that reads your git diff, and nothing here decides which tests matter. You choose the suite, or a list of test case ids inside it.
Writing the suite in the first place
Pick Regression as the test type and xtest writes cases against what is really on the page: each form submitted with valid data and then with invalid data, each navigation destination still resolving, and the state of the page after each named button. If your regression pack already lives in Excel or exported from TestRail, import it instead, up to 500 cases at a time, and give it saved steps on its first AI run.
Comparing one pass with the last
Every run is kept: its steps, what the AI concluded and what it cost, with the screenshots a test agent took for 30 days. Two runs of the same suite sit side by side in Runs, so a regression shows up as the step that used to pass. Three AI runs may be going at once.
[Academy courses]