Skip to main content

Claude/ChatGPT Prompt to Convert Manual QA Cases into Automated Tests

Test automation prompt: turn a manual QA checklist into a risk-prioritized regression suite with stable selectors, shared fixtures, and keep-manual flags.

Fill in the placeholders

Edit the values, then copy your finished prompt.

Your Prompt
prompt.txt

                                

What this prompt does

This prompt makes the model act as a senior QA automation engineer and convert a manual QA checklist into a maintainable automated suite, returning working tests rather than pseudocode. Four placeholders steer it: [framework] (the test framework), [app_type] (what is being tested), [selector_strategy] (how elements are located), and [qa_cases] (the manual checklist to convert).

The structure works because the trap when converting manual QA is automating everything, including cases cheaper to eyeball. By asking it to prioritise [qa_cases] by risk times frequency and do the highest-value ones first, name each test as an observable behaviour, use shared fixtures and a page-object layer, adopt [selector_strategy] over brittle CSS/XPath, flag cases that should stay manual with a reason, and note where each test belongs in CI, the prompt builds a small stable suite rather than hundreds of brittle tests nobody trusts. Targeting [app_type] shapes the helper layer to the kind of UI you are testing, and pasting real [qa_cases] is what lets the prioritisation reflect your checklist rather than a generic assumption.

When to use it

  • You have a manual QA checklist and want it turned into an automated regression suite.
  • You want cases prioritised by risk and frequency, not automated indiscriminately.
  • You need tests named as observable behaviours rather than implementation details.
  • You want a shared fixture and page-object layer to cut duplication.
  • You need a robust [selector_strategy] so the suite survives refactors.
  • You want honest flags on cases that should stay manual, with reasons.

Example output

Expect a prioritised list first (the [qa_cases] ranked by risk times frequency), then automated tests in [framework] for [app_type] covering the highest-value cases, using shared fixtures, a page-object or helper layer, and [selector_strategy] for locators. Alongside is a keep-manual list naming the cases better left to humans (exploratory, visual judgment, A/B-dependent) with a reason for each, plus a short note on where each automated test belongs in the CI pipeline.

Pro tips

  • Be honest about the keep-manual list — a small stable suite of high-risk flows beats hundreds of brittle tests nobody trusts.
  • Use [selector_strategy] like data-testid and role-based locators instead of brittle CSS/XPath so the suite survives UI refactors.
  • Paste the real [qa_cases] so prioritisation reflects your actual checklist, not a generic guess.
  • Name tests by observable behaviour, not implementation, so they stay meaningful as the code changes underneath.
  • Lean on the shared fixture and page-object layer to cut duplication; copy-pasted setup is what makes automated suites rot.
  • Start with the top of the risk-times-frequency list and ship those first, so the suite is delivering value before you reach lower-priority cases.
  • Use the CI-placement note to decide what runs on every PR versus a nightly job, keeping the fast feedback loop genuinely fast.

Frequently Asked Questions

Will it automate every case on my checklist?
No, and that is intentional. It prioritises `[qa_cases]` by risk and frequency and explicitly flags cases that should stay manual — exploratory, visual-judgment, or A/B-dependent ones — with a reason, because automating those usually costs more than it saves.
How does it keep tests from breaking on UI changes?
It uses your `[selector_strategy]`, such as data-testid attributes and role-based locators, instead of brittle CSS or XPath. Stable selectors let the suite survive refactors that would otherwise break tests tied to markup structure.
Does it cut down on duplicated test code?
Yes. Deliverable three uses shared fixtures and a page-object or helper layer so common setup and interactions live in one place, which keeps the suite maintainable instead of degrading into copy-pasted, fragile tests.
Can I use a framework other than Playwright?
Yes. Set `[framework]` to your tool and the generated tests follow it. The default is Playwright with TypeScript, but the prioritisation, naming, and page-object structure apply regardless of the framework you choose.
Engr Mejba Ahmed

Need this built for real?

Engr Mejba Ahmed

AI Developer · Software Engineer

I'm Mejba — I design and ship production AI systems, automations, and full-stack apps. If you want this turned into a working solution for your team, let's talk.

More in Testing & QA Automation Prompts

Engr Mejba Ahmed

Engr Mejba Ahmed

Claude Code Expert · Online

👋

Hey there!

Quick Actions

WhatsApp Instant reply

Chat on WhatsApp

+880 1723 741224 · Instant reply

Popular Questions

Engr Mejba Ahmed is connected
Engr Mejba Ahmed is typing...
Engr Mejba Ahmed avatar

✉ Want me to follow up? Drop your email

Engr Mejba Ahmed avatar

📞 Connect Directly

Choose how you'd like to reach me

WhatsApp

+880 1723 741224

Email

[email protected]

✓ Details sent! I'll get back to you shortly.

Powered by OpenAI

335+

Blog Posts

25

AI Courses

63

Projects

Services & Expertise

Pricing & Process

Learning & Resources

Connect & Support