Main goal
Write prompts that produce useful, constrained, and testable outputs instead of vague generic text.
A practical QA-oriented prompt guide built around the exact frameworks and prompt habits we teach in the AI curriculum.
Write prompts that produce useful, constrained, and testable outputs instead of vague generic text.
State the role, task, context, constraints, and output format explicitly.
Test cases, bug summaries, code reviews, requirement analysis, and AI-assisted documentation.
Use this with AI basics, AI test generation, and LLM evaluation.
A strong prompt is structured, not just wordy.
Role: You are a senior QA engineer Task: Generate regression scenarios Context: Checkout flow with coupon logic Constraints: Include positive, negative, boundary cases Output: Markdown table
Zero-shot is faster; precise prompting is stronger for repeatable QA work.
Zero-shot: "Write test cases for login" Precise: "Generate 15 login test cases with priority, preconditions, steps, and expected result"
Give the model a professional stance that matches the task.
You are a senior SDET reviewing Playwright code. Focus on flakiness, locator stability, weak assertions, and maintainability.
Useful when the task needs situation, target, action, and result clarity.
Situation: Checkout flow changed Task: Identify regression risk Action: Generate focused test scenarios Result: Return a prioritized list
These frameworks help keep prompts specific and readable under pressure.
CLEAR: Context, Limitations, Expectations, Action, Result CRISP: Context, Role, Intent, Scope, Presentation
This QA-specific framework is useful for structured test design prompts.
Role Input Constraints Examples Process Output Tone
Reusable context blocks improve consistency across a team.
Application: e-commerce Users: admin, buyer Critical module: checkout Testing focus: coupon, address, payment, confirmation
Ask for predictable shapes so the output can be reviewed or reused programmatically.
Return JSON with: - title - priority - steps - expectedResult - riskArea
This is the kind of production-style prompt that usually works well.
You are a senior QA engineer. Analyze the following requirement. List assumptions, risks, missing details, and 20 test scenarios. Group results into positive, negative, boundary, and security.