Generative AI for Testers: What It Is Good At, and Where It Lies
A language model will write you forty test cases in ten seconds. Six of them will be duplicates, two will test something the application does not do, and one will be the edge case you would never have thought of.
In this article
- How a language model actually works, in one paragraph
- Where it genuinely helps
- Where it will cost you time
- Prompting that gets usable output
- Reviewing the output – the three failure modes
- What never goes into a prompt
How a language model actually works, in one paragraph
A large language model predicts the next token given everything before it. It has no model of your application, no access to your requirements unless you paste them in, and no concept of being wrong. Fluency and accuracy are separate properties, and it optimises for the first. Every useful thing below follows from that.
Where it genuinely helps
- Test case generation from a requirement you paste in – breadth, fast.
- Test data: valid, invalid, boundary and unicode rows, in the format you ask for.
- Explaining a stack trace or a failing log in plain language.
- Turning a defect you have already diagnosed into a clear, reproducible report.
- Converting between formats – a table of cases into Gherkin, a cURL into Rest Assured.
- Reviewing your own test code for things you stopped noticing.
Where it will cost you time
- Anything that needs to be true about YOUR system that you did not tell it. It will invent an endpoint, a field name or a button and describe it confidently.
- Counting and coverage claims. 'I have covered all boundary conditions' is a sentence, not a fact.
- Anything where being almost right is worse than nothing – a locator, a calculation, a regulation.
- Repeatability. The same prompt twice can give different answers, which is why a generated test must be reviewed and committed, not regenerated each run.
Prompting that gets usable output
Role : You are a senior QA engineer writing test cases for review.
Context : <paste the actual user story and acceptance criteria>
Rules : Only use fields named in the story. If something is unclear, list it as a
question instead of assuming it. Do not invent endpoints or UI elements.
Task : Write positive, negative and boundary cases.
Format : A markdown table - ID | Title | Preconditions | Steps | Expected | Type
Limit : No more than 15 cases. Prefer coverage over volume.
'If something is unclear, list it as a question instead of assuming it' is the single most valuable line in that prompt. It converts hallucination into a requirements question, which is work you wanted done anyway.
Reviewing the output – the three failure modes
- Invented: it names something that does not exist. Delete it and note what prompted it.
- Duplicated: three cases that are the same case in different words. Merge.
- Shallow: 'verify the page loads correctly'. Rewrite with a concrete expected result or throw it away.
A useful rule: if you would not accept the case from a junior tester, do not accept it from a model.
What never goes into a prompt
- Production data, customer names, real card or account numbers.
- Credentials, tokens or connection strings.
- Source code your contract does not allow you to share.
- Anything you would not paste into a public forum – unless you are on an instance your organisation controls and has approved.
Key points
- It is fluent, not correct – review everything that claims to be about your system.
- Tell it to ask questions rather than assume; you get requirements gaps instead of fiction.
- Generated tests get reviewed and committed, never regenerated per run.
- No production data, no credentials, ever.
Practise this on the free applications at jstestingacademy.co.in/qa-apps – no account needed.


