Examples, output formats and improving a prompt step by step
Show the assistant two sample answers, fix the shape of its reply, and then improve the prompt one small change at a time. Treat the first answer as a draft.
L1–L4 are part of the Pro pass
L0 Explain simply
Analogy: showing a baker a photo of the cake you want. Say "a nice cake" and you get a guess. Show a photo and the baker copies the shape, the colours and the size. Then you taste it and say "less sugar". The baker adjusts. After a few rounds you have the cake you wanted.
Daily List is a to-do list app. Tom, the tester, asks an assistant for test cases. They come back in a loose paragraph style. Mei, the test lead, pastes two finished test cases in the team's table layout. The new ones come back in that same layout.
The photo is a : a small sample in the prompt. The fixed shape of the reply is . And the tasting and adjusting is prompt iteration.
The picture has a limit. A baker has to see the cake to judge it. With an assistant, you must judge the content, not only the look. A neat table can still hold wrong rows.
(SYNTHETIC / TRAINING ONLY: Daily List and every person named here are made up.)
PLAIN WORDS · 1 in this section
- iteration
- a round of work; in Scrum, a sprint
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 Getting an assistant to answer in your layout and then improving the prompt in small, checked steps.
- Show a sample
- Fix the shape
- Taste the answer
- Change one thing
HOW THE PICTURE MAPS
| In the picture | In the software |
|---|---|
| The photo of the cake | The few-shot example |
| The cake tin that sets the shape | The structured output |
| Tasting and saying less sugar | Prompt iteration |
| A cake that looks right but tastes wrong | A neat table with wrong content |
| Two cakes from two recipes, same oven, same taster | A prompt comparison: same inputs, same counts, keep the better prompt |
| A friend says what she sees in the cake before she judges it | A screenshot prompt that lists what is seen first |
WHERE THIS PICTURE STOPS
- A baker can see the cake to judge it. With an assistant you must read the content, not only the look.
- A cake bakes the same way each time. An assistant can give a different answer on each run.
- A photo shows only the look. A sample can also pass on its mistakes.
- A friend sees the whole cake. A model sees only the picture you give it, so it can miss states that are not in the picture.
HOOK
Show it, shape it, taste it, adjust it.
REMEMBER IT THIS WAY
A story beat: one picture-line that carries the order or the cause.
Mei pastes two finished test cases in the team's table layout. The assistant's new test cases then come back in that same layout.
| In the trick | What it stands for |
|---|---|
| Two finished cases | A few-shot example, a small sample in the prompt |
| Table layout | The fixed shape of the reply |
A neat table can still hold wrong rows, and a sample can pass on its mistakes.
TELL A FRIEND
Show the assistant a photo of the answer you want, fix the shape, then taste and adjust one thing at a time.
OFTEN MIXED UP WITH Prompting for testers: role, task, context, constraints, format. The earlier lesson gives the five parts of a prompt. This lesson adds samples, a fixed reply shape and a loop of small changes.
Sources & standards — 8 sources
- Market practice
The Power (and Nuance) of Prompting (Vercel Academy) ↗ — Vercel · Few-shot prompting puts a few labelled examples in the prompt to show the pattern or format to follow (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
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
How to generate unit tests with GitHub Copilot: tips and examples (GitHub Blog) ↗ — GitHub · Name the method, ask for success, failure and edge cases, say which test framework you use, keep the code in view, and review the result (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
3 ways to use chain of thought and few-shot prompting (Stanford University IT training class) ↗ — Stanford University IT · A training class title names chain of thought and few-shot prompting as two prompt techniques; only the title was seen (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
Meta Prompting Guide: Automated Prompt Engineering for Large Language Models (IntuitionLabs) ↗ — IntuitionLabs · Meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat (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
A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Tasks (arXiv 2411.06284) ↗ — arXiv · Multimodal large language models take in more than text, such as images, in vision-language tasks; only the title and a short summary were seen (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 AI (CT-GenAI) Syllabus v1.1 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), version checked against the document's own front matter, read in full text: GenAI-1.1.4 (K2) write and run a prompt with a multimodal LLM; GenAI-1.2.1 (K2) key LLM capabilities for test tasks; GenAI-2.1.2 (K2) core prompting techniques; GenAI-3.3.1 (K2) the impact of task type and model use on energy consumption and CO2 emissions
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1), version checked against the document's own front matter. The url above is the mirror copy that was read, not a page of istqb.org, and the publisher's own page was not opened. Licence terms were not read, so put it in your own words and do not quote it.
PRACTISE AND KEEP
Sources for this topic — 12 sources
- Market practice
The Power (and Nuance) of Prompting (Vercel Academy) ↗ — Vercel · Few-shot prompting puts a few labelled examples in the prompt to show the pattern or format to follow (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
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
How to generate unit tests with GitHub Copilot: tips and examples (GitHub Blog) ↗ — GitHub · Name the method, ask for success, failure and edge cases, say which test framework you use, keep the code in view, and review the result (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
Certified Tester Testing with Generative AI (CT-GenAI) Syllabus v1.1 (International Software Testing Qualifications Board) ↗ — International Software Testing Qualifications Board (ISTQB) · Mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1, 27 April 2026), read in full text: prompt chaining is a core prompting technique (GenAI-2.1.2, K2, keyword list of chapter 2) and a way to split a complex prompt into steps and verify each output (section 3.1.3) (excerpts, pages not opened) | GenAI-1.1.4 (K2) write and run a prompt with a multimodal LLM; GenAI-1.2.1 (K2) key LLM capabilities for test tasks; GenAI-2.1.2 (K2) core prompting techniques; GenAI-3.3.1 (K2) the impact of task type and model use on energy consumption and CO2 emissions
Text read in full from a mirror copy of the publisher PDF (ISTQB syllabus CT-GenAI v1.1), version checked against the document's own front matter. The url above is the mirror copy that was read, not a page of istqb.org, and the publisher's own page was not opened. Licence terms were not read, so put it in your own words and do not quote it.
- Market practice
3 ways to use chain of thought and few-shot prompting (Stanford University IT training class) ↗ — Stanford University IT · A training class title names chain of thought and few-shot prompting as two prompt techniques; only the title was seen (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
Meta Prompting Guide: Automated Prompt Engineering for Large Language Models (IntuitionLabs) ↗ — IntuitionLabs · Meta prompting uses a prompt to produce a prompt template, which speeds up template writing for tasks that repeat (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
A Comprehensive Survey and Guide to Multimodal Large Language Models in Vision-Language Tasks (arXiv 2411.06284) ↗ — arXiv · Multimodal large language models take in more than text, such as images, in vision-language tasks; only the title and a short summary were seen (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
AI-generated test cases from user stories: an experimental research study (Thoughtworks) ↗ — Thoughtworks · An experiment on test cases made from user stories scored the output on correctness, coverage of acceptance criteria, duplication, wrongly written tests and ambiguity, and treated prompt improvement as repeated rounds (search excerpt, page not opened)
Found through a web search on 2026-10-25; 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
A Systematic Approach for Assessing Large Language Models' Test Case Generation Capability (arXiv 2502.02866) ↗ — arXiv (research paper) · A generated test case counts as valid only with inputs and an expected result, and as correct only if the real output matches the expected result (search excerpt, page not opened)
Found through a web search on 2026-10-25; the page was not opened (search excerpt, page not opened). Preprint. 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
ASTQB CT-GenAI sample questions ↗ — ASTQB / ATSQA (sample questions for the ISTQB CT-GenAI certification) · A sample question asks which measure shows how well a generated decision table followed the request, and another asks how to judge a model and improve prompts. Question wording was not read in full (search excerpt, page not opened)
Recorded from an earlier research shard (deep2-genai) in this project; 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.
- Market practice
Evaluating LLMs for Multimodal GUI Test Generation in Android Applications ↗ — Brazilian Computer Society (SBC), Brazilian Workshop on Software Testing (SAST) · Results varied with the form of the input, such as raw screenshots versus structured screen data. Little is known about how to structure such prompts (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.
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.