Skip to content

Help centerCreating tests

How do I create a test by asking my AI assistant?

Describe the journey to your assistant (“Author” scope): it follows the journey in a Qanary browser, adds the checks, and saves the test.

Updated Text versionOpen inChatGPT (new tab)Claude (new tab)Perplexity (new tab)

Your AI assistant (claude.ai, Claude Code, Cursor, and others), connected to Qanary with the “Author” scope, records a test for you. It opens a Qanary browser, goes through the journey you describe, adds the checks, and saves the test; Qanary then starts its first run. The resulting test is a Qanary test like any other: it replays without AI, and you find it in Qanary.

Before you start

  • Your assistant is connected to Qanary with a token that has the “Read” and “Author” scopes (and “Run” to rerun the test later). See How do I use Qanary from my AI assistant (MCP)?.
  • Does the journey go through a sign-in? Record it yourself in Qanary, as a block, before making your request: your assistant will start from that block. See How do I reuse a login across several tests?.
  • The starting URL is reachable from the internet. Qanary can’t open localhost or an address on an internal network or a VPN.

How does it work, step by step?

  1. Describe the journey, with the starting URL and what must be true at the end. For example: “On mysite.com, record a test that adds a product to the cart and checks the cart’s total.”
  2. Your assistant prepares the test. It loads Qanary’s “Write a test” guide, looks at the tests that already exist (to avoid a duplicate) and at the blocks it can start from, such as a sign-in or a cookie banner.
  3. Your assistant records the journey. It opens a Qanary browser at the starting URL. Each click, typed entry, or choice from a list becomes a step of the test, just as when you record by hand; waiting doesn’t create a step.
  4. Your assistant adds the checks: the sentences Qanary verifies at every run, such as “The cart total equals the product’s price.”
  5. Your assistant finishes the recording. Qanary starts the test’s first run right away, and your assistant gives you the result and the link.

Expected result: the test appears in Qanary, with its steps, its checks, and the result of its first run.

Your assistant picks the test’s name and folder itself, and tells you which. To choose them yourself, include them in your request: “Name it ‘Add to cart’ and put it in the ‘Cart’ folder.”

Which checks does your assistant add?

A Qanary test already fails when an element it acts on is missing, so your assistant doesn’t check that a button is there. Instead, it checks what can be wrong without blocking the journey:

  • a filter that filters nothing;
  • a wrong total, or the wrong product in the cart;
  • a missing confirmation or error message.

A check is judged again at every run: it must stay true from one run to the next. “The total is twice the unit price” (for two items in the cart) holds; “The total is €49.90” will fail at the next sale. A check must only be about what’s shown on the screen.

When Qanary refuses a check, it says why and suggests a wording it can judge: your assistant uses it. You can also dictate your own (“Also check that shipping is free”). The rules of a good check are in How do I write a check that works?.

Can your assistant type a password?

Qanary asks your assistant not to type a password on its own. For a journey with a sign-in, it starts from a sign-in block you recorded in Qanary; if there’s no block, it should ask you to record one.

If you insist, for a test or development account, your assistant can type the password after warning you: that password then goes through your assistant and its model provider. In the test, the step is marked sensitive and its value stays masked. The same goes for the username and password of a protected staging site, which your assistant gives Qanary when opening the browser: Qanary keeps them encrypted in the test’s settings.

How do I create several tests at once?

Ask your assistant to cover a site or part of a site: “Explore the product pages of mysite.com and propose tests for them, without going as far as payment.” It then loads Qanary’s “Cover a site” guide:

  1. It explores the site in a Qanary browser, without recording anything.
  2. It proposes the scenarios to test.
  3. Once you’ve approved the scenarios, it creates a folder and records the shared steps as blocks (a cookie banner, for example). Then it records the tests, several in parallel if your assistant can do that (Claude Code, for example), otherwise one after another.
  4. It sums up the first runs for you.

How do I repair a broken test with my assistant?

Your assistant doesn’t edit an existing test: it records it again, and the new test takes the old one’s place. The new test starts with no history: the old test’s results don’t carry over. For example, ask: “The ‘Add to cart’ test has been failing since the product page redesign: find out why and repair it if the test is the one that’s outdated.”

With the “Check a change” guide, your assistant can tell a regression (your site has a bug: the test is right) from an outdated test (your site changed on purpose: the test must follow), and only repairs outdated tests.

What can’t your assistant record?

Just as in a recording made by hand, a test recorded by your assistant can’t contain:

  • a file upload or drag and drop;
  • accepting a browser dialog box;
  • switching tabs, going back, or reloading the page.

There are limits on how long your assistant’s browser can stay open and how many it can open at once: see “What are the usage limits of Qanary’s MCP?” in How do I use Qanary from my AI assistant (MCP)?.

If it doesn’t work

  • Your assistant says it can’t create a test: the token doesn’t have the “Author” scope. Create a token with “Read” and “Author.”
  • The starting URL is refused or unreachable: it isn’t reachable from the internet (localhost, internal network, VPN). Give a public address, such as your staging site.
  • Your assistant can’t open a browser anymore: you already have 10 runs or browsers in progress. Wait for a run to finish, or ask your assistant to close its browsers.
  • The browser closed along the way: it closes after 10 minutes without any call from your assistant, or after 60 minutes in total. Ask your assistant to start the recording again.
  • The first run fails although the journey works: see Why does my test fail when my site works?.

Frequently asked questions

Can I watch my assistant record the test?

Not live. Ask it for a screenshot while its browser is open: it looks at it and describes the page to you (claude.ai also shows it). Once the test is saved, Qanary shows its first run step by step, with a screenshot after each step.

Does Qanary’s AI write my test?

No. Your assistant drives the Qanary browser and chooses the steps. The test then replays without AI; Qanary’s AI only judges the checks.

Still have a question? Julia or Antoine will reply within 24 business hours at contact@qanary.dev. A human, not a bot. The canary stays down the mine.

For your AI assistant: this article as text, the help center index, the glossary.

Take 30 minutes to try Qanary on your own site.

Bugs only. Promise.