It’s a Plan

AI in Software Testing: What to Hand Over, First Steps, What to Check

How to split software testing between AI and your testers, pilot the split on one feature, and check AI-written tests for cases that can't fail, missing criteria coverage, false failures and maintenance time.

Andrii PoluosmakUpdated 10 min read

AI in software testing works best when you let AI draft and leave the decisions to your testers. Hand over the drafting and sorting: test cases from acceptance criteria, unit test scaffolds, test data, triage of flaky tests, visual diffs and regression test picks. Your testers keep exploratory testing, risk calls and the definition of "correct".

Pilot this on one feature, and check the AI tests before you trust a green run. Give every acceptance criterion a test, break the code to see each test fail, and keep false failures and maintenance time low.

Where AI in software testing helps today, and where it does not

AI helps most with drafts that a tester can check against a written requirement. In the World Quality Report 2025 from Capgemini, Sogeti and OpenText, based on a survey of more than 2,000 senior executives, 89% of organizations were piloting or deploying workflows that use generative AI in quality engineering. Test case design and requirements refinement led adoption. Start with those two tasks, because you can compare the output with the requirement.

AI does worse with rules you haven't written down. In the Thoughtworks experiment with nine user stories, it had some difficulty with complex business logic, and finding edge cases stayed hard without explicit guidance. Put your business rules and known edge cases into the prompt.

Filter the unit tests AI generates, too. Meta evaluated its TestGen-LLM tool on Instagram Reels and Stories: 75% of the test cases built correctly, 57% passed reliably and 25% increased coverage. Run each generated test several times, and drop any that fails once or covers nothing new.

TestGen-LLM test cases on Instagram Reels and Stories

Source: Meta, Automated Unit Test Improvement using Large Language Models at Meta

TestGen-LLM test cases on Instagram Reels and Stories
Built correctly75%
Passed reliably57%
Increased coverage25%

The split: hand drafts to AI, keep judgment with testers

To plan AI for software testing, go through your tasks and ask whether a tester can check the output against a written requirement or a known result. If so, AI can draft it. Leave any judgment about risk, users or what the product should do with a tester.

TaskAI doesTester does
Test casesDrafts them from acceptance criteriaCorrects, adds edge cases, approves
Unit testsWrites the scaffold and first casesSets the expected result, breaks the code
Test dataBuilds synthetic sets and boundary valuesApproves the data, adds known odd cases
Flaky testsSorts failures by likely causeConfirms the cause, fixes or removes the test
Visual diffsFlags differences from the expected screenDecides: bug or intended change
Regression picksProposes tests for a changeSets the risk level, keeps the full run
Exploratory testingSuggests inputs and user pathsLeads the session, judges the result
Risk and release callsSummarizes test resultsDecides
Definition of "correct"Points out unclear rulesOwns it

A board with the columns AI drafts and Tester decides, where draft cards cross a Review gate toward the tester column and the Risk calls card and two more cards sit only with the tester.

According to ISTQB's Testing with Generative AI syllabus, language models can help generate test cases, test data and result summaries, and with models that read images, testers can spot differences between the expected result and a screenshot. Pick your first tasks from this list.

In a study of 2,458 CI job failures at TELUS, a language-model approach cut review effort by 74.4% while surfacing the relevant failure information in 87% of cases. Let AI suggest the cause, and mute a test only after a person confirms it.

First steps on one feature: drafts, review, then automation

Pick a feature that has written acceptance criteria and changes often, and one where a missed bug does little damage. Record the hours you spend on its test cases today and its share of false failures.

1. Fix the acceptance criteria

Number each criterion (AC1, AC2, AC3) and ask AI to list ambiguities and missing cases. Settle each one with the product owner before you draft: in the Thoughtworks experiment, the drafts depended heavily on the quality and detail of the input.

2. Draft the test cases

For AI test case generation, gather the inputs that ISTQB's syllabus names: user stories, acceptance criteria, screenshots, code and existing test cases. Then use a prompt with the scenario types and the Given/When/Then format from the Thoughtworks experiment:

Act as a senior QA engineer.
User story: [text]
Acceptance criteria: [AC1, AC2, AC3]
Business rules: [limits, roles, exceptions]
Existing test cases: [examples]
Write test cases with an ID, one criterion, Given/When/Then and test data.
Include functional, boundary value, error handling and edge case scenarios.
Include null, negative and empty inputs.
If a rule is missing, ask. Do not guess.

In It's a Plan, you can delegate the issue to an AI agent for this draft, limit what it may change and open every step it took.

3. Review every case

Have a tester mark each case correct, unclear, wrong or duplicate, and add the edge cases the draft missed. In the nine-story Thoughtworks experiment, AI saved an average of 80.07% of the time to create test cases, and an average of 6.44% of the cases were incorrect. If several cases for one criterion are unclear, rewrite the criterion and draft again.

4. Automate the approved cases

Start AI test automation after the review, and let AI write the setup, the steps and the test data. The tester takes the expected result from the acceptance criterion, never from what the code returns today. For two sprints, run the first automated cases without letting them block a release.

What to check in AI-written tests

With AI in test automation, you can end up with a suite that stays green on broken code. Run four checks before you rely on it.

Tests that can't fail

