Give AI a testing task with a source

updated December 5, 2026

A prompt is the instruction you give an AI assistant. Start with the decision you need. Include enough information for another tester to check the answer.

Put these fields in your prompt

Field What to give the assistant Mistake this helps prevent
Decision Say what you need to decide. For example, "Choose which cases to run." A long list when you need a choice.
Source Quote the approved rule. Give its version if you have one. Label observations separately. Treating the app's current behaviour as the rule.
User and starting state Say who acts, what they can do and what already exists. Steps the user cannot perform.
Change and scope Name the change. Say which work belongs in this review. Cases about a different feature.
Risk Describe what could go wrong for the user. Easy checks that miss the important failure.
Expected result Name who can see the result and where they can see it. Checking a message while the saved result is wrong.
Environment and limits For code, give the tool, language and version. For manual work, give device and access limits. Commands that do not exist or steps you cannot run.
Safe inputs Give only the approved examples the task needs. Remove passwords, customer details and private code. Sharing information that the task does not need.
Answer format Name the fields you want back. Ask for a reason beside each decision. An answer you cannot use in a review.
Unknowns and stopping point Ask the assistant to name missing facts. Say which action needs your approval. A guessed cause becoming a filed defect.

Copy this prompt

Help me decide [decision] about [change]. The approved rule is [rule and source].

These are my observations [notes]. The user starts with [state and permissions].

The main risk is [harm]. Check [result] from [whose view and where].

Use [tool, language, version or manual limits]. Use only [safe inputs].

Return [fields]. Give the source for each claim. Mark missing facts "Unknown."

Stop before [action that needs approval].

Worked examples

Use this paper example for all three prompts. A library rule lets a member cancel a book hold before collection. The book must then appear available to another member. The rule says nothing about fines.

Choose cases. A weak prompt says, "Generate cancellation tests." Try this instead:

Review these drafts: cancel a hold before collection, press Cancel before collection, and check a fine. For each, give a decision and its source. Name the result another member should see.

The first two drafts describe the same action. The fine needs a rule.

Draft a Jira ticket. A ticket is a work item. A weak prompt says, "File a database bug." Try this:

In these example notes, Sam saw "Hold cancelled." Jo refreshed the list and still saw the book on hold. Draft a title, steps, expected result and observed result. Leave cause and priority open. Stop before filing.

A supported title is "Book stays on hold for another member after cancellation."

Review an automated test. A weak prompt says, "Make the test pass." Try this:

Review this Playwright test written in TypeScript. Several books have a Cancel button. The draft chooses the first button and checks a message. The hold belongs to Fern Atlas. Explain how to identify that book and check availability from another member's view. Ask for missing page details.

A useful answer identifies both the book and the result to inspect.

Remember this

Give the assistant the rule you trust. Ask it to show where each expected result came from.

Next steps

In the course "Review Tests Written by AI", two real requests asked for a test of deleting a contact. Both test files missed the same Cancel bug. The free first lesson shows why: The test passes. That proves little.

In the course "Work With AI as a QA Engineer", a tool wrote 27 tests for a page with the wrong limit, and all 27 passed. The free first lesson shows what the request was missing: What the AI does not know about your feature

Put it into practice

Solve a graded problem: write a test, and we check it would catch a real bug.

Browse the problems →

Keep reading