Guide
Build a testing agent with Claude Code and Playwright
One folder, one command: Claude explores a site, plans its tests, runs them with Playwright, and delivers a report backed by proof. 15 minutes to set up.
Create your tests
Run them
Keep them up to date
By stage
Who it’s for
A free AI assistant and, if needed, €30 a month are enough for a first win within a week: test cases, test code, reading logs.
You don’t need expensive tools to start testing with AI. A free assistant (ChatGPT, Claude, or Gemini) is enough to write test cases, create test data, or read error logs. A coding assistant, at around €10 a month, speeds up writing automated tests. The method: one task with no risk to production, a measured gain, and a first result within a week.
Three general assistants, one coding assistant, and one open-source testing framework cover the essentials. The prices below are from October 2025: check them before you subscribe.
| Tool | Price (October 2025) | What it does for testing |
|---|---|---|
| ChatGPT | Free, optional paid plan | Test cases, test data (JSON, CSV, SQL), structured bug reports |
| Claude | Free with limits, around €20 a month for Pro | Long documents: error logs, specs, user stories to go through carefully |
| Gemini | Free, optional paid plan | Handy if the team works in Google Sheets and Google Docs |
| GitHub Copilot | Limited free plan, around €10 a month after that | Writing test code, assertions, test data |
| Playwright | Free (open source) | The framework that runs the tests in a real browser |
An example request to a free assistant: “Here are the specs for the customer account login page (email and password). Write 15 test cases in Given / When / Then format: 3 happy paths, 6 field validations, 4 errors, 2 security cases. Rank them by priority (P0, P1, P2).” It takes a few minutes, compared with one to two hours by hand by our estimate, plus review time.
With Claude, which handles long texts, try a log file of several thousand lines with this request: “Find the recurring errors and suggest their likely causes.”
Two wins fit well in a first week: having the AI write your test cases, and having it write the code of an automated test.
From a user story and its acceptance criteria, a well-prepared assistant suggests the happy paths, the errors, and the edge cases. The full method, with a prompt to copy, is in how to have AI write your test cases.
With a coding assistant in your editor (for example, Copilot in VS Code), describe the test in a comment, let the assistant write the code, then review it. You write:
// Test: a customer cannot log in with a wrong password
The assistant suggests code like this, which you still need to check and adapt to your site:
test('a customer cannot log in with a wrong password', async ({ page }) => {
await page.goto('/login');
await page.fill('#email', 'customer@example.com');
await page.fill('#password', 'wrong-password');
await page.click('#log-in');
await expect(page.locator('.error-message')).toContainText('Invalid credentials');
await expect(page).toHaveURL(/\/login/);
});
The same method works for a full checkout flow: describe the steps in comments (log in, add three products to the cart, go to payment, fill in shipping, pay with a test card, check the confirmation), and the assistant writes most of the code. Review the assertions and the error handling first: that’s where a test passes when it shouldn’t.
Three rules: start small (one win, not a rebuild of your whole test pipeline), pick a task with no risk (if the AI gets it wrong, production never knows), and measure everything (you’ll have to justify the time spent, even if the tool is free).
Once you have your first win, three families of more specialized tools are worth a try, from cheapest to most expensive.
The seven beginner mistakes, and what to do instead:
| Mistake | Do this instead |
|---|---|
| Merging generated tests without reading them | Review everything the AI produces, at least for the first few months |
| Automating everything at once | Start with a small share of your tests, measure, then expand |
| Measuring nothing | Track time saved and bugs found from day one |
| Writing vague prompts (“Generate tests”) | Give context, a format, and constraints |
| Pasting production logs with real customer data | Anonymize before sending anything: GDPR requires it in most cases |
| Being the only one who knows how to use it | Share your prompts and train your colleagues, so nothing stops while you’re on vacation |
| Waiting for the perfect tool | Start with what exists, and keep improving |
With three families of indicators, tracked every week: productivity, quality, and business impact. Without numbers, the question “what’s the point?” shows up after three months, and the answer is awkward.
A simple tracking template in a spreadsheet is enough:
Week of [date]
- Time saved: X hours
- Tasks handed to AI: [list]
- Bugs found: X
- Cost of AI tools: €X
- Estimated gain: X hours × hourly rate - tool cost = €Y
Qanary, no-code automated testing for e-commerce, is the next step for a team that doesn’t want to maintain its own scripts. You record your shopping journeys, Qanary replays them several times a day without AI, which keeps runs stable and low-cost, and AI is used only where it helps: creating tests, checking pages visually, and repairing tests when the site changes. The details are on the Product page.
Want to see Qanary test your site? with Julia or Antoine.
Guide
One folder, one command: Claude explores a site, plans its tests, runs them with Playwright, and delivers a report backed by proof. 15 minutes to set up.
Talk
Self-healing repairs a test when the site changes. Three approaches with AI, from the most guided to the most autonomous, and their limits (ParisTestConf 2026).
Talk
Define your critical journeys, document them in a spreadsheet, and move from reactive quality to quality you control: our talk at WordCamp Nice 2026.
Bugs only. Promise.
30 minutes, live on your site
Shall we look at your site together?