AI Testing: What to Automate First in a QA Team

Avatar
Author

Most teams that start with AI testing start in the same place: they ask the tool to generate more tests. Coverage climbs quickly. A few weeks later, the team realises it has twice as many scripts to maintain.

Generating tests is what demos show best. It is rarely what saves the most time. In a QA team with a suite in production, the hours go mostly into maintaining what already exists, separating real failures from script failures and explaining to decision-makers what was tested.

This article proposes an adoption order. It starts with the tasks where AI cuts work without adding risk and leaves for last the ones that depend on human judgement.

5 steps
The adoption order proposed in this article, from regression to generating new scenarios
4 frameworks
Selenium, Cypress, Playwright and Robot Framework, all supported by Qualiagentic without a proprietary runtime
6 to 8 weeks
Typical length of a pilot with one application, one framework and one success criterion
1 rule
No automatic change enters the suite without a person approving it

Why should generating tests not be the first step?

Because more tests do not mean more defects found. Tests generated from code tend to confirm what the code already does, including its mistakes. Tests generated from requirements are more useful, but only if the requirements are written precisely enough.

There is also a cost that shows up later. Every new test is a test to maintain. A suite that doubles in size without a maintenance mechanism gets slower. It fails more often for reasons unrelated to the application. The team stops trusting it. We looked at this in detail in our article on AI test case generation.

Generating tests is the easy part. Keeping them working as the code changes is where a QA team’s time goes.

Where should AI testing start?

In the order where risk is lowest and the gain is easiest to measure.

  1. 1
    Regression on stable requirements. Pick an area of the application that changes little and has clear requirements in Jira, ALM or Confluence. Generate regression tests from those requirements and compare them with the ones the team already has. The result is easy to validate because the team knows the expected behaviour well.
  2. 2
    Maintenance of existing scripts. When a selector changes or a field is renamed, the tool proposes the fix. A person approves or rejects it. This is where most of the time comes back, because it is the most repetitive work of the week.
  3. 3
    Failure triage. Separate application failures from script failures and group the ones with the same cause. A nightly run with forty failures that come down to three real problems stops eating the whole morning.
  4. 4
    Coverage and gaps. With a stable suite, AI can compare requirements with tests. It shows what is not covered, what is duplicated and what no longer maps to any requirement.
  5. 5
    New scenarios from new requirements. Only now does generation at scale make sense. The team already has a maintenance process, trusts the triage and knows how to read the results.

What should stay with the team?

Not everything that can be automated should be. This table sums up where we stand today, based on work with QA teams in regulated sectors.

TaskAutomate with AIWhy
RegressionYes, firstKnown behaviour, easy-to-validate results, immediate time savings.
Script maintenanceYes, with approvalRepetitive work. Human approval stops a real regression being fixed as if it were a broken selector.
Failure triageYesA classification can be reviewed in seconds. Mistakes are cheap and the gain is daily.
Exploratory testingNoIt depends on curiosity and business knowledge. It is where the defects nobody predicted turn up.
Test strategyNoDeciding what to test, how deeply and with what acceptable risk is a management decision.
Business acceptancePartlyAI prepares scenarios and evidence. Final sign-off belongs to the people who know the process.
In regulated sectors, every automatic change must leave a trail: what changed, who approved it and when. Without that record, the time saved becomes an audit problem.

Self-healing: what it fixes and what it hides

Self-healing is a script’s ability to fix itself when the interface changes. It is useful. It is also the feature that needs the most care.

  • It handles changes of form well. A button with a new identifier, a field moved elsewhere on the page, a label reworded. These are script failures. Fixing them automatically saves real work.
  • It can hide changes of behaviour. If a button disappeared because a feature was removed by mistake, a script that finds a similar button and carries on is not fixing anything. It is hiding a defect.
  • It needs a clear boundary. Selector fixes can be proposed automatically. Fixes that change the test flow or the expected result should require review.
  • It must be recorded. Every automatic fix should appear in the test’s history. A suite that changes itself without a record stops being evidence of quality.
Qualiagentic generates tests from requirements, maintains the suite with human approval at every step and records the full chain from requirement to result. It runs on-premise, in a private cloud or as SaaS.
Book a demo →

How do you know it is working?

The numbers vendors show, such as tests generated or coverage reached, measure activity. To know whether the team gained time and quality, measure something else.

Maintenance: hours per sprint. Time spent fixing scripts. This is the indicator that should fall first.
Noise: false failures per run. Failures that match no application defect. The fewer there are, the more the team trusts the results.
Speed: time to result. From commit to test report. It shows whether QA keeps pace with delivery.
Quality: escaped defects. Defects found in production that tests should have caught. This is the indicator that decides whether the rest was worth it.

Record all four values before you start. Without a baseline, any improvement is an opinion.

We explained what changes in a team’s way of working in this article on AI-assisted testing. To set up a pilot with a clear success criterion, see our guide to running a QA automation pilot in eight weeks.

How do you prepare requirements for AI testing?

