Skip to content
On this page
[Best practices]

Making runs fast and cheap

Performance work on a test suite here is mostly about the AI. A test costs around $0.15 of Claude the first time it is worked out, and no AI while its saved steps replay as they are, unless a step needs it: one that no longer fits, or one that types a value read off the screen. Keeping a suite fast and cheap is largely making sure the second thing happens more often than the first.

Replay by default, explore on purpose

The first run of a case works it out and saves the steps. Later runs replay them, and the AI only steps in from a step that no longer works. In CI you can turn even that off: a case with no saved steps is then skipped rather than explored, and one whose saved step types a value read off the screen replays up to that step and stops there, each saying why, so a nightly suite makes no model call and a surprise is a genuine change.

bash
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":"off"}'   # saved steps only: no model call

Give the AI less to work out

  • One job per test case. Long cases cost more, fail in more places and say less when they do.
  • Name the page to start on, so the first minute is not spent finding it.
  • Save the login under Test logins instead of describing how to sign in.
  • Write down what the AI keeps rediscovering, such as a cookie banner or a sandbox account, as a note for that site.

The limits worth knowing

  • Three AI runs at once per account. A fourth is refused rather than queued.
  • The Cloud browser holds a few sessions in total, so a busy moment can answer “busy” and ask you to try again shortly. Runs on your own Mac are not affected.
  • A cloud session nobody is using is closed after twenty minutes of idleness; a session on your own Mac after ten.
  • On a poor connection, the picture drops to a smaller, coarser stream. The run itself is unchanged: the AI works from the device, not from your view of it.

Watching the bill

Every run records what it used, and the Anthropic key page shows the month so far. Professional includes about $40 of Claude a month, Business about $240, White label about $2,000. Past the included amount the AI asks for your own Anthropic key rather than the account being cut off, and the $25 plan runs on your key from the start.

The Anthropic key screen: the AI runs used this month, the ask-first setting, and an Anthropic key marked verified and in use.
[anthropic key]

Your key, encrypted, used only for your tests, with this month's AI runs counted at the top of the screen.

Open full size: The Anthropic key screen: the AI runs used this month, the ask-first setting, and an Anthropic key marked verified and in use. (opens in a new tab)