Talking About TestingATT</>
AI-Assisted Testing for QAs

Score 100% on the quiz to continue

Lesson
Free Preview

Prompt engineering basics for testers

Write clear, context-rich prompts that get useful answers instead of vague ones.

A prompt is simply the instruction you give an AI assistant. Writing good prompts is the single most valuable AI skill you can build as a tester. The good news: it is mostly common sense, applied deliberately.

The anatomy of a good prompt 🧩

A useful prompt usually includes:

  1. Context: what is the situation, the app, the feature?
  2. Goal: what do you actually want?
  3. Format: how should the answer be structured?
  4. Constraints: anything to include, avoid, or focus on

You do not need all four every time, but the more of them you provide, the better the result.

From vague to great ✨

Vague:

Give me test cases.

Better:

I am testing a password-reset feature for a web app. Users enter their email and
receive a reset link. Write test cases covering the happy path, validation errors,
and security-related edge cases. Return them as a table with columns: Title, Steps,
Expected result.

The second prompt gives context (password reset), a goal (test cases), a format (a table), and constraints (happy path, validation, security). The answer will be something you can almost use as-is.

Prompting is a conversation, not a command 💬

Your first answer is rarely your best answer. If the response is generic or off-target, refine instead of giving up:

  • "Focus more on the error cases."
  • "Add edge cases around very long inputs and special characters."
  • "Rewrite this as a checklist a manual tester can follow."
👨‍🏫 Repeating the exact same prompt and expecting a different result is not prompting. Adding context, constraints, or an example is.

Ask for a format you can act on 📋

Asking for a specific shape, a table of test cases, a numbered checklist, a bug-report template, makes the output easier to review and drop straight into your work. Format is not cosmetic; it saves you real time.

Exercise 🎯

Pick any feature you know well. Write one vague prompt and one rich prompt for the same goal, run both, and compare the answers. Notice how much the extra context changes the result.

Suggested content 📚

👨‍🏫 A good prompt is the difference between a toy and a tool.

Quiz

Question 1 of 3
Score: 0

What makes a prompt more likely to produce a useful answer?

Score 100% on the quiz to continue