AI tools in QA's work
AI tools differ in what they see, what they do on their own and where data goes, so they are chosen by mechanism, not by name. A chat sees only what is pasted, an editor assistant pulls in open files, and an agent also acts and runs commands. Use the simplest kind with enough context. The more a tool does itself, the more strictly its rights are limited and its changes reviewed.
QA Fundamentals · AI in testing
A colleague asks which AI tool to pick for testing. Where does a good answer start?
Asking "Copilot or Claude?" is like asking "Postman or Playwright?" with no task. Names change every year, while tools differ in what they see, what they can do on their own and where the data goes. This lesson gives a way to choose by mechanism: once you know how a chat differs from an editor assistant and an agent in a terminal, a new name on the market does not confuse you.
How it works and why. A model answers only from what landed in its context. The kinds of tools differ in who assembles that context. In a chat you assemble it by hand. An editor assistant pulls in open files by itself. An agent also acts: it reads files, changes them, runs commands, looks at the result and decides the next step. The more a tool sees and does on its own, the less manual work there is and the more can go wrong: an agent allowed to run commands may change something you did not plan.
| Kind | What it sees | Where it helps |
|---|---|---|
| Chat (web, app) | only what you paste | ideas, requirement analysis, data, explaining logs |
| Editor assistant | open files, sometimes the whole repo | automated test code, refactoring, suggestions while typing |
| Agent in a terminal or IDE | project files, command output | multi-step tasks: read, change, run a test |
| Features inside a QA platform | the platform's own data | locator self-healing, failure grouping, generation from a recording |
This gives a rule for choosing: take the simplest kind that has enough context for the task. Test case ideas and requirement analysis need no repository access, so a chat is enough. Writing a Page Object that matches the project style needs to see neighbouring files, which is where an editor assistant helps. A change that touches many files and is verified by running tests suits an agent, but only with limited permissions and a diff review.
A prompt for a failure analysis: without context and with it
3 lines of the error
The model sees neither the code nor the changes. It returns a generic list of causes for any timeout.
code, report, what changed
The causes are tied to this test, and each can be checked in the trace.
Example: analysing a failing test. The first request, without context:
The test fails in CI. Why?
[3 lines of the error pasted]
The answer will be a list of generic causes: an unstable selector, the network, timeouts. You can do nothing with it. The second request gives the model material and boundaries:
The test fails in CI and passes locally. Playwright, TypeScript.
Test code: [25 lines pasted, no tokens or real data].
Report excerpt: [timeout on a click, 10 lines].
What changed: the login page was updated before the failure.
Give the 3 most likely causes, and for each: what to check in the trace.
Do not write a fix until I confirm the cause.
What changed. There is code and a report excerpt, so the causes concern this particular test. There is the detail of what changed before the failure, which only you know. Asking what to check in the trace yields a verification plan and not "here is a fix": you confirm the hypothesis before changing anything. Secrets and real data were removed before pasting, because the request goes to an external service.
Limits and alternatives. AI features inside platforms (locator self-healing, failure grouping) are useful, but they may quietly "heal" a test that should have failed because of a real UI change: check what exactly was changed. An agent can do a lot quickly, and can also go wrong across many files quickly, so small steps and a review of the changes are mandatory. All kinds depend on the company data policy: pick the tool from the allowed list. For routine work with no context needs (a regex, an SQL template, JSON formatting) a chat is enough and a separate agent is overkill.
Common mistakes.
- Choosing a tool by fashion and not by task: an agent for a one-line request and a chat for changes across twenty files both waste time.
- Giving an agent the right to run any command without limits: it can delete files or send requests to a real environment.
- Pasting logs with tokens and personal data into a chat: the request leaves the company perimeter.
- Accepting generated code without running and reviewing it: CI or, worse, a colleague finds the mistake.
- Asking "fix it" before the cause is known: AI fixes the symptom and the real cause stays.
Check yourself
You need 30 negative values for an IBAN field following the rules from a requirement. Which kind of tool fits and what one thing must you do before the request?
Answer
A chat: the task needs no repository access, only the rules from the requirement. Before the request, paste the rules and the output format and not real customer account numbers: the data must be made up.
A platform reports that self-healing changed a button locator and the test is green. Why is that not enough to consider the issue resolved?
Answer
Because the button may have changed through a real UI change that should have been noticed (another label, another place). The platform "found a similar element", but a person decides whether it is the one the requirement needs. Review what was replaced and update the test deliberately.