Prompting for testers: role, task, context, constraints, format
Write a request as if you were briefing a new colleague who knows nothing about your project. Learn the five parts of a good prompt and why each one earns its place.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: briefing a new colleague who knows nothing about your project. Imagine a clever person starts today. They know nothing about your product. You say: "test the login." They stare at you. They need to know which screen, which rule, who the result is for and how you want it written.
Daily List is a to-do list app. Tom, the tester, types "test the login" into an assistant. He gets a long, generic list. It has nothing about the Daily List rules.
So Tom writes a prompt like a briefing. It says who the assistant should act as, what to do, the facts it needs, the limits and the shape of the answer. The same assistant now gives a short, useful table.
The picture has a limit. A new colleague can ask you questions. An assistant often just answers with a guess. So you answer the questions before it asks.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)
PICTURE IT
The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.
THE REAL JOB Writing a request that gives an assistant what it needs, so the answer fits your product and is easy to check.
- Role and task
- Context
- Limits
- Format
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The new colleague | The assistant |
| The briefing you give | The prompt |
| The facts about the project | The context |
| The shape of the report you want back | The format |
WHERE THIS PICTURE STOPS
- A new colleague can ask you questions. An assistant often just guesses.
- A colleague learns your project over weeks. An assistant may not keep what you told it.
- A colleague takes the blame for a mistake. The tester still owns the result.
HOOK
Brief it like a new colleague.
REMEMBER IT THIS WAY
A sequence: the real steps, in order.
Brief the assistant by answering in order: who it acts as, what to do, which facts, what limits, what shape of answer.
| In the trick | What it stands for |
|---|---|
| Who and what | Who the assistant should act as, and what to do |
| Which facts | The facts it needs |
| What limits | The limits |
| What shape | The shape of the answer |
TELL A FRIEND
Write the request as a briefing for a clever new colleague who knows nothing about your project.
OFTEN MIXED UP WITH Tokens, context windows and what a prompt costs. The earlier lesson explains how much text an assistant can hold. This lesson explains what to put into that space.
Sources & standards — 4 sources
- Market practice
Prompting best practices (Claude Platform documentation) ↗ — Anthropic · Be clear and direct, explain the reason for a rule, give a few examples and separate parts of a prompt with tags (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Best practices for prompt engineering with the OpenAI API (OpenAI Help Center) ↗ — OpenAI · Put instructions first and separate them from the source text with delimiters; be specific about context, outcome, length, format and style; show the output format with an example (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Prompt engineering overview (Claude documentation) ↗ — Anthropic · Core techniques are being clear and direct, using examples and letting the tool think step by step; it assumes you already have success criteria (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester, Testing with Generative Artificial Intelligence, certification page ↗ — International Software Testing Qualifications Board (ISTQB) · Public overview of the specialist certificate: uses of large language models in testing, prompt design, managing risks of generative AI, and test tooling (search excerpt, page not opened) The syllabus text, read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), confirms the scope. Its chapters are an introduction to generative AI for software testing, prompt engineering, managing the risks of generative AI, LLM-powered test infrastructure, and deploying and integrating generative AI in test organisations.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Syllabus v1.0 approved July 2025; minor update v1.1. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
PRACTISE AND KEEP
Sources for this topic — 4 sources
- Market practice
Prompting best practices (Claude Platform documentation) ↗ — Anthropic · Be clear and direct, explain the reason for a rule, give a few examples and separate parts of a prompt with tags (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Best practices for prompt engineering with the OpenAI API (OpenAI Help Center) ↗ — OpenAI · Put instructions first and separate them from the source text with delimiters; be specific about context, outcome, length, format and style; show the output format with an example (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number; read at the time of writing. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Prompt engineering overview (Claude documentation) ↗ — Anthropic · Core techniques are being clear and direct, using examples and letting the tool think step by step; it assumes you already have success criteria (search excerpt, page not opened)
Found through a web search; the page was not opened (search excerpt, page not opened). Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
- Market practice
Certified Tester, Testing with Generative Artificial Intelligence, certification page ↗ — International Software Testing Qualifications Board (ISTQB) · Public overview of the specialist certificate: uses of large language models in testing, prompt design, managing risks of generative AI, and test tooling (search excerpt, page not opened) The syllabus text, read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), confirms the scope. Its chapters are an introduction to generative AI for software testing, prompt engineering, managing the risks of generative AI, LLM-powered test infrastructure, and deploying and integrating generative AI in test organisations.
Found through a web search; the page was not opened (search excerpt, page not opened). Version: Syllabus v1.0 approved July 2025; minor update v1.1. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.
Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.