In a study of 24 Java repositories, "Can we find bugs using LLM-generated oracles?", the authors found that LLM-based test generation mainly captures the program's actual behavior, which makes bugs hard to detect. If the code is wrong, such a test passes anyway. Compare each assertion with its criterion, then break the code by hand:

  1. Pick a line the test should protect.
  2. Remove it, flip its condition or shift its limit by one.
  3. Run the test. It must fail for the reason you expect.
  4. If it stays green, fix the assertion or delete the test.
  5. Restore the code and rerun. The test must pass.

Four cards in a row labeled Pass, Break, Fail and Restore, where one line of code is moved out of place in the second and third cards and is back in place in the fourth.

Meta's engineers describe this method, mutation testing, as deliberately introducing faults into source code to assess how well a testing framework detects the changes. Begin with the faults that would hurt users most.

Check the inputs next. In an analysis of 14,320 LLM-generated unit tests for Java functions, "Beyond Coverage and Mutation", coverage reached 34.8% for null arguments, 23.8% for negative and 38.8% for empty ones, against an average above 93% for booleans. Ask for null, negative and empty inputs by name, and check that each one has a test.

Argument coverage in LLM-generated unit tests

Source: Shi, Luo, Yang and Tian, Beyond Coverage and Mutation: A Blind-Spot Analysis of LLM-Generated Unit Tests

Argument coverage in LLM-generated unit tests
Negative23.8%
Null34.8%
Empty38.8%

Acceptance criteria coverage

Use the formula from the Thoughtworks study: covered criteria ÷ total criteria × 100. Put the criterion number in each test name, and count a criterion as covered only when its test failed on broken code. Aim for 100% on the pilot.

Don't accept code coverage in place of this check. Read every assertion: in the analysis of 14,320 tests, incorrect assertions accounted for 15.6% of test failures, and the authors note that coverage alone does not establish that assertions are correct.

False failures

Rerun each failed test on unchanged code, and if it passes, count a false failure. Divide false failures by all failures, and set your limit from the rate of your existing tests. In the TELUS study, 25% of all job failures were intermittent: the job failed, then passed on a rerun with no change to the source code or CI script.

Maintenance time

Each time you repair an AI-written test, log the minutes and the cause: product change, wrong assertion, unstable selector or bad data. Compare the minutes per test with those of your older tests. In It's a Plan, you can keep the cause and the minutes in custom fields and show them as columns in a saved table view.

Data and security rules for AI testing tools

In its guidance on sensitive information disclosure, OWASP warns that a model's output may later disclose data that people provide. Set these rules before the first prompt:

  • Keep sensitive data out. OWASP's list includes personal data, financial details, health records, confidential business data, security credentials and legal documents.
  • Use synthetic test data. Have AI build it from field rules, never from production records.
  • Redact first. Strip tokens, emails and internal addresses from logs and screenshots.
  • Approve each tool. Check what it stores, for how long, and whether you can opt out of training.
  • Limit access. Give an agent only the code and test environment it needs.
  • Don't rely on a prompt rule. OWASP notes that such restrictions may not always be honored and could be bypassed.

From one feature to the regression suite

Expand once the pilot has met your limits for two sprints in a row:

  1. Add one feature at a time, starting with the clearest acceptance criteria.
  2. Have AI rank the tests by priority and dependency, and have a tester set the risk of each area.
  3. Run a selected subset on each change. Facebook's engineers reported in 2018 that their machine-learning test selection caught more than 99.9% of regressions before other engineers could see them in the trunk code, while running a third of the tests that depend on the modified code.
  4. Run everything before release. At Facebook, every code change still went through exhaustive testing before deployment to production.
  5. Each sprint, break the code again for a sample of tests, and delete any that stay green.

Start with one checklist

Pick the pilot feature and write its acceptance criteria as a checklist, one item per criterion, so every AI-drafted test case traces back to a requirement. Then delegate the issue to an AI agent in It's a Plan for the first drafts, and review each one against its item.

Key takeaway

Hand AI the testing work that a tester can check against a written requirement: test cases from acceptance criteria, unit test scaffolds, test data, triage of flaky tests, visual diffs and regression test picks. Your testers keep exploratory testing, risk calls and the definition of "correct". Pilot the split on one feature, review every draft, and trust a green run only when each acceptance criterion has a test that failed on broken code and when false failures and maintenance time stay low.

Frequently asked questions

Which software testing tasks can you hand to AI?

Test cases from acceptance criteria, unit test scaffolds, test data, triage of flaky tests, visual diffs and regression test picks. A tester checks the output against a written requirement or a known result. Exploratory testing, risk calls and the definition of "correct" stay with testers.

How do you check that an AI-written test can fail?

Pick a line the test should protect and remove it, flip its condition or shift its limit by one. Run the test: it must fail for the reason you expect. If it stays green, fix the assertion or delete the test. Then restore the code and rerun, and the test must pass.

How do you start with AI test automation?

Pick one feature that has written acceptance criteria and changes often, and where a missed bug does little damage. Number the criteria, let AI draft the test cases and have a tester review every case. Automate the approved cases after the review, and for two sprints run the first ones without letting them block a release.

Can you use customer data in prompts to AI testing tools?

No. Keep customer data and credentials out of prompts, and have AI build synthetic test data from field rules, never from production records. Strip tokens, emails and internal addresses from logs and screenshots, and check what each tool stores, for how long, and whether you can opt out of training.

Andrii Poluosmak

Founder

Andrii founded It’s a Plan and leads its product and roadmap, from the open-source edition to Pro for teams. He works with the project’s contributors and the teams that run It’s a Plan.

All posts by Andrii Poluosmak

Put your next project on the board.

The open-source issue tracker you host yourself.