The quality of generated tests depends on the quality of the requirements. A vague requirement produces a vague test that always passes and proves nothing. Before connecting any tool, it is worth reviewing the area chosen for the first step.

  • Every requirement has a unique ID. That is what links the requirement to the test, the run and the result. Without an ID, traceability is lost in the first cycle.
  • Acceptance criteria are written down. What must happen for the requirement to be met, in verifiable sentences. For example: the user gets an error message when the IBAN has fewer than 25 characters.
  • There are concrete examples. Input values and expected results. Examples help AI generate edge cases instead of repeating the most obvious one.
  • The language is consistent. The same concept has the same name in every requirement. Customer, user and account holder are not synonyms to a machine.
  • Obsolete requirements are flagged. A requirement that no longer applies produces tests that fail for good reasons and eat up analysis time.

This review is worth doing even without AI. Teams that do it before a pilot often find gaps that explain old defects.

How does AI testing fit into the process the team already uses?

An AI testing tool should not force the team to change its process. It should slot into what already exists.

Requirements: where they already are. The tool reads requirements in Jira, ALM or Confluence. Nobody copies them anywhere else.
Test code: in the current framework. Tests are generated in Selenium, Cypress, Playwright or Robot Framework and live in the team’s repository like any other code.
Execution: in the existing pipeline. Tests run in the same continuous integration pipeline, on every change or in nightly runs.
Approval: a review queue. Changes proposed by AI land in a queue. The team approves, rejects or corrects them. Every decision is recorded.

If a tool requires its own test format or a closed execution environment, the team becomes dependent on it. Choose one that produces code the team can maintain on its own.

What are the risks of AI testing and how do you reduce them?

  • Tests that confirm the bug. If AI generates tests from the application’s current behaviour, a defect becomes the expected result. Generate from requirements, not from code.
  • Weak assertions. A test that only checks the page loaded does not test the business rule. Review assertions in the first cycles, until the team trusts the pattern.
  • Sensitive data in prompts. Requirements and test data can contain customer information. In regulated sectors, on-premise or private cloud deployment keeps that information inside the perimeter.
  • Overconfidence. A suite that grows on its own gives a false sense of coverage. The metric that matters is still escaped defects.

None of these risks is a reason to avoid AI testing. Each one is a reason to keep a person in the loop and to measure the right thing from the first sprint.

What should you tell the team before starting?

AI testing adoption goes better when the team understands from day one what changes in its work. The most common question is not technical. It is whether the tool is there to replace people.

  • What AI does. It proposes tests, fixes and failure classifications. It approves nothing on its own.
  • What the team decides. What goes into the suite, what gets tested first and when a result is acceptable.
  • How success is measured. With the four metrics above, shared with the team from the baseline onwards.
  • Where the time saved goes. Into exploratory testing, complex scenarios and strategy, which is the work the team rarely has time for.

Saying this clearly at the start avoids resistance later. Teams that see the tool as a colleague who handles the repetitive work engage with the review queue. Teams that see it as a threat ignore it.

Frequently asked questions

AI testing

What is AI testing?
AI testing is software testing in which AI models help generate test cases from requirements, maintain scripts when the application changes, classify failures and identify coverage gaps. Deciding what to test and what to approve stays with the team.
Does AI testing replace QA engineers?
No. It removes repetitive maintenance and triage work. The time freed up goes into test strategy, exploratory testing and complex scenarios, which depend on business knowledge.
Where should a team start with AI testing?
With regression on stable requirements and with maintenance of existing scripts. These are the lowest-risk tasks with the easiest gains to measure. Generating new scenarios at scale should come later.

Self-healing and governance

Is self-healing test automation safe?
It is safe when it fixes changes of form, such as selectors or identifiers. Each fix must also be recorded. Fixes that change a test’s flow or expected result should go through human review.
Does AI testing work in regulated sectors?
It works if the tool can be deployed on-premise or in a private cloud, records every change and produces traceable evidence from requirement to result. Without that, the time saved creates an audit problem.
Do requirements need a special format for AI testing?
No. They need to be written clearly, with a unique ID, verifiable acceptance criteria and, where possible, examples. They can stay in Jira, ALM or Confluence.
Are generated tests locked into the tool?
It depends on the tool. With Qualiagentic, tests are ordinary code in Selenium, Cypress, Playwright or Robot Framework and live in the team’s repository, with no proprietary runtime.
How long until the team notices a difference?
The first signs show up in maintenance, when selector fixes stop being done by hand. To measure it properly, compare maintenance hours per sprint with the baseline across at least a few consecutive releases.
Caixa Mágica Software, the company behind Qualiagentic
Caixa Mágica Team
Caixa Mágica Software is a Portuguese software company with more than 20 years of experience in custom software and applied AI. It develops Qualiagentic, an agentic AI platform for software quality teams.
Qualiagentic · Caixa Mágica Software
AI for the quality function, not one engineer at a time
Qualiagentic reads requirements, generates tests for Selenium, Cypress, Playwright and Robot Framework, runs them and maintains the suite with human approval. Every step is recorded, from requirement to archived result.