{"id":23668,"date":"2025-08-23T11:49:12","date_gmt":"2025-08-23T04:49:12","guid":{"rendered":"https:\/\/shadeofhue.com\/?page_id=23668"},"modified":"2025-08-27T09:14:42","modified_gmt":"2025-08-27T02:14:42","slug":"prompt-engineering","status":"publish","type":"page","link":"https:\/\/shadeofhue.com\/vi\/prompt-engineering\/","title":{"rendered":"Prompt Engineering"},"content":{"rendered":"<div class=\"wp-block-coblocks-accordion engineer-prompt\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Prompt Engineering FREE Curated Resources<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h2 class=\"wp-block-heading\">BASIC VIDEO TUTORIALS<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Mastering Prompts: The Key to Getting What You Need from ChatGPT<\/strong> A short introductory video on prompt engineering. to get what you need from ChatGPT.<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/academy.openai.com\/public\/videos\/mastering-prompts-the-key-to-getting-what-you-need-from-chatgptmastering-prompts-the-key-to-getting-what-you-need-from-chatgpt-2025-03-20\n<\/div><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ChatGPT for Everyone from <a href=\"http:\/\/learnprompting.org\">learnprompting.org<\/a><\/strong> This one-hour, self-paced course provides an introduction to ChatGPT, a chatbot app built by OpenAI and powered by their models that can process text, image, and audio inputs You&#8217;ll learn how to set up an account, write your first prompt, and explore pr<strong>actical applications.<\/strong> Designed for beginners, this course requires no prior experience with AI <a href=\"https:\/\/learnprompting.org\/courses\/chatgpt-for-everyone\">https:\/\/learnprompting.org\/courses\/chatgpt-for-everyone<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">MASTERING PROMPTS<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Google Cloud\u2014Prompt Engineering: Overview and Guide?<\/strong> This Google Cloud guide introduces prompt engineering as the practice of crafting precise, context-rich prompts to guide AI models\u2014especially large language models\u2014toward accurate, relevant, and safe outputs. It explains how well-structured prompts improve model performance, reduce bias, and enhance control and user experience. By combining clear instructions, examples, and contextual framing, prompt engineering becomes essential for getting reliable results from generative AI. The article also points to tools and resources, including best practices and a free Vertex AI trial, encouraging hands-on experimentation to refine prompt design and better align AI behavior with user intent. <a href=\"https:\/\/cloud.google.com\/discover\/what-is-prompt-engineering?hl=en\">https:\/\/cloud.google.com\/discover\/what-is-prompt-engineering?hl=en<\/a><\/li>\n\n\n\n<li><strong>Gemini for Google Workspace\u2014Prompting Guide 101<\/strong> This \u201cGemini for Google Workspace Prompting Guide 101\u201d is a quick-start handbook offering practical strategies for crafting effective prompts when using Gemini across Workspace apps like Gmail, Docs, Sheets, Slides, and Meet. It introduces a four-part prompt framework\u2014Persona, Task, Context, Format\u2014and provides six core tips: use natural language; be specific and iterative; stay concise; treat prompting as a dialogue; leverage your own documents; and let Gemini improve your prompts. Packed with role-based scenarios and examples, the guide teaches users how to boost productivity and creativity while maintaining privacy and accuracy. <a href=\"https:\/\/services.google.com\/fh\/files\/misc\/gemini-for-google-workspace-prompting-guide-101.pdf\">https:\/\/services.google.com\/fh\/files\/misc\/gemini-for-google-workspace-prompting-guide-101.pdf<\/a><\/li>\n\n\n\n<li><strong>Prompt Engineering by Lee Boonstra, Google<\/strong> Prompt Engineering guide dives deep into advanced techniques for guiding large AI models via API prompts. It covers zero\u2011, one\u2011, and few\u2011shot prompting; sampling controls like temperature, top\u2011K, and top\u2011P; structured prompting using system\/context\/role templates; and advanced reasoning patterns such as chain\u2011of\u2011thought, tree\u2011of\u2011thought, step\u2011back, self\u2011consistency, and ReAct. The guide also explores automating prompt refinement and code-oriented interactions (e.g., debugging, translation), plus practical best practices like clarity, specificity, dynamic variables, and iteration. Packed with real\u2011world examples and tool configurations, it\u2019s a comprehensive reference for engineering reliable, and high\u2011quality LLM outputs. <a href=\"https:\/\/drive.google.com\/file\/d\/1AbaBYbEa_EbPelsT40-vj64L-2IwUJHy\/view\">https:\/\/drive.google.com\/file\/d\/1AbaBYbEa_EbPelsT40-vj64L-2IwUJHy\/view<\/a><\/li>\n\n\n\n<li><strong>GPT-4.1 Prompting Guide, OpenAI<\/strong> This article highlights effective prompting strategies for GPT-4.1, which improves on GPT-4o in coding, instruction following, and long-context understanding. Drawing from internal testing, it shares best practices like writing clear, specific prompts and including contextual examples. GPT-4.1 is more literal and instruction-sensitive than earlier models, so prompts may need adjustments to align behavior. Its high steerability means a single, direct sentence can often redirect output. The guide includes practical examples and stresses that prompt engineering is an empirical, iterative process. Success depends on experimentation, evaluation, and refinement to ensure outputs meet expectations in real-world applications. <a href=\"https:\/\/cookbook.openai.com\/examples\/gpt4-1_prompting_guide\">https:\/\/cookbook.openai.com\/examples\/gpt4-1_prompting_guide<\/a><\/li>\n\n\n\n<li><strong>Anthrop\\c Developer Platform\u2014Prompt Engineering:<\/strong> This Anthropic guide offers a structured overview of prompt engineering for building with Claude. It begins by emphasizing the importance of defining success criteria and establishing empirical tests before refining prompts. The guide then outlines a progression of techniques\u2014from using the prompt generator and templates to being clear, providing examples, enabling chain-of-thought reasoning, applying XML tags, assigning roles, pre\u2011filling responses, chaining complex prompts, and managing long contexts. It also highlights broader strategies, such as evaluating prompts, improving guardrails to reduce hallucinations, maintain consistency, and prevent prompt leaks. Overall, it frames prompt engineering as a powerful, efficient, and flexible alternative to fine-tuning. <a href=\"https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/overview\">https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/overview<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>OPTIMIZING PROMPTS<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Anthropic prompt generator:<\/strong> This Anthropic guide details the <strong>Prompt Generator<\/strong> tool for Claude, designed to tackle the \u201cblank page\u201d problem by automatically creating high-quality prompt templates tailored to users\u2019 tasks. Compatible across Claude models\u2014including those with extended reasoning\u2014it uses best practices like role-setting, chain-of-thought reasoning, XML-delimited variables, and prefilled examples to build precise templates. Users can access it via the Anthropic Console or a Colab notebook (API key needed), generating editable templates as a launchpad for developing and iterating prompts. It\u2019s particularly effective for rapid prototyping, guiding prompt engineers\u2014from newcomers to experts\u2014toward best-in-class, production-ready prompt structures. <a href=\"https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/prompt-generator\">https:\/\/docs.anthropic.com\/en\/docs\/build-with-claude\/prompt-engineering\/prompt-generator<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>PROMPT LIBRARY<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Anthropic prompt library:<\/strong> This Anthropic \u201cPrompt Library\u201d offers a curated collection of expertly crafted prompts for both personal and business use cases. Each entry includes a ready-to-use prompt template\u2014such as \u201cCorporate Clairvoyant\u201d (summarize long reports into memos), \u201cMotivational Muse\u201d (generate personalized affirmations), or \u201cLesson Planner\u201d (create structured lesson plans)\u2014and a sample input and output to guide users. Designed for easy import into the Anthropic Console, these templates cover tasks like data analysis, creative writing, code help, mindfulness guidance, and more. Ideal for reducing experimentation time, the library serves as a springboard for prompt engineering\u2014supporting rapid prototyping and consistent, high-quality interactions with Claude. <a href=\"https:\/\/docs.anthropic.com\/en\/resources\/prompt-library\/library\">https:\/\/docs.anthropic.com\/en\/resources\/prompt-library\/library<\/a><\/li>\n\n\n\n<li>ShumerPrompt Library: ShumerPrompt is a community-driven AI prompt library and generator that helps users discover, share, and improve prompts for models like ChatGPT, GPT\u20114, and o3 Pro. With a searchable catalog of categorized, high-rated prompts\u2014ranging from content creation to research and strategy\u2014it enables rapid access to proven templates. Users can also generate new prompts automatically and refine them using the platform\u2019s built\u2011in prompt improver. Featuring a clean interface, collaboration tools, a leaderboard, and a playground for testing prompts in real time, ShumerPrompt is ideal for developers, creators, marketers, and anyone aiming to streamline AI workflows. <a href=\"https:\/\/shumerprompt.com\/\">https:\/\/shumerprompt.com\/<\/a><\/li>\n<\/ul>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Prompt Tips<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Prompt Framework (or Structure)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><\/p>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 1 &#8211; Framework\u2014R-T-F<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h3 class=\"wp-block-heading\"><strong>R\u2013T\u2013F (Role \u2013 Task \u2013 Format)<\/strong><\/h3>\n\n\n\n<p><strong>Prompting Structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Act as a (ROLE)<\/strong><\/li>\n\n\n\n<li><strong>Create a (TASK)<\/strong><\/li>\n\n\n\n<li><strong>Show as a (FORMAT)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2705 <strong>QA Applications:<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>ROLE (Act as a QA\/Testing)<\/strong><\/h3>\n\n\n\n<p>Choose a role grounded in the testing lifecycle.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test Automation Engineer<\/li>\n\n\n\n<li>QA Lead<\/li>\n\n\n\n<li>Test Data Specialist<\/li>\n\n\n\n<li>Performance Tester<\/li>\n\n\n\n<li>AI QA Staff<\/li>\n\n\n\n<li>Bug Triage Facilitator<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>TASK (Create a testing artifact)<\/strong><\/h3>\n\n\n\n<p>Focus on what you want to generate or analyze.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Requirement refinement<\/li>\n\n\n\n<li>Test Cases<\/li>\n\n\n\n<li>Test Plan Summary<\/li>\n\n\n\n<li>Bug Report<\/li>\n\n\n\n<li>Test Data Matrix<\/li>\n\n\n\n<li>Regression Test Checklist<\/li>\n\n\n\n<li>Risk-Based Prioritization List<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>FORMAT (Show as)<\/strong><\/h3>\n\n\n\n<p>Define how results should be presented.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Table (e.g., test cases)<\/li>\n\n\n\n<li>Gherkin Syntax<\/li>\n\n\n\n<li>JSON Schema<\/li>\n\n\n\n<li>Step-by-Step Procedure<\/li>\n\n\n\n<li>Bullet List (e.g., acceptance criteria)<\/li>\n\n\n\n<li>Timeline (e.g., sprint testing phases)<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Add Context (Input Details)<\/strong><\/h3>\n\n\n\n<p>Feed in real artifacts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>User stories or requirements<\/li>\n\n\n\n<li>Screenshots or UI descriptions<\/li>\n\n\n\n<li>API specs or endpoints<\/li>\n\n\n\n<li>Past defect trends or test coverage gaps<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Set Guidelines (Constraints &amp; Style)<\/strong><\/h3>\n\n\n\n<p>Clarify what&#8217;s in\/out of scope:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Exclude exploratory tests<\/li>\n\n\n\n<li>Only include high-severity test cases<\/li>\n\n\n\n<li>Output in 10 lines or fewer<\/li>\n\n\n\n<li>Use concise titles only<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 <strong>Example 1: UI Functional Testing<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Act as a Test Automation Engineer and create a set of Selenium-compatible test cases based on [this login form&#8217;s] behavior.<\/p>\n\n\n\n<p>Show the results as a <strong>table<\/strong> with columns: <code>Test Case ID<\/code>, <code>Description<\/code>, <code>Steps<\/code>, <code>Expected Result<\/code>.<\/p>\n\n\n\n<p>The login form accepts email\/password, shows errors for invalid input, and locks after 5 failed attempts.<\/p>\n\n\n\n<p>Use concise phrasing. Skip any performance or security tests.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 <strong>Example 2: AI-Generated Test Data<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Act as a Test Data Specialist and generate a boundary value test data set for a date-of-birth input field (valid range: Jan 1, 1900 to Dec 31, 2020).<\/p>\n\n\n\n<p>Present as a <strong>JSON array<\/strong> of inputs, including valid\/invalid edge cases.<\/p>\n\n\n\n<p>Include context labels (<code>\"valid\"<\/code>, <code>\"too early\"<\/code>, <code>\"too late\"<\/code>) for each item.<\/p>\n\n\n\n<p>Keep the set under 10 items.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd39 <strong>Example 3: Agile Test Planning<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Act as a QA Lead and create a test coverage summary for this user story:<\/p>\n\n\n\n<p><em>\u201cAs a user, I want to reset my password using email verification so I can regain access if I forget it.\u201d<\/em><\/p>\n\n\n\n<p>Skip non-functional and localization aspects. Use plain language.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 2 &#8211; Framework\u2014T-A-G<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h3 class=\"wp-block-heading\"><strong>T\u2013A\u2013G (Task \u2013 Action \u2013 Goal)<\/strong><\/h3>\n\n\n\n<p><strong>Prompting Structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Define the (TASK)<\/strong><\/li>\n\n\n\n<li><strong>State the (ACTION)<\/strong><\/li>\n\n\n\n<li><strong>Clarify the (GOAL)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2705 <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>TASK:<\/strong> Evaluate smoke test coverage for a new build<\/li>\n\n\n\n<li><strong>ACTION:<\/strong> Act as a QA Lead and analyze the smoke suite for gaps<\/li>\n\n\n\n<li><strong>GOAL:<\/strong> Ensure core functionality is verified before any full regression run<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>The task is to evaluate smoke test coverage for the new build.<\/p>\n\n\n\n<p>Act as a QA Lead and identify any missing core test scenarios.<\/p>\n\n\n\n<p>Goal is to ensure critical functionality is always verified before running full regression.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 3 &#8211; Framework\u2014B-A-B<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h3 class=\"wp-block-heading\"><strong>B\u2013A\u2013B (Before \u2013 After \u2013 Bridge)<\/strong><\/h3>\n\n\n\n<p><strong>Prompting Structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Explain problem (BEFORE)<\/strong><\/li>\n\n\n\n<li><strong>State outcome (AFTER)<\/strong><\/li>\n\n\n\n<li><strong>Ask to (BRIDGE)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2705 <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>BEFORE:<\/strong> We\u2019ve been releasing builds with untested edge cases<\/li>\n\n\n\n<li><strong>AFTER:<\/strong> We want confidence that all key boundary and edge conditions are covered before release<\/li>\n\n\n\n<li><strong>BRIDGE:<\/strong> Generate a checklist of edge case test scenarios based on current feature specs<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>We\u2019ve been missing edge case bugs in production.<\/p>\n\n\n\n<p>We want to ensure all boundary and edge conditions are tested in QA before release.<\/p>\n\n\n\n<p>Generate a checklist of edge case test scenarios based on this feature spec.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 4 &#8211; Framework\u2014C-A-R-E<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>C\u2013A\u2013R\u2013E (Context \u2013 Action \u2013 Result \u2013 Example)<\/strong><\/p>\n\n\n\n<p><strong>Prompting Structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Give the (CONTEXT)<\/strong><\/li>\n\n\n\n<li><strong>Describe the (ACTION)<\/strong><\/li>\n\n\n\n<li><strong>Clarify the (RESULT)<\/strong><\/li>\n\n\n\n<li><strong>Give an (EXAMPLE)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2705 <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CONTEXT:<\/strong> We&#8217;re onboarding a new test team to support our legacy insurance web app<\/li>\n\n\n\n<li><strong>ACTION:<\/strong> Create a test strategy outline that balances exploratory testing and automation<\/li>\n\n\n\n<li><strong>RESULT:<\/strong> Reduce onboarding time and boost defect detection rate in the first sprint<\/li>\n\n\n\n<li><strong>EXAMPLE:<\/strong> A good example is Atlassian\u2019s hybrid QA onboarding playbook<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>We\u2019re onboarding a new QA team for a legacy insurance app.<\/p>\n\n\n\n<p>Create a test strategy outline that mixes exploratory testing and targeted automation.<\/p>\n\n\n\n<p>The result should be faster onboarding and improved defect detection in Sprint 1.<\/p>\n\n\n\n<p>Use Atlassian\u2019s QA onboarding playbook as a reference.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 5 &#8211; Framework\u2014R-I-S-E<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>R\u2013I\u2013S\u2013E (Role \u2013 Input \u2013 Steps \u2013 Expectation)<\/strong><\/p>\n\n\n\n<p><strong>Prompting Structure:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Specify the (ROLE)<\/strong><\/li>\n\n\n\n<li><strong>Describe the (INPUT)<\/strong><\/li>\n\n\n\n<li><strong>Ask for the (STEPS)<\/strong><\/li>\n\n\n\n<li><strong>Describe the (EXPECTATION)<\/strong><\/li>\n<\/ul>\n\n\n\n<p>\u2705 <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>ROLE:<\/strong> You are an AI QA Analyst<\/li>\n\n\n\n<li><strong>INPUT:<\/strong> You\u2019re given a fine-tuned LLM used to generate UI test cases<\/li>\n\n\n\n<li><strong>STEPS:<\/strong> Outline the validation process to ensure test case quality and grounding<\/li>\n\n\n\n<li><strong>EXPECTATION:<\/strong> Ensure at least 95% of generated tests meet acceptance criteria before integration<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You are an AI QA Analyst.<\/p>\n\n\n\n<p>You\u2019re validating a fine-tuned LLM that generates UI test cases.<\/p>\n\n\n\n<p>Provide a step-by-step process to evaluate prompt effectiveness and test case quality.<\/p>\n\n\n\n<p>Expectation is that 95%+ of outputs meet defined test acceptance criteria before deployment.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 6 &#8211; Framework\u2014E-R-A<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>E.R.A<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>E \u2013 Expectation:<\/strong> Describe the desired result<\/li>\n\n\n\n<li><strong>R \u2013 Role:<\/strong> Specify System\u2019s role<\/li>\n\n\n\n<li><strong>A \u2013 Action:<\/strong> Specify needed actions<\/li>\n<\/ul>\n\n\n\n<p>\ud83e\uddea <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Expectation:<\/strong> A prioritized list of tests for a checkout flow<\/li>\n\n\n\n<li><strong>Role:<\/strong> You are a QA Strategist<\/li>\n\n\n\n<li><strong>Action:<\/strong> Analyze user stories and identify the top test cases by business risk and usage frequency<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I need a priority-based test list for our checkout flow.<\/p>\n\n\n\n<p>You are a QA Strategist.<\/p>\n\n\n\n<p>Review the feature description and suggest the top test cases based on usage and risk.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 7 &#8211; Framework\u2014R-A-C-E<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>R.A.C.E<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>R \u2013 Role:<\/strong> Specify System\u2019s role<\/li>\n\n\n\n<li><strong>A \u2013 Action:<\/strong> Detail the necessary action<\/li>\n\n\n\n<li><strong>C \u2013 Context:<\/strong> Provide situational details<\/li>\n\n\n\n<li><strong>E \u2013 Expectation:<\/strong> Describe the expected outcome<\/li>\n<\/ul>\n\n\n\n<p>\ud83e\uddea <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Role:<\/strong> Test Data Generator<\/li>\n\n\n\n<li><strong>Action:<\/strong> Generate boundary value inputs for a credit card expiry date field<\/li>\n\n\n\n<li><strong>Context:<\/strong> Acceptable date range is current month through next 5 years<\/li>\n\n\n\n<li><strong>Expectation:<\/strong> 6\u20138 labeled test inputs (valid, invalid, expired)<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You are a Test Data Generator.<\/p>\n\n\n\n<p>Create boundary value test inputs for a credit card expiration field.<\/p>\n\n\n\n<p>Date range is from current month to 5 years in the future.<\/p>\n\n\n\n<p>Return test inputs labeled as valid\/invalid\/expired.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 8 &#8211; Framework\u2014C-O-A-S-T<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>C.O.A.S.T<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>C \u2013 Context:<\/strong> Set the stage<\/li>\n\n\n\n<li><strong>O \u2013 Objective:<\/strong> Describe the goal<\/li>\n\n\n\n<li><strong>A \u2013 Actions:<\/strong> Explain needed steps<\/li>\n\n\n\n<li><strong>S \u2013 Steps:<\/strong> Describe the situation<\/li>\n\n\n\n<li><strong>T \u2013 Task:<\/strong> Outline the task<\/li>\n<\/ul>\n\n\n\n<p>\ud83e\uddea <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Context:<\/strong> A new payment gateway is being integrated<\/li>\n\n\n\n<li><strong>Objective:<\/strong> Ensure no critical bugs in the payment flow<\/li>\n\n\n\n<li><strong>Actions:<\/strong> Write and execute API and UI test cases<\/li>\n\n\n\n<li><strong>Steps:<\/strong> Cover success\/failure, edge cases (timeout, currency mismatch)<\/li>\n\n\n\n<li><strong>Task:<\/strong> Design a comprehensive test suite<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>We\u2019re integrating a new payment gateway.<\/p>\n\n\n\n<p>Goal is to ensure payment flow works with no critical bugs.<\/p>\n\n\n\n<p>Write test cases to cover API and UI behavior including edge conditions.<\/p>\n\n\n\n<p>Task: Design the test suite needed for go-live confidence.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 9 &#8211; Framework\u2014T-R-A-C-E<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>T.R.A.C.E<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>T \u2013 Task:<\/strong> Define the task<\/li>\n\n\n\n<li><strong>R \u2013 Role:<\/strong> Describe the System\u2019s role<\/li>\n\n\n\n<li><strong>A \u2013 Action:<\/strong> State the required action<\/li>\n\n\n\n<li><strong>C \u2013 Context:<\/strong> Provide the situation<\/li>\n\n\n\n<li><strong>E \u2013 Expectation:<\/strong> Illustrate with an example<\/li>\n<\/ul>\n\n\n\n<p>\ud83e\uddea <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Task:<\/strong> Generate performance test scenarios<\/li>\n\n\n\n<li><strong>Role:<\/strong> You\u2019re a Performance Test Engineer<\/li>\n\n\n\n<li><strong>Action:<\/strong> Create load and stress test plans for a job board site<\/li>\n\n\n\n<li><strong>Context:<\/strong> Peak usage is 50k users\/hour during major hiring events<\/li>\n\n\n\n<li><strong>Expectation:<\/strong> Example: spike test during 5-minute window of 10x traffic<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Task: Generate load\/stress test cases for a job board platform.<\/p>\n\n\n\n<p>You\u2019re a Performance Test Engineer.<\/p>\n\n\n\n<p>Simulate peak loads around hiring spikes (50k users\/hour).<\/p>\n\n\n\n<p>Show an example spike test where traffic increases 10x over 5 mins.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 10 &#8211; Framework\u2014R-O-S-E<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>R.O.S.E.S<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>R \u2013 Role:<\/strong> Specify System\u2019s role<\/li>\n\n\n\n<li><strong>O \u2013 Objective:<\/strong> State the goal or aim<\/li>\n\n\n\n<li><strong>S \u2013 Steps:<\/strong> Describe the situation<\/li>\n\n\n\n<li><strong>E \u2013 Expected Solution:<\/strong> Define the outcome<\/li>\n\n\n\n<li><strong>S \u2013 Scenario:<\/strong> Ask for actions needed to reach the solution<\/li>\n<\/ul>\n\n\n\n<p>\ud83e\uddea <strong>QA Example:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Role:<\/strong> You are an AI QA Coach<\/li>\n\n\n\n<li><strong>Objective:<\/strong> Help testers improve test case quality<\/li>\n\n\n\n<li><strong>Steps:<\/strong> Many test cases today are vague or miss key validation steps<\/li>\n\n\n\n<li><strong>Expected Solution:<\/strong> A practical guide or checklist to coach them<\/li>\n\n\n\n<li><strong>Scenario:<\/strong> Provide actions testers can take to write clearer, more effective test cases with AI support<\/li>\n<\/ul>\n\n\n\n<p>\ud83d\udce5 <strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You are an AI QA Coach.<\/p>\n\n\n\n<p>Goal is to improve how testers write test cases using the LLM.<\/p>\n\n\n\n<p>Current issue: test cases lack clarity and miss validations.<\/p>\n\n\n\n<p>Expected solution: A checklist or guide to improve them.<\/p>\n\n\n\n<p>Scenario: What specific actions should testers take to use the LLM more effectively in writing strong test cases?<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n<\/div>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Prompt Pattern<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><\/p>\n\n\n\n<div class=\"wp-block-coblocks-accordion\">\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 1 &#8211; Pattern\u2014Flipped Interaction<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I would like you to ask me questions to achieve X<\/li>\n\n\n\n<li>You should ask questions until condition Y is met or you can effectively achieve this goal<\/li>\n\n\n\n<li>(Optional) Ask me the questions one at a time, two at a time, ask me the first question, etc.<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate goal, such as \u201ccreating a meal plan\u201d or \u201ccreating variations of my marketing materials.\u201d You should specify when to stop asking questions with Y. Examples are \u201cuntil you have sufficient information about my audience and goals\u201d or \u201cuntil you know what I like to eat and my caloric targets.\u201d<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I would like you to ask me questions to help me create variations of my test planning materials. You should ask questions until you have sufficient information about my current draft requirements, user stories and goals. Ask me the first question.<\/li>\n\n\n\n<li>I would like you to ask me questions to help me diagnose a problem with my Internet. Ask me questions until you have enough information to identify the two most likely causes. Ask me one question at a time. Ask me the first question.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. QA Test Case Variant Generation (Based on First Prompt)<\/strong><\/h3>\n\n\n\n<p><strong>Original:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like you to ask me questions to help me create&#8230;<\/p>\n<\/blockquote>\n\n\n\n<p><strong>QA Adaptation or Variation:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like you to ask me questions to help me generate variations of test cases based on a user story or feature description.<\/p>\n\n\n\n<p>Your goal is to collect enough information about the <strong>feature behavior, input constraints, acceptance criteria, and edge cases<\/strong> so you can produce well-grounded test case variations.<\/p>\n\n\n\n<p>Ask one question at a time until you have enough detail to proceed.<\/p>\n\n\n\n<p>Ask me the <strong>first question.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p>\ud83e\uddea <strong>Use Case:<\/strong> Great for refining test inputs before test case generation, especially when using LLM-powered AI assistants\/agents to work from vague requirements or exploratory inputs.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. QA Root Cause Exploration (Based on Second Prompt)<\/strong><\/h3>\n\n\n\n<p><strong>Original:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like you to ask me questions to help me diagnose a problem with my Internet&#8230;<\/p>\n<\/blockquote>\n\n\n\n<p><strong>QA Adaptation or Variation:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like you to ask me questions to help me diagnose a defect or test failure in our software.<\/p>\n\n\n\n<p>Ask questions to narrow down the <strong>root cause<\/strong>, based on symptoms like error messages, environment behavior, and test results.<\/p>\n\n\n\n<p>Your goal is to identify the <strong>two most likely causes<\/strong> of the issue.<\/p>\n\n\n\n<p>Ask one question at a time to gather just enough context.<\/p>\n\n\n\n<p>Ask me the <strong>first question.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p>\ud83e\uddea <strong>Use Case:<\/strong> Ideal for debugging failed test runs, flaky tests, or failed CI builds \u2014 especially when combined with a log parser or trace summarizer assistant.<\/p>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 2 &#8211; Pattern\u2014Refinement<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ul class=\"wp-block-list\">\n<li>From now on, whenever I ask a question, suggest a better version of the question to use instead<\/li>\n\n\n\n<li>(Optional) Prompt me if I would like to use the better version instead Examples:\n<ul class=\"wp-block-list\">\n<li>From now on, whenever I ask a question, suggest a better version of the question to use instead<\/li>\n\n\n\n<li>From now on, whenever I ask a question, suggest a better version of the question and ask me if I would like to use it instead<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Tailored Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whenever I ask a question about dieting, suggest a better version of the question that emphasizes healthy eating habits and sound nutrition. Ask me for the first question to refine.<\/li>\n\n\n\n<li>Whenever I ask a question about who is the greatest of all time (GOAT), suggest a better version of the question that puts multiple players unique accomplishments into perspective Ask me for the first question to refine.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f <strong>General Instruction (QA-Specific Version)<\/strong><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, whenever I ask a question related to software testing or QA, suggest a refined version of the question that improves clarity, adds relevant context (e.g., system type, test level, constraints), or improves the quality of test-related outputs.<\/p>\n\n\n\n<p>Optionally, ask me if I\u2019d like to use the improved version instead.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udca1 Tailored QA Examples<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Example 1: General QA Inquiry<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask a question about testing, suggest a better version of the question that:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Specifies the test type (e.g., functional, performance, security),<\/li>\n\n\n\n<li>Identifies the test artifact (e.g., UI, API, user story), and<\/li>\n\n\n\n<li>Helps elicit <strong>high-quality<\/strong>, <strong>actionable<\/strong> answers from LLM-powered AI assistants or agents. Ask me for the first testing question to refine.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Example 2: Test Case Design<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask for help writing test cases, suggest a better version that clarifies:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The input artifact (e.g., requirement, feature spec),<\/li>\n\n\n\n<li>The expected format (e.g., table, Gherkin),<\/li>\n\n\n\n<li>And the desired coverage (e.g., positive, negative, edge cases). Prompt me to rephrase it before generating test cases.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Example 3: Bug Reporting<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask how to describe a bug, suggest a better version that includes:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The environment and steps to reproduce,<\/li>\n\n\n\n<li>What was expected vs what occurred,<\/li>\n\n\n\n<li>And the severity or impact on users. Ask me if I want to use the improved version to create the report.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Example 4: Root Cause Exploration<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask what caused a test failure or flaky behavior, suggest a better version that includes:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The type of test (manual\/automated),<\/li>\n\n\n\n<li>The symptoms or logs observed,<\/li>\n\n\n\n<li>And whether it was environment-, data-, or logic-related. Ask me if I want to proceed with the refined diagnostic prompt.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddea Example 5: LLM Prompt Tuning (for QA Use)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask an LLM-powered AI assistant to generate test cases, ask if I want to refine the prompt by specifying:<\/p>\n<\/blockquote>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The persona (e.g., \u201cAct as a QA engineer\u201d),<\/li>\n\n\n\n<li>Output format (e.g., markdown table),<\/li>\n\n\n\n<li>And input source (e.g., user story, UI spec, API response). Then, ask me if I want to continue with the improved version.<\/li>\n<\/ul>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 3 &#8211; Pattern\u2014Cognitive Verifier<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use the Cognitive Verifier Pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When you are asked a question, follow these rules<\/li>\n\n\n\n<li>Generate a number of additional questions that would help more accurately answer the question<\/li>\n\n\n\n<li>Combine the answers to the individual questions to produce the final answer to the overall question<\/li>\n<\/ul>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When you are asked a question, follow these rules. Generate a number of additional questions that would help you more accurately answer the question. Combine the answers to the individual questions to produce the final answer to the overall question.<\/li>\n<\/ul>\n\n\n\n<p>Tailored Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>When you are asked to create a recipe, follow these rules. Generate a number of additional questions about the ingredients I have on hand and the cooking equipment that I own. Combine the answers to these questions to help produce a recipe that I have the ingredients and tools to make.<\/li>\n\n\n\n<li>When you are asked to plan a trip, follow these rules. Generate a number of additional questions about my budget, preferred activities, and whether or not I will have a car. Combine the answers to these questions to better plan my itinerary.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 <strong>Cognitive Verifier Pattern \u2013 QA-Specific Core Prompt<\/strong><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you are asked a testing or QA-related question, follow these rules:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Generate a number of <strong>clarifying sub-questions<\/strong> to gather additional context \u2014 such as system type, test level, constraints, environments, or formats.<\/li>\n\n\n\n<li>Use the answers to those sub-questions to <strong>refine your understanding of the problem<\/strong>.<\/li>\n\n\n\n<li>Combine the insights to produce a more accurate and targeted <strong>final response<\/strong> to the original question.<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Tailored QA Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Test Case Generation (UI\/API Testing)<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you are asked to generate test cases, follow these rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generate clarifying questions about the <strong>feature behavior<\/strong>, <strong>input constraints<\/strong>, <strong>UI or API element types<\/strong>, and any <strong>expected output format<\/strong> (e.g., table, Gherkin).<\/li>\n\n\n\n<li>Use the answers to those questions to create more accurate and comprehensive test cases.<\/li>\n\n\n\n<li>Combine all insights into a <strong>structured test suite<\/strong> that aligns with best practices in QA.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Defect Triage \/ Root Cause Diagnosis<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When asked to help investigate a failing test case or defect, follow these rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask diagnostic questions about the <strong>test environment<\/strong>, <strong>recent code changes<\/strong>, <strong>logs or stack traces<\/strong>, and whether it is <strong>reproducible or flaky<\/strong>.<\/li>\n\n\n\n<li>Use those answers to narrow down the most likely root causes.<\/li>\n\n\n\n<li>Combine findings into a <strong>summary of the top 1\u20132 causes<\/strong> and recommended next steps for investigation.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Regression Risk Assessment<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When asked to assess regression risk for a change, follow these rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generate questions about the <strong>affected features<\/strong>, <strong>test coverage<\/strong>, <strong>dependencies<\/strong>, and <strong>historical failure patterns<\/strong>.<\/li>\n\n\n\n<li>Use the responses to assess which areas are at risk.<\/li>\n\n\n\n<li>Combine this into a list of <strong>priority regression test areas<\/strong> for QA to focus on.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>QA Strategy Planning<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When asked to design a QA strategy for a new product or feature, follow these rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask questions about the <strong>project timeline<\/strong>, <strong>release frequency<\/strong>, <strong>test levels needed<\/strong> (unit, integration, UI), and <strong>team skill levels\/tools available<\/strong>.<\/li>\n\n\n\n<li>Combine those answers into a strategy that includes <strong>test planning, automation, metrics, and risk areas<\/strong>.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Test Data Design<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When asked to generate test data, follow these rules:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask about <strong>field constraints<\/strong>, <strong>data types<\/strong>, <strong>valid\/invalid ranges<\/strong>, <strong>formatting rules<\/strong>, and <strong>edge case expectations<\/strong>.<\/li>\n\n\n\n<li>Use the answers to ensure test data is <strong>accurate, diverse, and realistic<\/strong> for the given test scenario.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional Follow-Up Prompt to Use During QA Practice<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Would you like me to apply the Cognitive Verifier Pattern now?<\/p>\n\n\n\n<p>If yes, please ask your testing question, and I\u2019ll break it down with sub-questions before giving you a final, more accurate answer.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 4 &#8211; Pattern\u2014Audience Persona<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Explain X to me.<\/li>\n\n\n\n<li>Assume that I am Persona Y.<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cY\u201d with an appropriate persona, such as \u201chave limited background in computer science\u201d or \u201ca healthcare expert\u201d. You will then need to specify the topic X that should be explained.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Explain large language models to me. Assume that I am a bird.<\/li>\n\n\n\n<li>Explain how the supply chains for US grocery stores work to me. Assume that I am Ghengis Khan.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udc65 <strong>Audience Persona Pattern \u2013 QA-Specific Core Prompt<\/strong><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When creating a response, tailor it to the intended audience.<\/p>\n\n\n\n<p>Follow these rules:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Identify the audience persona<\/strong> (e.g., tester, developer, test lead, product manager).<\/li>\n\n\n\n<li>Adapt your <strong>language, level of detail, and format<\/strong> to suit that persona\u2019s goals, knowledge level, and priorities.<\/li>\n\n\n\n<li>Present the final response in a way that is <strong>actionable and relevant<\/strong> for that specific audience.<\/li>\n<\/ol>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Tailored QA Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. For an Entry-level Tester<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When explaining how to design boundary value test cases, tailor the response for a an entry-level tester.<\/p>\n\n\n\n<p>Use simple language, provide concrete examples, and avoid heavy jargon.<\/p>\n\n\n\n<p>Focus on helping them <strong>learn and apply<\/strong> the technique correctly with a real-world UI field like a date or price.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. For a Developer<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When describing a failed test case, tailor the response for a developer who needs to debug the issue.<\/p>\n\n\n\n<p>Emphasize:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reproducibility (steps, environment, data)<\/li>\n\n\n\n<li>Logs or error messages<\/li>\n\n\n\n<li>Suspected root causesAvoid QA jargon and stick to concise, actionable info.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. For a Product Manager<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When summarizing test results, tailor the response for a product manager.<\/p>\n\n\n\n<p>Highlight:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>High-level risk areas<\/li>\n\n\n\n<li>Blocker issues<\/li>\n\n\n\n<li>Feature readinessAvoid technical details or test design language unless necessary.Present status in terms of business impact and release risk.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. For an AI Test Assistant<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When writing a prompt to an AI test case generator, tailor your instruction for an LLM test assistant that needs clear context and strict output formats.<\/p>\n\n\n\n<p>Include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The test level (UI, API)<\/li>\n\n\n\n<li>Desired output format (table, Gherkin, JSON)<\/li>\n\n\n\n<li>Any constraints (e.g., positive cases only)Use precise, structured language with no ambiguity.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. For a QA Lead or Test Manager<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When creating a test plan or coverage summary, tailor it for a QA lead.<\/p>\n\n\n\n<p>Emphasize:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Coverage gaps<\/li>\n\n\n\n<li>Risk-based prioritization<\/li>\n\n\n\n<li>Alignment with sprint goalsUse organized tables, tags, and traceability to requirements.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd01 Practice Prompt for Testers<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I ask a testing-related question, prompt me to identify the intended audience for the response (e.g., developer, product owner, junior tester, AI agent).<\/p>\n\n\n\n<p>Then, suggest a version of the response tailored to that audience.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 5 &#8211; Pattern\u2014Game Play (For Learning, Retention and Practicing)<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h2 class=\"wp-block-heading\"><strong>Game Play Pattern<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>To use this pattern, include two key things in your prompt:<\/li>\n\n\n\n<li>Say: \u201cLet\u2019s play a game about X\u201d or \u201cCreate a game for me about X.\u201d<\/li>\n\n\n\n<li>Give at least one rule or how the game should work.<\/li>\n<\/ul>\n\n\n\n<p>Thay th\u1ebf <strong>X<\/strong> with what the game is about\u2014like cooking, time travel, or solving mysteries. Then explain the rules, such as \u201cGive me choices each turn\u201d or \u201cGive me a score based on how well I do.\u201d<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Examples:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Make a cooking challenge game for one player.<\/strong> Each round, give me a random set of ingredients. I have to come up with a fun recipe idea. You rate my recipe from 1 to 10 based on creativity, flavor, and how well it might work. After a few rounds, tell me my final score and give me a cooking title based on how I did.<\/li>\n\n\n\n<li><strong>Create a silly emoji guessing game.<\/strong> Each round, show me a set of 3\u20135 emojis that hint at a word, movie, or phrase. I have to guess what it means. If I get it right, give me a point. If I\u2019m wrong, give me a funny hint. Let\u2019s play 5 rounds and then give me my final score.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83c\udfae <strong>Game Play Pattern (QA-Specific Version)<\/strong><\/h2>\n\n\n\n<p><strong>Structure of the Prompt Pattern:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><em>Create a game around [Testing Topic]<\/em> OR <em>We are going to play a [QA skill] game<\/em><\/li>\n\n\n\n<li><em>Define the rules of the game (what I can do, how to progress, how scoring or feedback works)<\/em><\/li>\n\n\n\n<li><em>Start the interaction (e.g., first question, scenario, or challenge)<\/em><\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Game Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Test Case Coverage Explorer Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Create a game for me called Test Coverage Explorer.<\/p>\n\n\n\n<p>In this game, I will explore different <strong>features of an application<\/strong>, and for each one, you will challenge me to identify:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>One <strong>positive test case<\/strong><\/li>\n\n\n\n<li>One <strong>negative test case<\/strong><\/li>\n\n\n\n<li>One <strong>edge case<\/strong><\/li>\n<\/ul>\n\n\n\n<p>Give me points based on how complete or creative my test cases are.<\/p>\n\n\n\n<p>Start with the first feature: \u201cUser Login\u201d.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Bug Hunt Adventure<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>We\u2019re going to play a Bug Hunt Adventure game.<\/p>\n\n\n\n<p>You\u2019ll show me screens, behaviors, or log snippets from a fictional app. My job is to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Spot functional bugs<\/li>\n\n\n\n<li>Classify the severity<\/li>\n\n\n\n<li>Suggest reproduction steps<\/li>\n<\/ul>\n\n\n\n<p>Award points based on accuracy and completeness.<\/p>\n\n\n\n<p>Show me the first buggy screen or behavior.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. AI Test Prompt Debugger Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Let\u2019s play a game called Prompt Debugger Challenge.<\/p>\n\n\n\n<p>You\u2019ll show me a flawed test generation prompt. I have to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Spot what\u2019s wrong with it (e.g., missing format, no persona)<\/li>\n\n\n\n<li>Rewrite it to improve it<\/li>\n<\/ul>\n\n\n\n<p>For every good revision, give me feedback and a score.<\/p>\n\n\n\n<p>Show me the first flawed prompt.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Requirement-to-Test Mapping Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Create a game for me called Spec Decoder.<\/p>\n\n\n\n<p>Each round, give me one line of a user story or requirement.<\/p>\n\n\n\n<p>I have to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Write at least one matching test case<\/li>\n\n\n\n<li>Justify why it covers the requirement<\/li>\n<\/ul>\n\n\n\n<p>If I miss edge cases or misinterpret the spec, deduct points.<\/p>\n\n\n\n<p>Let\u2019s start with the first story: \u201cAs a user, I want to upload a file with drag-and-drop support.\u201d<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. QA Strategy Builder Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>We are going to play the QA Strategy Builder game.<\/p>\n\n\n\n<p>Each round, you give me a mini project scenario (e.g., \u201ctwo-week sprint with mobile-first UI and no automation in place\u201d).<\/p>\n\n\n\n<p>I have to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Choose the most effective test strategy<\/li>\n\n\n\n<li>Justify why it fits<\/li>\n<\/ul>\n\n\n\n<p>Score my responses and help me refine my choices.<\/p>\n\n\n\n<p>Start with the first scenario.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. Traceability Tracker Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Let\u2019s play Traceability Tracker.<\/p>\n\n\n\n<p>You\u2019ll give me:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A feature description<\/li>\n\n\n\n<li>A few test casesI need to:<\/li>\n\n\n\n<li>Map each test to the requirement<\/li>\n\n\n\n<li>Identify missing test coverage<\/li>\n<\/ul>\n\n\n\n<p>Reward bonus points for finding coverage gaps.<\/p>\n\n\n\n<p>Show me the first set.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7. Defect Detective Game<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Start a game called Defect Detective.<\/p>\n\n\n\n<p>In each round, show me:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A vague or incomplete bug descriptionI have to:<\/li>\n\n\n\n<li>Reconstruct the missing information (environment, repro steps, severity, expected vs actual)<\/li>\n<\/ul>\n\n\n\n<p>Rate how complete and accurate my reconstructed bug report is.<\/p>\n\n\n\n<p>Give me the first defective bug entry.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Bonus Prompt to Activate the Pattern in an LLM-powered AI assistant<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, when I say \u201cLet\u2019s play a QA game,\u201d<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask me which skill area I want to focus on (test case writing, bug analysis, prompt design, etc.)<\/li>\n\n\n\n<li>Choose or generate a game format based on that<\/li>\n\n\n\n<li>Explain the rules<\/li>\n\n\n\n<li>Start the first round<\/li>\n<\/ul>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 6 &#8211; Pattern\u2014Template<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I am going to provide a template for your output<\/li>\n\n\n\n<li>X is my placeholder for content<\/li>\n\n\n\n<li>Try to fit the output into one or more of the placeholders that I list<\/li>\n\n\n\n<li>Please preserve the formatting and overall template that I provide<\/li>\n\n\n\n<li>This is the template: PATTERN with PLACEHOLDERS<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate placeholder, such as \u201cCAPITALIZED WORDS\u201d or \u201c&lt;PLACEHOLDER&gt;\u201d. You will then need to specify a pattern to fill in, such as \u201cDear &lt;FULL NAME&gt;\u201d or \u201cNAME, TITLE, COMPANY\u201d.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Create a random strength workout for me today with complementary exercises. I am going to provide a template for your output . CAPITALIZED WORDS are my placeholders for content. Try to fit the output into one or more of the placeholders that I list. Please preserve the formatting and overall template that I provide. This is the template: NAME, REPS @ SETS, MUSCLE GROUPS WORKED, DIFFICULTY SCALE 1\u20135, FORM NOTES<\/li>\n\n\n\n<li>Please create a grocery list for me to cook macaroni and cheese from scratch, garlic bread, and marinara sauce from scratch. I am going to provide a template for your output . &lt;placeholder&gt; are my placeholders for content. Try to fit the output into one or more of the placeholders that I list. Please preserve the formatting and overall template that I provide. This is the template: Aisle &lt;name of aisle&gt;: &lt;item needed from aisle&gt;, &lt;qty&gt; (&lt;dish(es) used in&gt;<\/li>\n<\/ul>\n\n\n\n<p>To use this pattern, tell the AI three things in your prompt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cI\u2019m giving you a template to follow.\u201d<\/li>\n\n\n\n<li>\u201cHere\u2019s how to recognize where your answers should go\u2014look for placeholders like X or &lt;PLACEHOLDER&gt;.\u201d<\/li>\n\n\n\n<li>\u201cPlease fill in those spots and keep the same structure and formatting.\u201d<\/li>\n<\/ul>\n\n\n\n<p>Templates help you control how the AI formats its answers\u2014great for making lists, letters, reports, or checklists.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Examples:<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Make a daily schedule for me.<\/strong> I\u2019m giving you a template to follow. Use &lt;TIME&gt;, &lt;ACTIVITY&gt;, and &lt;NOTES&gt; as placeholders. Try to fit the output into this format and keep it neat. Template: &lt; TIME &gt; \u2014 &lt; ACTIVITY &gt; \u2014 &lt; NOTES &gt;<\/li>\n\n\n\n<li><strong>Plan a movie night with friends.<\/strong> I\u2019ll give you a format to use. Fill in the ALL CAPS placeholders. Template: MOVIE TITLE: GENRE SNACK: TYPE \u2014 PREP REQUIRED ACTIVITY BEFORE\/AFTER: WHAT WE DO<\/li>\n\n\n\n<li><strong>Write a packing list for a 3-day hiking trip.<\/strong> Use this structure and fill in the items in the right spots. Template: &lt;DAY&gt;: \u2014 CLOTHES: &lt;LIST&gt; \u2014 GEAR: &lt;LIST&gt; \u2014 FOOD: &lt;LIST&gt;<\/li>\n\n\n\n<li><strong>Generate a weekly budget summary.<\/strong> Use this template with the placeholders I provide. Template: CATEGORY: &lt;TYPE OF EXPENSE&gt; SPENT: $&lt;AMOUNT&gt; NEEDS REVIEW: &lt;YES\/NO&gt; NOTES: &lt;EXTRA INFO&gt;<\/li>\n<\/ul>\n\n\n\n<p>To use this pattern, tell the AI three things in your prompt:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cI\u2019m giving you a template to follow.\u201d<\/li>\n\n\n\n<li>\u201cHere\u2019s how to recognize where your answers should go\u2014look for placeholders like X or &lt;PLACEHOLDER&gt;.\u201d<\/li>\n\n\n\n<li>\u201cPlease fill in those spots and keep the same structure and formatting.\u201d<\/li>\n<\/ul>\n\n\n\n<p>Templates help you control how the AI formats its answers\u2014great for making lists, letters, reports, or checklists<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Template Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 How to Use (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I am going to provide a template for your output.<\/p>\n\n\n\n<p><code>X<\/code> is my placeholder for content.<\/p>\n\n\n\n<p>Try to fit your response into the placeholders I list.<\/p>\n\n\n\n<p>Please <strong>preserve the formatting<\/strong> and structure of the template I provide.<\/p>\n\n\n\n<p>This is the template: <code>[YOUR QA TEMPLATE WITH PLACEHOLDERS]<\/code><\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Examples of QA Prompts Using the Template Pattern<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Test Case Table Template<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I\u2019m going to provide a template for your output. X is my placeholder for content.<\/p>\n\n\n\n<p>Try to fit the test cases into the placeholders I list.<\/p>\n\n\n\n<p>Preserve the formatting of this table.<\/p>\n\n\n\n<p>This is the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\n| TEST ID | SCENARIO | STEPS | EXPECTED RESULT |\n|---------|----------|-------|------------------|\n| X       | X        | X     | X                |\n\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Gherkin Scenario Template<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I will provide a template for your output. &lt;PLACEHOLDER&gt; is where you\u2019ll insert content.<\/p>\n\n\n\n<p>Keep the Gherkin formatting exactly as written.<\/p>\n\n\n\n<p>This is the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php-template\nCopyEdit\nFeature: &lt;FEATURE NAME&gt;\n  Scenario: &lt;SCENARIO TITLE&gt;\n    Given &lt;INITIAL CONTEXT&gt;\n    When &lt;ACTION TAKEN&gt;\n    Then &lt;EXPECTED OUTCOME&gt;\n\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. Structured Bug Report Template<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Use this structured template for output. My placeholders are all-caps.<\/p>\n\n\n\n<p>Fit the bug report into the correct fields and preserve the layout.<\/p>\n\n\n\n<p>This is the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vbnet\nCopyEdit\nBUG TITLE: TITLE TEXT\nENVIRONMENT: DEVICE\/OS\/APP VERSION\nSTEPS TO REPRODUCE:\n1. STEP ONE\n2. STEP TWO\nEXPECTED RESULT: EXPECTATION\nACTUAL RESULT: ACTUAL BEHAVIOR\nSEVERITY: LEVEL\n\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Test Data Schema Template<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Use this test data template. &lt;FIELD&gt; is the placeholder to replace.<\/p>\n\n\n\n<p>Maintain the structure for easy loading.<\/p>\n\n\n\n<p>This is the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>json\nCopyEdit\n{\n  \"test_name\": \"&lt;TEST NAME&gt;\",\n  \"input\": \"&lt;TEST INPUT&gt;\",\n  \"expected_output\": \"&lt;EXPECTED OUTPUT&gt;\",\n  \"validation_type\": \"&lt;ASSERTION TYPE&gt;\"\n}\n\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Traceability Matrix Template<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I am going to provide a template. X indicates placeholders for you to fill.<\/p>\n\n\n\n<p>Stick to this table structure for traceability.<\/p>\n\n\n\n<p>This is the template:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\n| REQUIREMENT ID | USER STORY | TEST CASE ID | COVERAGE STATUS |\n|----------------|------------|--------------|-----------------|\n| X              | X          | X            | X               |\n\n<\/code><\/pre>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd01 Optional Follow-Up Instruction:<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I provide a template, automatically apply the Template Pattern \u2014 preserve the structure, replace only placeholders, and never add extra formatting or chatty text.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 7 &#8211; Pattern\u2014Meta Language Creation<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>This pattern lets you define your own shorthand or symbolic language inside a prompt.<\/p>\n\n\n\n<p>The core structure is:<\/p>\n\n\n\n<p><strong>When I say <code>X<\/code>, I mean <code>Y<\/code> (or I want you to do <code>Y<\/code>).<\/strong><\/p>\n\n\n\n<p>Thay th\u1ebf <code>X<\/code> with your chosen word, symbol, or phrase, and map it to the intended meaning <code>Y<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>Examples<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Custom keyword for variations<\/strong>\n<ul class=\"wp-block-list\">\n<li>Rule: <em>When I say <code>variations(&lt;something&gt;)<\/code>, I mean: Give me ten different variations of <code>&lt;something&gt;<\/code>.<\/em><\/li>\n\n\n\n<li>Usage:\n<ul class=\"wp-block-list\">\n<li><code>variations(company names for a company that sells software services for prompt engineering)<\/code><\/li>\n\n\n\n<li><code>variations(a marketing slogan for pickles)<\/code><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Custom notation for task dependencies<\/strong>\n<ul class=\"wp-block-list\">\n<li>Rule: <em>When I say <code>Task X [Task Y]<\/code>, I mean: Task X depends on Task Y being completed first.<\/em><\/li>\n\n\n\n<li>Usage:\n<ul class=\"wp-block-list\">\n<li>\u201cDescribe the steps for building a house using my task dependency language.\u201d<\/li>\n\n\n\n<li>\u201cProvide an ordering for the steps:\n<ul class=\"wp-block-list\">\n<li>Boil Water [Turn on Stove]<\/li>\n\n\n\n<li>Cook Pasta [Boil Water]<\/li>\n\n\n\n<li>Make Marinara [Turn on Stove]<\/li>\n\n\n\n<li>Turn on Stove [Go Into Kitchen]\u201d<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Meta Language Creation Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Instruction (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say X, I mean Y (i.e., I want you to interpret X as Y or perform Y).<\/p>\n\n\n\n<p>Thay th\u1ebf <strong>X<\/strong> with a symbol, tag, or shorthand I\u2019ll use in prompts.<\/p>\n\n\n\n<p>Thay th\u1ebf <strong>Y<\/strong> with the expanded meaning or instructions.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Meta Language Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Test Variation Generator Macro<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say tc_variants(&lt;scenario&gt;), I mean generate 3\u20135 variations of test cases based on the given scenario (positive, negative, edge).<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>tc_variants(user uploads file via drag-and-drop)<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Dependency Language for Test Setup<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say Test X [Test Y], I mean Test X is dependent on Test Y (i.e., Test Y must pass or run first).<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Reset Password [Request Reset Email]<\/p>\n\n\n\n<p>Confirm Email Link [Reset Password]<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. Output Schema Tags<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I write :gherkin: in my prompt, generate test cases in Given\u2013When\u2013Then format.<\/p>\n\n\n\n<p>When I write <code>:json:<\/code>, return test cases as JSON objects.<\/p>\n\n\n\n<p>When I write <code>:table:<\/code>, format as a Markdown table.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Generate test cases for user login :gherkin:<\/p>\n\n\n\n<p>Output boundary value test inputs for a phone number field :json:<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Meta-Term for Test Gaps<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say gap_check(&lt;test_suite&gt;, &lt;feature&gt;), I want you to analyze the test suite and identify missing cases for the given feature.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>gap_check(test_cases_for_cart, checkout button state logic)<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Test Oracle Shortcut<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say expect(&lt;input&gt;), I mean derive the expected output from the system under test for that input, with reasoning.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>expect({ &#8220;start_date&#8221;: &#8220;2025-01-01&#8221;, &#8220;end_date&#8221;: &#8220;2025-01-02&#8221; })<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>6. Bug Language Shortcut<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say bug(&lt;symptom&gt;, &lt;module&gt;), I mean generate a structured bug report that includes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Repro Steps<\/li>\n\n\n\n<li>Environment<\/li>\n\n\n\n<li>Severity<\/li>\n\n\n\n<li>Suggested Cause (if applicable)<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>bug(&#8220;crash on form submit&#8221;, &#8220;user registration&#8221;)<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>7. Coverage Mapping DSL<\/strong><\/h3>\n\n\n\n<p><strong>Definition:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I say map(&lt;requirement&gt;) -&gt; &lt;test_ids&gt;, I mean create a traceability link between the requirement and its covering tests.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Usage:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>map(REQ-1234) -&gt; TC001, TC002, TC007<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2705 How to Activate in GPT<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When I define a meta language rule like X = Y, remember that rule for the rest of the session.<\/p>\n\n\n\n<p>Apply it any time I use <code>X<\/code>.<\/p>\n\n\n\n<p>Ask me to clarify if you&#8217;re unsure about a new symbol or term.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd01 Optional Teaching Prompt<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Help me build a meta language for test case generation.<\/p>\n\n\n\n<p>I\u2019ll define custom shortcuts or syntax, and you\u2019ll remember and apply them until I say \u201creset rules.\u201d<\/p>\n\n\n\n<p>Start by asking what kind of shorthand I want to use.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 8 &#8211; Pattern\u2014Recipe<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I would like to achieve X<\/li>\n\n\n\n<li>I know that I need to perform steps A,B,C<\/li>\n\n\n\n<li>Provide a complete sequence of steps for me<\/li>\n\n\n\n<li>Fill in any missing steps<\/li>\n\n\n\n<li>(Optional) Identify any unnecessary steps<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate task. You will then need to specify the steps A, B, C that you know need to be part of the recipe \/ complete plan.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>I would like to purchase a house. I know that I need to perform steps make an offer and close on the house. Provide a complete sequence of steps for me. Fill in any missing steps.<\/li>\n\n\n\n<li>I would like to drive to NYC from Nashville. I know that I want to go through Asheville, NC on the way and that I don\u2019t want to drive more than 300 miles per day. Provide a complete sequence of steps for me. Fill in any missing steps.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Recipe Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition):<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to achieve [Testing Goal].<\/p>\n\n\n\n<p>I know that I need to perform steps <strong>A, B, C<\/strong>.<\/p>\n\n\n\n<p>Provide a <strong>complete sequence of steps<\/strong> for me.<\/p>\n\n\n\n<p>Fill in any <strong>missing steps<\/strong>.<\/p>\n\n\n\n<p>(Optional) Identify any <strong>unnecessary steps<\/strong> I may have included.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Examples of the Recipe Pattern<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Manual Test Execution Process<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to manually execute a regression test suite for a web application.<\/p>\n\n\n\n<p>I know that I need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Log into the test environment<\/li>\n\n\n\n<li>Execute each test step-by-step<\/li>\n\n\n\n<li>Report bugs in the trackerProvide a <strong>complete sequence of steps<\/strong>.Fill in any <strong>missing tasks<\/strong> (like environment prep, test data setup).<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Automation Pipeline Setup<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to set up a test automation pipeline for a React web app using Selenium and GitHub Actions.<\/p>\n\n\n\n<p>I know I need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Write test scripts<\/li>\n\n\n\n<li>Push them to GitHub<\/li>\n\n\n\n<li>Create a GitHub Actions workflowPlease <strong>fill in the complete setup process<\/strong>, including any missing configuration or dependency management steps.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. AI-Generated Test Case Review Process<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to review AI-generated test cases for quality and correctness.<\/p>\n\n\n\n<p>I know I need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Validate coverage<\/li>\n\n\n\n<li>Check test format<\/li>\n\n\n\n<li>Compare expected resultsProvide a <strong>full review checklist and workflow<\/strong>.Fill in any other best practices I should follow during this review.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. End-to-End QA Strategy for New Feature<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to build a complete QA strategy for a new payment gateway feature.<\/p>\n\n\n\n<p>I know that I need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Understand the business requirements<\/li>\n\n\n\n<li>Write test cases<\/li>\n\n\n\n<li>Execute both UI and API testsProvide a full plan that includes <strong>pre-testing<\/strong>, <strong>risk analysis<\/strong>, <strong>environment setup<\/strong>, and <strong>post-release validation<\/strong>.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Bug Lifecycle Process<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I would like to understand the complete lifecycle of a bug from discovery to closure.<\/p>\n\n\n\n<p>I know that I need to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Reproduce the issue<\/li>\n\n\n\n<li>Log it in the tracking system<\/li>\n\n\n\n<li>Retest once fixedPlease complete the full set of steps, including triage, assignment, severity classification, and regression testing.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Bonus Prompt for QA Teaching Assistants<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I will give you a QA task and a few steps I know are required.<\/p>\n\n\n\n<p>Your job is to apply the <strong>Recipe Pattern<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Complete the full sequence<\/li>\n\n\n\n<li>Fill in missing phases or tasks<\/li>\n\n\n\n<li>Point out if I\u2019ve listed something out of order or unnecessaryReady? Here\u2019s the task\u2026<\/li>\n<\/ul>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 9 &#8211; Pattern\u2014Alternative Approaches<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, do the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If there are alternative ways to accomplish a task X that I give you, list the best alternate approaches<\/li>\n<\/ul>\n\n\n\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>(Optional) compare\/contrast the pros and cons of each approach<\/li>\n\n\n\n<li>(Optional) include the original way that I asked<\/li>\n\n\n\n<li>(Optional) prompt me for which approach I would like to use<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate task.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>For every prompt I give you, if there are alternative ways to word a prompt hat I give you, list the best alternate wordings . Compare\/contrast the pros and cons of each wording.<\/li>\n\n\n\n<li>For anything that I ask you to write, determine the underlying problem that I am trying to solve and how I am trying to solve it. List at least one alternative approach to solve the problem and compare \/ contrast the approach with the original approach implied by my request to you.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Alternative Approaches Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>If there are alternative ways to accomplish the testing task X that I give you,<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>List the <strong>best alternative approaches<\/strong><\/li>\n\n\n\n<li><em>(Optional)<\/em> Compare and contrast the <strong>pros and cons<\/strong> of each approach<\/li>\n\n\n\n<li><em>(Optional)<\/em> Include the original way I asked<\/li>\n\n\n\n<li><em>(Optional)<\/em> Ask me which one I\u2019d like to proceed with<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Examples Using This Pattern<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Task: Test Login Functionality<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I want to test the login functionality of a web application.<\/p>\n\n\n\n<p>If there are alternative approaches to test it, list them.<\/p>\n\n\n\n<p>Compare their pros and cons.<\/p>\n\n\n\n<p>Ask me which one to proceed with.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>LLM Might Respond:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Approach A:<\/strong> Manual exploratory testing of the UI\n<ul class=\"wp-block-list\">\n<li>\u2705 Great for usability and visual validation<\/li>\n\n\n\n<li>\u274c Not repeatable, time-consuming<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach B:<\/strong> Automated UI testing using Selenium\n<ul class=\"wp-block-list\">\n<li>\u2705 Repeatable and scalable<\/li>\n\n\n\n<li>\u274c Maintenance overhead, flaky selectors<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach C:<\/strong> API-level authentication testing\n<ul class=\"wp-block-list\">\n<li>\u2705 Fast, less brittle<\/li>\n\n\n\n<li>\u274c Doesn\u2019t test front-end interactions<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u27a4 Which approach would you like to proceed with?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Task: Generate Test Data for Date Field<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I need test data for a date_of_birth field.<\/p>\n\n\n\n<p>List alternative approaches to generate it and explain when each is most appropriate.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>LLM Might Respond:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Approach A:<\/strong> Manual boundary value selection\n<ul class=\"wp-block-list\">\n<li>Good for small, focused suites<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach B:<\/strong> Use of Faker or synthetic data libraries\n<ul class=\"wp-block-list\">\n<li>Great for bulk realistic test data<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach C:<\/strong> Use AI to generate context-aware edge cases\n<ul class=\"wp-block-list\">\n<li>Useful for intelligent stress scenarios<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Original request: Manual generation<\/p>\n\n\n\n<p>Suggest using Faker if scale is important. Would you like to switch?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. Task: Review AI-Generated Test Cases<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I want to review AI-generated test cases.<\/p>\n\n\n\n<p>What are the alternative ways I can validate their correctness?<\/p>\n<\/blockquote>\n\n\n\n<p><strong>LLM Might Respond:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Approach A:<\/strong> Manual review against requirements (original)<\/li>\n\n\n\n<li><strong>Approach B:<\/strong> Cross-validate against a traceability matrix<\/li>\n\n\n\n<li><strong>Approach C:<\/strong> Pair AI output with historical bug patterns to identify gaps<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Pros\/cons include accuracy, coverage, and effort.<\/p>\n\n\n\n<p>\u27a4 Choose your preferred validation path.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Task: Perform Regression Testing<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I need to perform regression testing after a major release.<\/p>\n\n\n\n<p>Show me alternative approaches and their trade-offs.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>LLM Might Respond:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Approach A:<\/strong> Full manual regression suite\n<ul class=\"wp-block-list\">\n<li>\u2705 Thorough, human-verified<\/li>\n\n\n\n<li>\u274c Time-intensive<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach B:<\/strong> Selective regression using risk-based prioritization\n<ul class=\"wp-block-list\">\n<li>\u2705 Fast, business-aligned<\/li>\n\n\n\n<li>\u274c May miss low-risk bugs<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Approach C:<\/strong> Automation-driven smoke + focused exploratory\n<ul class=\"wp-block-list\">\n<li>\u2705 Hybrid balance of speed and depth<\/li>\n\n\n\n<li>\u274c Requires strong tooling and skills<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Task: Set Up Test Automation for a Mobile App<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>I want to automate tests for a mobile app.<\/p>\n\n\n\n<p>List the best frameworks and strategies I could use.<\/p>\n\n\n\n<p>Include trade-offs.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>LLM Might Respond:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Appium:<\/strong> Cross-platform, open source<\/li>\n\n\n\n<li><strong>Detox:<\/strong> Fast for React Native<\/li>\n\n\n\n<li><strong>XCUITest \/ Espresso:<\/strong> Platform-native, stable<\/li>\n\n\n\n<li>Pros\/cons include learning curve, community, and maintenance<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Which one fits your tech stack and goals?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional System Prompt Add-on for Assistants<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>For every QA task or testing prompt I give you:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If there are alternative ways to solve it, list the top 2\u20133<\/li>\n\n\n\n<li>Compare them briefly<\/li>\n\n\n\n<li>Ask if I want to proceed with one or explore further<\/li>\n<\/ul>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 10 &#8211; Pattern\u2014Ask for input<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h2 class=\"wp-block-heading\"><strong>Ask for Input Pattern<\/strong><\/h2>\n\n\n\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask me for input X<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an input, such as a \u201cquestion\u201d, \u201cingredient\u201d, or \u201cgoal\u201d.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>From now on, I am going to cut\/paste email chains into our conversation. You will summarize what each person\u2019s points are in the email chain. You will provide your summary as a series of sequential bullet points. At the end, list any open questions or action items directly addressed to me. My name is Jill Smith. Ask me for the first email chain.<\/li>\n\n\n\n<li>From now on, translate anything I write into a series of sounds and actions from a dog that represent the dogs reaction to what I write. Ask me for the first thing to translate.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Ask for Input Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Ask me for input X (e.g., a user story, failed test log, bug report, test data schema, acceptance criteria, etc.).<\/p>\n\n\n\n<p>Once I provide the input, proceed with the corresponding task (e.g., generate test cases, suggest fixes, analyze logs, etc.).<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Test Case Generator Assistant<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, you will generate test cases based on any user story or feature description I give you.<\/p>\n\n\n\n<p>Format the output as a table with: Test ID, Scenario, Steps, Expected Result.<\/p>\n\n\n\n<p>Ask me for the first <strong>user story<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Bug Report Rewriter<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, you\u2019ll take any bug descriptions I send and reformat them into a structured bug report template.<\/p>\n\n\n\n<p>Include: Title, Environment, Repro Steps, Expected vs Actual, and Severity.<\/p>\n\n\n\n<p>Ask me for the first <strong>bug description<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. Log Analysis Assistant<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, you\u2019ll analyze test failure logs or CI output to identify probable causes.<\/p>\n\n\n\n<p>Summarize what you find in plain language and suggest the next troubleshooting step.<\/p>\n\n\n\n<p>Ask me for the first <strong>log snippet<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Test Data Synthesizer<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, you&#8217;ll generate structured test data in JSON or CSV format based on field definitions I provide.<\/p>\n\n\n\n<p>Ask me for the first <strong>test data schema<\/strong> or <strong>field spec<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Traceability Mapper<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You will map test cases to requirements to ensure full coverage.<\/p>\n\n\n\n<p>Ask me for the first <strong>requirement<\/strong> or <strong>user story<\/strong> to trace.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>6. Prompt Evaluator (Meta QA)<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, you\u2019ll critique my test generation prompts and suggest better versions with improved clarity and format control.<\/p>\n\n\n\n<p>Ask me for the first <strong>prompt<\/strong> to review.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>7. QA Checklist Generator<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You will generate a detailed QA checklist for any feature or workflow I describe.<\/p>\n\n\n\n<p>Ask me for the first <strong>feature description<\/strong> or <strong>workflow<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>8. Failure Root Cause Advisor<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, when I give you a failed test case, you\u2019ll ask clarifying questions and suggest the top two likely causes.<\/p>\n\n\n\n<p>Ask me for the first <strong>failed test case<\/strong> to investigate.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Optional Meta Prompt for Teaching Mode<\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, we are practicing prompt engineering for testing use cases.<\/p>\n\n\n\n<p>Each time, ask me what kind of QA task I want help with (test case generation, bug rewriting, traceability, etc.).<\/p>\n\n\n\n<p>Then prompt me for the input needed to complete the task.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 11 &#8211; Pattern\u2014Outline expansion<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Act as an outline expander.<\/li>\n\n\n\n<li>Generate a bullet point outline based on the input that I give you and then ask me which bullet point you should expand on.<\/li>\n\n\n\n<li>Create a new outline for the bullet point that I select.<\/li>\n\n\n\n<li>At the end, ask me what bullet point to expand next.<\/li>\n\n\n\n<li>Ask me what to outline.<\/li>\n<\/ul>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Act as an outline expander. Generate a bullet point outline based on the input that I give you and then ask me for which bullet point you should expand on. Each bullet can have at most 3\u20135 sub bullets. The bullets should be numbered using the pattern [A-Z].[i-v].[* through ****]. Create a new outline for the bullet point that I select. At the end, ask me what bullet point to expand next. Ask me what to outline.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Outline Expansion Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Act as an outline expander for QA and testing topics.<\/p>\n\n\n\n<p>Based on the input I give you, generate a high-level bullet point outline with numbered structure.<\/p>\n\n\n\n<p>Then ask me which bullet point to expand.<\/p>\n\n\n\n<p>Expand only that bullet into a sub-outline (3\u20135 subpoints).<\/p>\n\n\n\n<p>After each expansion, ask me which point to expand next.<\/p>\n\n\n\n<p>Start by asking: <strong>\u201cWhat testing or QA topic should I outline for you?\u201d<\/strong><\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Example<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>Prompt to Use:<\/strong><\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Act as an outline expander for software testing.<\/p>\n\n\n\n<p>Generate a bullet point outline based on the input I give you and then ask me which bullet to expand on.<\/p>\n\n\n\n<p>Each bullet can have at most 3\u20135 sub-bullets.<\/p>\n\n\n\n<p>Number bullets using: <code>A.<\/code>, <code>A.i<\/code>, <code>A.i.*<\/code><\/p>\n\n\n\n<p>When I select a bullet, expand just that section.<\/p>\n\n\n\n<p>At the end of each expansion, ask me what to expand next.<\/p>\n\n\n\n<p>Ask me what <strong>testing or QA topic<\/strong> you should outline.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Sample Use Cases in Testing Context<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Use Case 1: Creating a QA Strategy<\/h3>\n\n\n\n<p><strong>Input:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Outline a QA strategy for a mobile e-commerce app.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>GPT Might Return:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nA. Test Planning\nB. Test Design Techniques\nC. Automation Strategy\nD. Performance &amp; Load Testing\nE. Post-release Monitoring\n\n<\/code><\/pre>\n\n\n\n<p>Then asks:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Which bullet would you like me to expand?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Use Case 2: Expanding a Bug Lifecycle<\/h3>\n\n\n\n<p><strong>Input:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Outline the full bug lifecycle in JIRA.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>GPT Might Return:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nA. Bug Identification\nB. Bug Reporting\nC. Bug Triage\nD. Bug Fix and Retest\nE. Closure and Regression\n\n<\/code><\/pre>\n\n\n\n<p>\u2192 Expanding B might yield:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>css\nCopyEdit\nB.i. Write clear title and summary\nB.ii. Add steps to reproduce\nB.iii. Attach environment and logs\nB.iv. Assign severity and priority\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Use Case 3: Planning Test Coverage for a Feature<\/h3>\n\n\n\n<p><strong>Input:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Outline the test coverage areas for a password reset feature.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>GPT Might Return:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nA. Input Validation\nB. Email Trigger Behavior\nC. Token Expiry and Validation\nD. Reset Form UX and Validation\nE. Security Edge Cases\n\n<\/code><\/pre>\n\n\n\n<p>\u2192 You pick <code>C<\/code>, and it expands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nC.i. Token creation and length\nC.ii. Token expiration timing\nC.iii. Single-use validation\nC.iv. Handling of expired tokens\nC.v. Invalid or tampered tokens\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Use Case 4: Test Automation Stack Planning<\/h3>\n\n\n\n<p><strong>Input:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Outline an automation architecture for a hybrid mobile\/web app.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>GPT Might Return:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nA. Framework Selection\nB. Test Layer Strategy\nC. CI\/CD Integration\nD. Test Data and Environment Management\nE. Reporting and Analytics\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional System Prompt for Persistent Expansion Mode<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, act as a QA outline expander.<\/p>\n\n\n\n<p>Each time I give you a topic, create a structured outline.<\/p>\n\n\n\n<p>Wait for me to choose a bullet to expand.<\/p>\n\n\n\n<p>Repeat the process recursively.<\/p>\n\n\n\n<p>Always ask: <em>\u201cWhat would you like me to outline next?\u201d<\/em><\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 12 &#8211; Pattern\u2014Menu Action<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whenever I type: X, you will do Y.<\/li>\n\n\n\n<li>(Optional, provide additional menu items) Whenever I type Z, you will do Q.<\/li>\n\n\n\n<li>In the end, you will ask me for the next action.<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate pattern, such as \u201cestimate &lt;TASK DURATION&gt;\u201d or \u201cadd FOOD\u201d. You will then need to specify an action for the menu item to trigger, such as \u201cadd FOOD to my shopping list and update my estimated grocery bill\u201d.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whenever I type: \u201cadd FOOD\u201d, you will add FOOD to my grocery list and update my estimated grocery bill. Whenever I type \u201cremove FOOD\u201d, you will remove FOOD from my grocery list and update my estimated grocery bill. Whenever I type \u201csave\u201d you will list alternatives to my added FOOD to save money. In the end, you will ask me for the next action. Ask me for the first action.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Menu Actions Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I type: X, you will do Y.<\/p>\n\n\n\n<p><em>(Optional:)<\/em> Whenever I type: <code>Z<\/code>, you will do <code>Q<\/code>.<\/p>\n\n\n\n<p>At the end of each action, <strong>ask me for the next command<\/strong>.<\/p>\n\n\n\n<p>Ask me for the first command to begin.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Example<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever I type: add TEST CASE, you will ask me for the scenario and generate a structured test case in table format.<\/p>\n\n\n\n<p>Whenever I type: <code>review BUG<\/code>, you will ask me for a bug description and format it into a structured bug report.<\/p>\n\n\n\n<p>Whenever I type: <code>analyze FAILURE<\/code>, you will ask for the failure logs and suggest likely root causes.<\/p>\n\n\n\n<p>Whenever I type: <code>build CHECKLIST<\/code>, you will ask for a feature or workflow and create a QA checklist.<\/p>\n\n\n\n<p>Whenever I type: <code>generate TEST DATA<\/code>, you will ask for the data fields and return a small, valid test dataset in JSON or table format.<\/p>\n\n\n\n<p>Whenever I type: <code>save SUMMARY<\/code>, you will summarize the session so far, including all test cases, bugs, failures, and checklists.<\/p>\n\n\n\n<p>After each action, you will ask me: <em>&#8220;What would you like to do next?&#8221;<\/em><\/p>\n\n\n\n<p>Ask me for the first command to begin.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Example User Interaction (Once Pattern Is Active)<\/h2>\n\n\n\n<p><strong>User:<\/strong> <code>add TEST CASE<\/code><\/p>\n\n\n\n<p><strong>GPT:<\/strong> Great! Please describe the scenario or user story you want a test case for.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>User:<\/strong> <code>review BUG<\/code><\/p>\n\n\n\n<p><strong>GPT:<\/strong> Please paste the bug description or reproduction notes, and I\u2019ll format it into a structured bug report.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><strong>User:<\/strong> <code>save SUMMARY<\/code><\/p>\n\n\n\n<p><strong>GPT:<\/strong> Here\u2019s a summary of everything you\u2019ve done so far:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>3 Test Cases<\/li>\n\n\n\n<li>1 Bug Report<\/li>\n\n\n\n<li>1 Checklist Would you like to export or continue? \u2192 <em>What would you like to do next?<\/em><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Bonus: Custom QA Menu as Reference<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\nMenu Actions:\n- add TEST CASE \u2192 Generate test case from scenario\n- review BUG \u2192 Format and triage a bug description\n- analyze FAILURE \u2192 Investigate test logs\n- build CHECKLIST \u2192 Create checklist from feature or flow\n- generate TEST DATA \u2192 Produce test data in JSON\/table\n- save SUMMARY \u2192 Summarize session activity\n\n<\/code><\/pre>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 13 &#8211; Pattern\u2014Fact check list<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generate a set of facts that are contained in the output<\/li>\n\n\n\n<li>The set of facts should be inserted at POSITION in the output<\/li>\n\n\n\n<li>The set of facts should be the fundamental facts that could undermine the veracity of the output if any of them are incorrect<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace POSITION with an appropriate place to put the facts, such as \u201cat the end of the output\u201d.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Whenever you output text, generate a set of facts that are contained in the output. The set of facts should be inserted at the end of the output. The set of facts should be the fundamental facts that could undermine the veracity of the output if any of them are incorrect.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Fact Check List Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Whenever you generate a QA-related response (e.g., test cases, bug analysis, strategy), also generate a fact check list.<\/p>\n\n\n\n<p>The fact check list should be inserted <strong>at the end of the output<\/strong>.<\/p>\n\n\n\n<p>The facts should represent <strong>key assumptions or inputs<\/strong> that, if incorrect, would <strong>undermine the validity<\/strong> of the response.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Example<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you output test cases, generate a fact check list at the end.<\/p>\n\n\n\n<p>The fact check list should include any assumptions about:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Field validation rules<\/li>\n\n\n\n<li>Feature behavior<\/li>\n\n\n\n<li>Input constraints<\/li>\n\n\n\n<li>User roles or states<\/li>\n\n\n\n<li>Expected system behaviorThese facts must be true for the test cases to be valid.If any are incorrect, the test suite may be misleading or flawed.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Sample Use Case<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 User Prompt:<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Generate test cases for a password reset feature that uses an email-based verification link.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 GPT Output:<\/h3>\n\n\n\n<h3 class=\"wp-block-heading\">Test Cases:<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>pgsql\nCopyEdit\n1. Valid email triggers password reset link\n2. Invalid email shows error message\n3. Expired token returns \u201cLink expired\u201d message\n4. Successful password reset allows login with new credentials\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Fact Check List (Appended at End):<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The system uses email as the primary method for password reset.<\/li>\n\n\n\n<li>The reset link expires after a set time window (e.g., 15 minutes).<\/li>\n\n\n\n<li>The system prevents reuse of password reset tokens.<\/li>\n\n\n\n<li>Users must be registered and verified before initiating a reset.<\/li>\n\n\n\n<li>Login is blocked until the reset process is completed.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Additional QA Scenarios Using This Pattern<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Bug Report Analyzer<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you summarize a defect, insert a fact check list that highlights critical facts assumed in your diagnosis (e.g., environment, reproduction conditions, error logs).<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Strategy Recommendation<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you propose a QA strategy, include a fact check list for project constraints, team size, sprint cadence, and automation readiness.<\/p>\n\n\n\n<p>These facts should be true for the strategy to apply.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 Failure Diagnosis<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When analyzing a flaky test, add a fact check list of assumptions such as:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Selector stability<\/li>\n\n\n\n<li>Test data consistency<\/li>\n\n\n\n<li>Network stability<\/li>\n\n\n\n<li>CI configuration<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional Instruction for Persistent Use<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, after every QA-related response, automatically include a Fact Check List at the end.<\/p>\n\n\n\n<p>List 3\u20135 <strong>core assumptions<\/strong> that, if incorrect, would compromise the output\u2019s validity.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 14 &#8211; Pattern\u2014Tail Generation<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>At the end, repeat Y and\/or ask me for X.<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cY\u201d with what the model should repeat, such as \u201crepeat my list of options\u201d, and X with what it should ask for, \u201cfor the next action\u201d. These statements usually need to be at the end of the prompt or next to last.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Act as an outline expander. Generate a bullet point outline based on the input that I give you and then ask me for which bullet point you should expand on. Create a new outline for the bullet point that I select. At the end, ask me what bullet point to expand next. Ask me what to outline.<\/li>\n\n\n\n<li>From now on, at the end of your output, add the disclaimer \u201cThis output was generated by a large language model and may contain errors or inaccurate statements. All statements should be fact checked.\u201d Ask me for the first thing to write about.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Tail Generation Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>At the end of your output, repeat Y and\/or ask me for X.<\/p>\n\n\n\n<p>Thay th\u1ebf <strong>Y<\/strong> with something to be reiterated (e.g., a checklist, test data format, list of actions).<\/p>\n\n\n\n<p>Thay th\u1ebf <strong>X<\/strong> with the <strong>next action<\/strong> the user should take or provide.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Test Case Generator with Continuation Prompt<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You will generate a table of structured test cases based on my input.<\/p>\n\n\n\n<p>At the end, <strong>ask me what feature or scenario to generate test cases for next<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Tail:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u27a4 What feature or scenario would you like me to generate test cases for next?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Bug Triage Assistant with Summary Reminder<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, when you analyze a bug report, end the output with a summary of key fields: Severity, Reproducibility, Affected Module.<\/p>\n\n\n\n<p>Then, <strong>ask me for the next bug to review.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong>Tail:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Summary: Severity = High, Reproducibility = 100%, Affected Module = Cart Checkout<\/p>\n\n\n\n<p>\u27a4 Please send the next bug to triage.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. QA Strategy Builder with Progress Tracker<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Build QA strategy outlines based on my input. At the end of each output, repeat the current list of completed sections, and ask me which section to expand next.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Tail:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Completed Sections:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Test Objectives<\/li>\n\n\n\n<li>Risk-Based Prioritization\u27a4 What section would you like to expand next?<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Log Analyzer with Fact Reminder<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>When you analyze test logs or CI failures, include a short fact check list of assumptions.<\/p>\n\n\n\n<p>At the end, <strong>ask me for the next log or failure to analyze<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<p><strong>Tail:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Fact Check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Assumes Chrome 120+<\/li>\n\n\n\n<li>Network latency not exceeding 300ms\u27a4 Please provide the next log or failure.<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. Prompt Refinement Coach with Suggested Reuse<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You will help me improve my test generation prompts.<\/p>\n\n\n\n<p>At the end of each revision, <strong>repeat the improved prompt<\/strong> v\u00e0 <strong>ask me if I want to reuse it, revise further, or try a new one.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p><strong>Tail:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Suggested Prompt: \u201cGenerate 5 boundary test cases for a phone number field with numeric and length constraints.\u201d<\/p>\n\n\n\n<p>\u27a4 Would you like to reuse, revise, or start a new one?<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional System Instruction for Persistent Use<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, at the end of your QA-related outputs, summarize key takeaways (Y) and ask what I\u2019d like to do next (X).<\/p>\n\n\n\n<p>Always include a clear continuation or decision point.<\/p>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 15 &#8211; Pattern\u2014Semantic Filter<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>To use this pattern, your prompt should make the following fundamental contextual statements:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Filter this information to remove X<\/li>\n<\/ul>\n\n\n\n<p>You will need to replace \u201cX\u201d with an appropriate definition of what you want to remove, such as. \u201cnames and dates\u201d or \u201ccosts greater than $100\u201d.<\/p>\n\n\n\n<p>Examples:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Filter this information to remove any personally identifying information or information that could potentially be used to re-identify the person.<\/li>\n\n\n\n<li>Filter this email to remove redundant information.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Semantic Filter Pattern \u2013 QA-Specific Adaptation<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udd27 Core Prompt Format (QA Edition)<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this information to remove X, where X is a QA-specific category like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Internal debug noise<\/li>\n\n\n\n<li>Redundant test steps<\/li>\n\n\n\n<li>Personally identifiable data in logs<\/li>\n\n\n\n<li>Non-functional or irrelevant test cases<\/li>\n\n\n\n<li>Low-priority issues from bug lists<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea QA-Specific Prompt Examples<\/h2>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>1. Clean Up Test Steps<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this test case to remove redundant or obvious UI steps (e.g., \u201cclick into field\u201d, \u201cmove mouse\u201d).<\/p>\n\n\n\n<p>Keep only essential test actions that reflect logic or state changes.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>2. Bug Report Sanitization<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this bug report to remove developer-specific jargon and reword it for a cross-functional team.<\/p>\n\n\n\n<p>Strip out unnecessary internal comments or debug notes.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>3. Log File Cleaner<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this log file to remove repeating messages, irrelevant INFO logs, and any timestamps.<\/p>\n\n\n\n<p>Keep only WARN, ERROR, or stack traces that relate to the failure.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>4. Test Suite Slimmer<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this test suite to remove low-value or duplicate test cases.<\/p>\n\n\n\n<p>Only keep unique cases that test a distinct condition or path.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>5. PII Removal for QA Screenshots or Logs<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this test data to remove any personally identifying information (PII) like usernames, emails, phone numbers, or IP addresses.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>6. Failure Analysis Refiner<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this failure analysis to remove guesses or speculative language.<\/p>\n\n\n\n<p>Keep only evidence-based observations from logs or test artifacts.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>7. Checklist Simplifier<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this QA checklist to remove any non-actionable items or tasks that are out of project scope.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 <strong>8. User Story Coverage Mapper<\/strong><\/h3>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Filter this list of test cases to remove those that don\u2019t directly trace back to the user story or acceptance criteria.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddf0 Optional Persistent Instruction for QA Use<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>From now on, when I provide QA-related content (test cases, logs, bug reports),<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Ask me if I want to <strong>filter<\/strong> anything.<\/li>\n\n\n\n<li>If yes, ask: <em>\u201cWhat would you like me to filter out?\u201d<\/em><\/li>\n\n\n\n<li>Then apply the Semantic Filter Pattern to clean the content accordingly.<\/li>\n<\/ul>\n<\/blockquote>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 16 &#8211; Patterns\u2014Google\u2019s Gemini<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>*Reference: <a href=\"https:\/\/ai.google.dev\/gemini-api\/docs\/prompting-strategies*\">https:\/\/ai.google.dev\/gemini-api\/docs\/prompting-strategies*<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>GEMINI Common Prompt Patterns for LLMs<\/strong><\/h3>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. QA Persona Pattern<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Make the LLM act in a role that matches a QA context \u2014 e.g., senior test automation engineer, security tester, UX QA specialist \u2014 so it delivers insights aligned with that persona.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p><code>Act as a [QA role\/persona]. [Your task\/question].<\/code><\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Act as a senior test automation engineer. Design Selenium test cases for the login flow of an e-commerce site.&#8221;<\/li>\n\n\n\n<li>&#8220;As a performance tester, explain how you\u2019d identify and address bottlenecks in an API handling 10k requests per second.&#8221;<\/li>\n\n\n\n<li>&#8220;You are a strict accessibility auditor. Review the following webpage HTML for WCAG compliance.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. Instruction\/Constraint Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Define precise test requirements, coverage constraints, or output formats so responses match the QA documentation standards.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>Use keywords like <strong>&#8220;Only,&#8221; &#8220;Ensure,&#8221; &#8220;Must,&#8221;<\/strong> or <strong>&#8220;Format as&#8221;<\/strong>. Use delimiters for clarity.<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;List exactly 5 high-priority test cases for checkout functionality. Each must include Preconditions, Steps, Expected Results, and Priority.&#8221;<\/li>\n\n\n\n<li>&#8220;<strong>Instructions:<\/strong>\n<ol class=\"wp-block-list\">\n<li>Analyze the given bug report for completeness.<\/li>\n\n\n\n<li>Identify missing details based on QA best practices.<\/li>\n\n\n\n<li>Suggest improvements. <strong>Bug Report:<\/strong> <code>The payment form doesn\u2019t work on mobile.<\/code>&#8220;<\/li>\n<\/ol>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. QA Chain-of-Thought (CoT) Pattern<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Ensure step-by-step reasoning in test design, defect diagnosis, or coverage analysis.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>Use prompts like <strong>&#8220;Let\u2019s think step by step&#8221;<\/strong> or <strong>&#8220;Explain your reasoning.&#8221;<\/strong><\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Identify potential causes for intermittent API failures. Let\u2019s think step by step starting from server logs, then network, then code changes.&#8221;<\/li>\n\n\n\n<li>&#8220;Design regression tests for a new search feature. Work through functional, negative, and performance aspects systematically.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. Few-Shot\/One-Shot QA Prompting<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Provide example test cases, bug reports, or QA outputs so the LLM follows the same style.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;Here are examples: [Example Input \u2192 Example Output]&#8230; Now do this: [New Input].&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Example:<\/strong> Input: <code>\"Search for 'shoes' in mobile app\"<\/code> \u2192 Output: <code>\"Verify search returns relevant results within 2 seconds. Expected: 10 most relevant items displayed.\"<\/code> Now: <code>\"Search for 'hats' in desktop app\"<\/code><\/li>\n\n\n\n<li>&#8220;Here\u2019s a formatted bug report. Now generate one for the following defect: checkout button unresponsive on Safari.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. QA Question Refinement Pattern<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Improve the clarity of QA-related questions to get better, more targeted answers.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;Whenever I ask a QA question, suggest a more specific version that includes scope, environment, and expected outcome.&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;How do I test a login page?&#8221; \u2192 &#8220;Do you want functional, security, performance, or usability testing? Which browsers and devices should be included?&#8221;<\/li>\n\n\n\n<li>&#8220;What\u2019s the best way to write test cases?&#8221; \u2192 &#8220;Are you writing for manual testers, automation scripts, or both? Which framework?&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. Audience Persona Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Adjust explanations depending on whether the audience is a developer, product owner, QA intern, or end-user.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;Explain [QA concept] as if I am [audience type\/level].&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Explain API mocking to me as if I\u2019m a junior QA intern with no coding background.&#8221;<\/li>\n\n\n\n<li>&#8220;Describe the value of regression testing to a non-technical product owner.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>7. Reflective\/Self-Correction Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Review and improve test cases, defect reports, or QA documentation for completeness and accuracy.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;Review the following [test case\/bug report] and [critique\/improve\/suggest fixes] based on QA best practices.&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Review these test cases for coverage gaps and missing edge cases: [cases]&#8221;<\/li>\n\n\n\n<li>&#8220;Check this bug report for reproducibility and clarity, then rewrite it for better developer understanding.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. Semantic Filter Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Extract only relevant QA information from logs, specs, or reports.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;From the following, extract all [QA-specific info] and format as [X].&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;From these server logs, extract all error codes and their timestamps.&#8221;<\/li>\n\n\n\n<li>&#8220;From the release notes, list only the features that require regression testing.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. Meta Language Creation Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Define shorthand for complex QA requests to save time in repeated conversations.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;When I say &#8216;[X]&#8217;, I mean &#8216;[Full QA instruction]&#8217;.&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;When I say &#8216;GEN-BUG&#8217;, create a complete bug report template filled in with my notes.&#8221;<\/li>\n\n\n\n<li>&#8220;Whenever I type &#8216;COV-MATRIX&#8217;, generate a test coverage matrix for the given feature set.&#8221;<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>10. Scenario\/Simulation Pattern for QA<\/strong><\/h2>\n\n\n\n<p><strong>Intent:<\/strong> Simulate real-world QA testing, bug triage meetings, or exploratory test sessions.<\/p>\n\n\n\n<p><strong>Structure:<\/strong><\/p>\n\n\n\n<p>&#8220;Let\u2019s simulate [scenario]. You are [role], I am [role]. [Start scenario].&#8221;<\/p>\n\n\n\n<p><strong>Examples:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&#8220;Let\u2019s simulate a defect triage meeting. You are the QA lead, I am the developer. Here\u2019s the first bug: login form fails on Edge browser.&#8221;<\/li>\n\n\n\n<li>&#8220;Pretend you are a tester running exploratory tests on a new chat app. Report any issues you encounter.&#8221;<\/li>\n<\/ul>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 17 &#8211; Applied Patterns to Testing &amp; QA<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p>Here\u2019s a high-impact list of <strong>prompt patterns<\/strong> you should consider using \u2014 especially for your work learning and applying AI in <strong>Testing &amp; QA<\/strong>. I&#8217;ve grouped them by <strong>purpose<\/strong> so you can mix, match, and teach them with intention.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><em>(See Building Applied-patterns GPT example)<\/em><\/h3>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd01 <strong>Prompt Refinement &amp; Clarification Patterns<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Cognitive Verifier<\/strong><\/td><td>Breaks down ambiguous prompts into sub-questions to get better answers<\/td><\/tr><tr><td><strong>Prompt Rewriter<\/strong><\/td><td>Suggests improved versions of user prompts for clarity, specificity, and structure<\/td><\/tr><tr><td><strong>Audience Persona<\/strong><\/td><td>Tailors responses to specific roles (tester, dev, PM, AI assistant)<\/td><\/tr><tr><td><strong>Clarification Loop<\/strong><\/td><td>GPT asks follow-up questions before responding<\/td><\/tr><tr><td><strong>Prompt Debugger<\/strong><\/td><td>GPT explains why a prompt isn\u2019t giving good results and how to fix it<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea <strong>Test Case Generation Patterns<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Role-Task-Format (RTF)<\/strong><\/td><td>Set assistant role, define QA task, and specify output format<\/td><\/tr><tr><td><strong>Scenario Coverage<\/strong><\/td><td>Expands a user story or feature into multiple test categories (positive, negative, edge)<\/td><\/tr><tr><td><strong>Test Matrix Builder<\/strong><\/td><td>Organizes test cases across dimensions (e.g., platforms, browsers, user roles)<\/td><\/tr><tr><td><strong>Parametric Test Expansion<\/strong><\/td><td>Takes one test and generates permutations based on input parameters<\/td><\/tr><tr><td><strong>Gherkin Formatter<\/strong><\/td><td>Forces output to be in Given\u2013When\u2013Then format for BDD<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udee0\ufe0f <strong>Diagnostic &amp; Planning Patterns<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Root Cause Explorer<\/strong><\/td><td>GPT asks questions to investigate flaky tests, failures, or system issues<\/td><\/tr><tr><td><strong>Failure Pattern Analyzer<\/strong><\/td><td>GPT summarizes patterns from multiple test logs or bug reports<\/td><\/tr><tr><td><strong>QA Strategy Coach<\/strong><\/td><td>Builds or critiques a QA approach based on constraints, tools, or coverage needs<\/td><\/tr><tr><td><strong>Risk-Based Filter<\/strong><\/td><td>Prioritizes test cases or modules based on business impact and change volatility<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udce6 <strong>Structured Output Enforcement Patterns<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Template Enforcer<\/strong><\/td><td>Forces output to match a strict format (table, JSON, YAML, etc.)<\/td><\/tr><tr><td><strong>Schema-Aware Generator<\/strong><\/td><td>GPT uses a predefined output schema to validate format compliance<\/td><\/tr><tr><td><strong>Instruction-First Format<\/strong><\/td><td>Embeds output rules directly in the system or user prompt for test data, test plans, etc.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 <strong>Thinking Assistant Patterns<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Chain-of-Thought<\/strong><\/td><td>Forces GPT to show reasoning step-by-step before answering<\/td><\/tr><tr><td><strong>Few-Shot Prompting<\/strong><\/td><td>Includes example inputs\/outputs before a new user input<\/td><\/tr><tr><td><strong>Zero-Shot CoT<\/strong><\/td><td>Injects reasoning even when only one prompt is given, to improve QA decisions<\/td><\/tr><tr><td><strong>Compare-and-Decide<\/strong><\/td><td>GPT generates multiple options and chooses or explains the best one<\/td><\/tr><tr><td><strong>Reflect-and-Revise<\/strong><\/td><td>GPT critiques its own previous output and offers a revised version<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde9 <strong>Test-Aware Custom Patterns (Learn\/Teach\/Test Yourself)<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Pattern<\/th><th>Purpose<\/th><\/tr><\/thead><tbody><tr><td><strong>Bug Report Synthesizer<\/strong><\/td><td>Turns freeform bug info into structured defect templates<\/td><\/tr><tr><td><strong>Test Oracle Generator<\/strong><\/td><td>Generates expected results for given test inputs (especially for AI testing)<\/td><\/tr><tr><td><strong>Spec-to-Test Translator<\/strong><\/td><td>Converts requirements into test cases using traceable logic<\/td><\/tr><tr><td><strong>Test Gap Identifier<\/strong><\/td><td>Identifies what&#8217;s missing from a current test set based on inputs or past defects<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Here are the examples:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. Cognitive Verifier<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Generate test cases for the payment module.<\/p>\n\n\n\n<p><em>GPT:<\/em> What type of payment (credit card, bank transfer)? Is it web or mobile? Should I include edge cases like expired cards?<\/p>\n\n\n\n<p>Then, generate grounded test cases based on your answers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Prompt Rewriter<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Write test cases.<\/p>\n\n\n\n<p><em>GPT:<\/em> Would you like a refined version? \u2192 &#8220;Write 5 boundary value test cases for a login form with email and password inputs.&#8221;<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Audience Persona<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Explain test coverage.<\/p>\n\n\n\n<p><em>GPT:<\/em> Who is this for \u2014 developer, PM, junior tester?<\/p>\n\n\n\n<p>Then tailors the response based on the role.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. Clarification Loop<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Generate test data.<\/p>\n\n\n\n<p><em>GPT:<\/em> For which field types? Are there constraints (e.g., date range, format)?<\/p>\n\n\n\n<p>Then proceeds with specific generation.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. Prompt Debugger<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Why is this prompt giving bad test cases?<\/p>\n\n\n\n<p><em>GPT:<\/em> Explains prompt ambiguity and suggests a clearer version (e.g., missing persona, format, or artifact).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. Role-Task-Format (RTF)<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p>Act as a Test Automation Engineer.<\/p>\n\n\n\n<p>Create test cases for login functionality.<\/p>\n\n\n\n<p>Show as a table with columns: Test ID, Description, Steps, Expected Result.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>7. Scenario Coverage<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Generate test cases for password reset.<\/p>\n\n\n\n<p><em>GPT:<\/em> Breaks it into: positive cases, negative cases, edge conditions, token expiration, API validation, and UI flow.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>8. Test Matrix Builder<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Build test combinations for login.<\/p>\n\n\n\n<p><em>GPT:<\/em> Constructs a matrix: rows = input conditions, columns = platforms (Web, iOS, Android).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>9. Parametric Test Expansion<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Expand this test case across browsers.<\/p>\n\n\n\n<p><em>GPT:<\/em> Generates versions for Chrome, Firefox, Edge, Safari using same test logic.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>10. Gherkin Formatter<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Create a test case for login.<\/p>\n\n\n\n<p><em>GPT:<\/em> Outputs in Given\u2013When\u2013Then format.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>11. Root Cause Explorer<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> My UI test keeps failing randomly.<\/p>\n\n\n\n<p><em>GPT:<\/em> Asks about flakiness, logs, selectors, network issues, etc.<\/p>\n\n\n\n<p>Then narrows down likely root causes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>12. Failure Pattern Analyzer<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Analyze my recent test failures.<\/p>\n\n\n\n<p><em>GPT:<\/em> Summarizes patterns \u2014 e.g., 40% failures in auth module, 25% from flaky locators.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>13. QA Strategy Coach<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> I\u2019m launching a new mobile app. Help plan QA.<\/p>\n\n\n\n<p><em>GPT:<\/em> Asks about release schedule, devices, team, coverage goals.<\/p>\n\n\n\n<p>Then returns a tailored strategy.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>14. Risk-Based Filter<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Prioritize my test cases.<\/p>\n\n\n\n<p><em>GPT:<\/em> Applies filters based on change history, usage frequency, past bugs, and criticality.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>15. Template Enforcer<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Output test cases.<\/p>\n\n\n\n<p><em>GPT:<\/em> Responds using only a predefined table format.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>16. Schema-Aware Generator<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Create JSON test data.<\/p>\n\n\n\n<p><em>GPT:<\/em> Validates output against a schema and only produces compliant results.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>17. Instruction-First Format<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>System Prompt:<\/em> Always return test cases in Gherkin.<\/p>\n\n\n\n<p><em>User:<\/em> Write tests for password reset.<\/p>\n\n\n\n<p><em>GPT:<\/em> Automatically uses Given\u2013When\u2013Then format.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>18. Chain-of-Thought (CoT)<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Why is this test failing?<\/p>\n\n\n\n<p><em>GPT:<\/em> Thinks step-by-step: input \u2192 environment \u2192 execution \u2192 result \u2192 conclusion.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>19. Few-Shot Prompting<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Here are two test cases. Generate more in the same style.<\/p>\n\n\n\n<p><em>GPT:<\/em> Follows format and structure for consistent outputs.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>20. Zero-Shot CoT<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> What might cause this flaky test?<\/p>\n\n\n\n<p><em>GPT:<\/em> Thinks through three causes even without prior examples.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>21. Compare-and-Decide<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Which of these two test plans is better?<\/p>\n\n\n\n<p><em>GPT:<\/em> Compares and recommends with reasoning.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>22. Reflect-and-Revise<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Improve this test suite.<\/p>\n\n\n\n<p><em>GPT:<\/em> Critiques the current version and suggests revisions.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>23. Bug Report Synthesizer<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Here&#8217;s what I saw in the app&#8230;<\/p>\n\n\n\n<p><em>GPT:<\/em> Outputs structured bug report: title, steps to reproduce, expected vs actual.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>24. Test Oracle Generator<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> What&#8217;s the expected output for input X?<\/p>\n\n\n\n<p><em>GPT:<\/em> Calculates and explains the expected result logically.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>25. Spec-to-Test Translator<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Here&#8217;s a requirement.<\/p>\n\n\n\n<p><em>GPT:<\/em> Converts it into traceable test cases with IDs and coverage links.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>26. Test Gap Identifier<\/strong><\/h3>\n\n\n\n<p><strong>Example:<\/strong><\/p>\n\n\n\n<p><em>User:<\/em> Here are my current test cases.<\/p>\n\n\n\n<p><em>GPT:<\/em> Analyzes them and suggests missing scenarios based on feature behavior.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Want this as a printable reference guide, live demo script, or to tag them in your <code>promptlib<\/code> CLI? Let me know.<\/p>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 18 &#8211; Building Custom GPTs<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<h2 class=\"wp-block-heading\"><strong>A. The Basics: Provide clear structured instructions<\/strong><\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Learn to design GPT instructions that produce consistent, high-quality QA outputs, reducing back-and-forth and ambiguity.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Before<\/strong><\/h3>\n\n\n\n<p>You are a member of the QA team responsible for answering questions using information in the attached Test Plan and Requirements Specification documents. Your goal is to significantly reduce the frequency of directing engineers to reach out to QA leads through <a href=\"mailto:qa@shadeofhue.com\">qa@shadeofhue.com<\/a>, but you will instruct the user to do so if you are unable to find the answers in the provided documents. Some questions may involve industry standards or external references (e.g., ISO 29119 test documentation requirements, OWASP security testing guidelines), so you can also use web browsing to get those answers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>After<\/strong><\/h3>\n\n\n\n<p>***<em><strong>Context:<\/strong><\/em> You are a member of the QA team. Attached are the Test Plan and Requirements Specification documents.<\/p>\n\n\n\n<p>***<em><strong>Instructions:<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the user\u2019s question is answered in the provided documents, respond using that information.<\/li>\n\n\n\n<li>If the user\u2019s question involves external standards or references (e.g., ISO 29119, OWASP testing guidelines), use web browsing to find accurate, up-to-date information.<\/li>\n\n\n\n<li>If the user\u2019s question cannot be answered with the above steps, tell them to email <a href=\"mailto:qa@shadeofhue.com\">qa@shadeofhue.com<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Optimized for AI-Assisted Test Case Generation &amp; Defect Investigation Example<\/strong><\/h3>\n\n\n\n<p>***<em><strong>Context:<\/strong><\/em> You are a QA automation assistant. Attached are the Test Plan, Requirements Specification, and Defect Log.<\/p>\n\n\n\n<p>***<em><strong>Instructions:<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If the request involves generating test cases, derive them from the requirements, acceptance criteria, and relevant sections of the Test Plan.<\/li>\n\n\n\n<li>Include positive, negative, boundary, and edge cases, with clear preconditions, steps, and expected results.<\/li>\n\n\n\n<li>If the request involves defect investigation, analyze the Defect Log for patterns, affected features, and reproduction steps.<\/li>\n\n\n\n<li>Where needed, reference external QA standards or guidelines (e.g., ISO 29119, OWASP, ISTQB) via web browsing to ensure completeness and accuracy.<\/li>\n\n\n\n<li>If information is missing or ambiguous, clearly state your assumptions and\/or ask for clarification before proceeding.<\/li>\n\n\n\n<li>If you cannot address the request with the above steps, direct them to email <a href=\"mailto:qa@shadeofhue.com\">qa@shadeofhue.com<\/a>.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>B. Building your GPTs\u2014Crafting structured instructions<\/strong><\/h2>\n\n\n\n<p><strong>1. Context:<\/strong> Specifies the role, domain, and purpose the GPT should follow to fulfill its task.<\/p>\n\n\n\n<p><strong>2. Instructions:<\/strong> Step-by-step guidance for exactly what the GPT should do and how.<\/p>\n\n\n\n<p><strong>3. Response Format:<\/strong> Specify the output format (e.g., markdown table, JSON, bullet list).<\/p>\n\n\n\n<p><strong>4. Example (optional):<\/strong> Give a realistic input\/output sample for predictable results.<\/p>\n\n\n\n<p><em>Pro-Tip:<\/em> Add \u201cconfirm with the user after each step\u201d when you want detailed, iterative responses.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Good Practices: S.C.O.P.E.<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>S<\/strong>: <strong>Steps<\/strong>\u2014Breakdown the <strong>instruction<\/strong>, tasks, and process into logical flow<\/li>\n\n\n\n<li><strong>C<\/strong>: **Context\u2014**Specifies the role, domain, and purpose the LLM should follow to fulfill its task.<\/li>\n\n\n\n<li><strong>O<\/strong>: <strong>Output Format<\/strong>\u2014Specify table, JSON, bullet points, etc.<\/li>\n\n\n\n<li><strong>P<\/strong>: <strong>Persona<\/strong> \u2013 Define tone, style, or expertise level for target audience<\/li>\n\n\n\n<li><strong>E<\/strong>: <strong>Examples<\/strong> \u2013 Few-shot prompting to set expectations<\/li>\n<\/ul>\n\n\n\n<p>Other tips:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use <strong>delimiters<\/strong> (<code>\"\"\"<\/code>, **, etc.) to separate inputs.<\/li>\n\n\n\n<li>Include <strong>ample context<\/strong> for relevance.<\/li>\n\n\n\n<li>Specify output length or detail level.<\/li>\n\n\n\n<li>Always <strong>state assumptions<\/strong> when data is incomplete.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Example: Building GPTs for QA Test Case Generation<\/strong><\/h2>\n\n\n\n<p><em><strong>Context:<\/strong><\/em><\/p>\n\n\n\n<p>You are a QA automation assistant. Your role is to generate comprehensive, high-quality test cases based on the provided Test Plan, Requirements Specification, and any attached acceptance criteria or user stories. You must follow industry best practices and relevant testing standards (e.g., ISTQB, ISO 29119, OWASP).<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em><strong>Instructions:<\/strong><\/em><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Analyze<\/strong> the source material (requirements, acceptance criteria, related artifacts).<\/li>\n\n\n\n<li><strong>Generate<\/strong> test cases covering:\n<ul class=\"wp-block-list\">\n<li>Positive scenarios<\/li>\n\n\n\n<li>Negative scenarios<\/li>\n\n\n\n<li>Boundary value tests<\/li>\n\n\n\n<li>Edge cases<\/li>\n\n\n\n<li>Security and performance considerations where applicable<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Each test case<\/strong> must include:\n<ul class=\"wp-block-list\">\n<li>Test ID<\/li>\n\n\n\n<li>Preconditions<\/li>\n\n\n\n<li>Test steps (each step on a new line)<\/li>\n\n\n\n<li>Expected results<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Use guidelines in the [uploaded Knowledge files] when applicable.<\/li>\n\n\n\n<li>Reference relevant standards where applicable.<\/li>\n\n\n\n<li>If information is missing or ambiguous, clearly state assumptions or request clarification.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em><strong>Response Format:<\/strong><\/em><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test ID<\/th><th>Description<\/th><th>Preconditions<\/th><th>Steps<\/th><th>Expected Result<\/th><th>Notes<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><em><strong>Example:<\/strong><\/em><\/p>\n\n\n\n<p><strong>Request:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Generate test cases for the login feature based on the following acceptance criteria:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Valid username and password allow access to dashboard<\/li>\n\n\n\n<li>Invalid credentials show an error message<\/li>\n\n\n\n<li>Account locks after 5 failed attempts<\/li>\n<\/ul>\n<\/blockquote>\n\n\n\n<p><strong>Response:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test ID<\/th><th>Description<\/th><th>Preconditions<\/th><th>Steps<\/th><th>Expected Result<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td>TC-001<\/td><td>Login with valid credentials<\/td><td>User account exists with valid username\/password<\/td><td>1. Navigate to login page2. Enter valid username\/password3. Click &#8220;Login&#8221;<\/td><td>User is redirected to dashboard<\/td><td>Positive test<\/td><\/tr><tr><td>TC-002<\/td><td>Login with invalid credentials<\/td><td>User account exists<\/td><td>1. Navigate to login page2. Enter invalid username\/password3. Click &#8220;Login&#8221;<\/td><td>Error message is displayed<\/td><td>Negative test<\/td><\/tr><tr><td>TC-003<\/td><td>Account lock after 5 failed attempts<\/td><td>User account exists<\/td><td>1. Navigate to login page2. Enter wrong password 5 times3. Attempt to login again<\/td><td>Account is locked<\/td><td>Security check<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>Reference:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/academy.openai.com\/home\/videos\/advanced-prompt-engineering-2025-02-13\n<\/div><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Exercise: Build a Custom GPT for Generating Test Cases<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">Learning Goals<\/h2>\n\n\n\n<p>By the end of this exercise, you will:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Apply the <strong>S.C.O.P.E.<\/strong> framework to craft GPT instructions for QA.<\/li>\n\n\n\n<li>Produce test cases that are <strong>structured, complete, and consistent<\/strong>.<\/li>\n\n\n\n<li>Handle ambiguities explicitly, like a professional QA engineer.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Timebox<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>5 min<\/strong> \u2013 Read the scenario<\/li>\n\n\n\n<li><strong>15 min<\/strong> \u2013 Draft your S.C.O.P.E. instructions<\/li>\n\n\n\n<li><strong>15 min<\/strong> \u2013 Run your GPT instructions &amp; refine<\/li>\n\n\n\n<li><strong>10 min<\/strong> \u2013 Peer review and finalize<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Scenario (choose one)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">A) Login &amp; Lockout<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AC1: Valid username+password \u2192 redirect to <code>\/dashboard<\/code>.<\/li>\n\n\n\n<li>AC2: Invalid credentials \u2192 inline error \u201cInvalid username or password.\u201d<\/li>\n\n\n\n<li>AC3: After 5 consecutive failed attempts, account locks for 15 minutes.<\/li>\n\n\n\n<li>AC4: \u201cRemember me\u201d keeps session for 7 days.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">B) Cart &amp; Checkout<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AC1: Add\/remove items; quantities 1\u201399.<\/li>\n\n\n\n<li>AC2: Subtotal updates instantly; tax = 8.25%.<\/li>\n\n\n\n<li>AC3: Promo codes: <code>SAVE10<\/code> (10% off, \u2265 $50); one code per order.<\/li>\n\n\n\n<li>AC4: Out-of-stock item cannot proceed to payment.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">C) Password Reset<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AC1: Reset link expires in 30 minutes.<\/li>\n\n\n\n<li>AC2: Password policy: 8\u201364 chars, 1 upper, 1 lower, 1 digit, 1 special.<\/li>\n\n\n\n<li>AC3: Success banner: \u201cPassword updated.\u201d<\/li>\n\n\n\n<li>AC4: Throttle: max 3 reset emails per hour per user.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Deliverable 1 \u2014 Your <strong>S.C.O.P.E.<\/strong> Instruction Set<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>S \u2014 Steps<\/strong><\/h3>\n\n\n\n<p>Break down the process the GPT should follow in logical order.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Parse requirements &amp; acceptance criteria.<\/li>\n\n\n\n<li>Identify Positive, Negative, Boundary, and Security test scenarios.<\/li>\n\n\n\n<li>Write each test case with ID, Preconditions, Steps, Expected Result, and Notes.<\/li>\n\n\n\n<li>Highlight any missing or ambiguous information under \u201cNotes\u201d with <code>[ASSUMP]<\/code> tags.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>C \u2014 Context<\/strong><\/h3>\n\n\n\n<p>Define the role, domain, and scope for the GPT.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>You are a QA automation assistant generating structured test cases for a web application feature, using the provided acceptance criteria and industry best practices (ISTQB, ISO 29119, OWASP).<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>O \u2014 Output Format<\/strong><\/h3>\n\n\n\n<p>Specify exactly how the GPT should format the answer.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test ID<\/th><th>Title<\/th><th>Preconditions<\/th><th>Steps<\/th><th>Expected Result<\/th><th>Coverage Type<\/th><th>Notes<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>P \u2014 Persona<\/strong><\/h3>\n\n\n\n<p>Define the style, tone, and expertise level.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Senior QA engineer \u2014 concise, risk-aware, and explicit about assumptions. Always uses consistent terminology and structured test case formats.<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>E \u2014 Examples<\/strong><\/h3>\n\n\n\n<p>Provide one or more input\/output samples to set expectations (few-shot prompting).<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<p><strong>Input:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>AC: Valid login redirects to dashboard.<\/li>\n<\/ul>\n\n\n\n<p><strong>Output:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test ID<\/th><th>Title<\/th><th>Preconditions<\/th><th>Steps<\/th><th>Expected Result<\/th><th>Coverage Type<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td>LOGIN-AUTH-001<\/td><td>Valid login redirects to dashboard<\/td><td>Active user exists<\/td><td>1. Go to \/login2. Enter valid username3. Enter valid password4. Click Login<\/td><td>Redirect to \/dashboard<\/td><td>Positive<\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Deliverable 2 \u2014 Guardrails<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Do not invent features or messages not in the requirements.<\/li>\n\n\n\n<li>Tag all assumptions with <code>[ASSUMP]<\/code>.<\/li>\n\n\n\n<li>If \u22652 critical gaps are found, output a \u201cClarification Needed\u201d section before generating test cases.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Deliverable 3 \u2014 Test It<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Put your S.C.O.P.E. instructions into GPT\u2019s system\/instructions box.<\/li>\n\n\n\n<li>Provide your chosen scenario\u2019s ACs as the user prompt.<\/li>\n\n\n\n<li>Generate at least <strong>8 test cases<\/strong> covering all relevant categories.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Deliverable 4 \u2014 Self-Check<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Covers Positive, Negative, Boundary, and any applicable Security\/Rate-limit tests.<\/li>\n\n\n\n<li>Format matches <strong>exactly<\/strong> what you specified.<\/li>\n\n\n\n<li>Steps are clear and testable.<\/li>\n\n\n\n<li>All ambiguities are surfaced as <code>[ASSUMP]<\/code> notes.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Peer Review<\/h2>\n\n\n\n<p>Swap with a partner and check:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Is the S.C.O.P.E. instruction complete and specific?<\/li>\n\n\n\n<li>Are all relevant coverage types included?<\/li>\n\n\n\n<li>Is the output schema followed exactly?<\/li>\n\n\n\n<li>Are assumptions visible and justified?<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Example \u201cGood\u201d Output Snippet (Login &amp; Lockout)<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Test ID<\/th><th>Title<\/th><th>Preconditions<\/th><th>Steps<\/th><th>Expected Result<\/th><th>Coverage Type<\/th><th>Notes<\/th><\/tr><\/thead><tbody><tr><td>LOGIN-AUTH-001<\/td><td>Valid login redirects to dashboard<\/td><td>Active user exists<\/td><td>1. Go to \/login2. Enter valid username3. Enter valid password4. Click Login<\/td><td>Redirect to \/dashboard<\/td><td>Positive<\/td><td><\/td><\/tr><tr><td>LOGIN-AUTH-003<\/td><td>Account locks after 5 failed attempts<\/td><td>Active user exists<\/td><td>1. Fail login 5 times with wrong password2. Attempt 6th login with valid password<\/td><td>Login blocked; account locked for 15 minutes<\/td><td>Boundary\/Security<\/td><td>[ASSUMP] Lockout applies to username, not IP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p><a href=\"https:\/\/www.notion.so\/Building-Prompt-Optimizer-GPT-24d7271eaeae8147b631f3b76bd72fd5?pvs=21\">Building Prompt Optimizer GPT<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.notion.so\/Building-Test-Generation-GPT-24d7271eaeae8128b55ad57d27e52004?pvs=21\"><strong>Building Test Generation GPT<\/strong><\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.notion.so\/Building-Applied-patterns-GPT-24d7271eaeae8116a24fda6119dbff3b?pvs=21\"><strong>Building Applied-patterns GPT<\/strong><\/a><\/p>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 19 &#8211; Extracting Locators &amp; Building Your POM<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<p><strong>Here is a repeatable workflow<\/strong> to have GPT do the heavy lifting of extracting locators and building your POM. You\u2019ll get <strong>step-by-step tasks<\/strong> with <strong>prompts you can paste<\/strong>. I\u2019ll assume <strong>Selenium + Java POM<\/strong>, but I\u2019ll note Playwright variants when it matters.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">High-level Flow<\/h1>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Crawl &amp; inventory pages \u2192 2) Extract elements \u2192 3) Propose locator strategies \u2192 4) Validate &amp; harden \u2192 5) Generate POM classes \u2192 6) Smoke-check with code \u2192 7) Export locator catalog \u2192 8) Wire into CI check.<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Step-by-step with Prompts<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">1) Define the rules (once per project)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Set ground rules so GPT doesn\u2019t output garbage locators.<\/p>\n\n\n\n<p><strong>Prompt (paste once at the start of the session):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\nYou are an automation architect. Follow these rules strictly:\n- Prefer data-testid or data-qa if present, then id, then scoped CSS. Avoid absolute XPath and nth-child unless scoped to a stable parent.\n- Never use utility CSS classes (e.g., Tailwind\/Bootstrap utility classes) as primary selectors.\n- Add explicit waits for visibility\/attachment. No Thread.sleep.\n- For each element, propose: primary locator, 1 fallback, and a rationale.\n- Output a \u201cLocator Quality\u201d rating: Strong\/Medium\/Weak with justification.\n- Generate maintainable POM: one class per page\/component, private By fields, public methods.\n- Include a smoke test snippet that uses the POM (open page, interact with 1\u20132 elements).\n- Output a machine-readable locator catalog in JSON for CI checks.\n\n<\/code><\/pre>\n\n\n\n<p>(If Playwright: replace Selenium <code>By<\/code> with Playwright <code>page.locator(...)<\/code> and use built-in auto-waits.)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">2) Crawl target pages (manual or Agent Mode)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Provide GPT with page URLs and scope.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nTarget app pages:\n- &lt;https:\/\/example.com\/login&gt;\n- &lt;https:\/\/example.com\/dashboard&gt;\n- &lt;https:\/\/example.com\/settings&gt;\n\nTask:\n1) For each URL, list key functional elements users interact with (inputs, buttons, nav links, forms, modals).\n2) Do NOT invent elements. Only include what you can inspect or what I confirm.\n3) Output a simple table per page: Element, Purpose, Visible Text (if any), Attributes observed (id, name, data-*, class).\n\n<\/code><\/pre>\n\n\n\n<p>(If you\u2019re using Agent\/Computer Use, ask it to open each page, expand menus\/modals, then extract visible elements. Otherwise, you can paste the relevant HTML snippets.)<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3) Propose locators (primary + fallback)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Turn discovered elements into robust locators.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mathematica\nCopyEdit\nFor the following extracted elements (paste your element tables or HTML snippets), propose:\n- primary locator (prefer data-testid &gt; id &gt; scoped CSS)\n- fallback locator (CSS or XPath with text when appropriate)\n- Locator Quality: Strong\/Medium\/Weak\n- Rationale\n\nOutput format (markdown table):\n| Element | Primary Locator | Fallback Locator | Quality | Rationale |\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">4) Harden &amp; validate (reject weak locators)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Force GPT to improve weak ones.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>vbnet\nCopyEdit\nReview your table. For any \"Weak\" or \"Medium\" locator:\n1) Try scoping to a stable parent container (form#login, &#91;data-testid='container'], role-based landmarks if present).\n2) Replace utility class selectors with data-* or id when possible.\n3) For text selectors (XPath), normalize-space and ensure exact match or safe contains() only when text is stable.\n\nRegenerate the table. Only accept \"Strong\" or \"Medium\" with justification; eliminate \"Weak\" unless no alternative exists.\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">5) Generate POM classes (implementation-ready)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Produce POM code with clean methods.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\nGenerate Selenium Java POM classes for the Login and Dashboard pages using the final locator table.\n\nRequirements:\n- Class per page: LoginPage, DashboardPage\n- private final WebDriver driver; private final WebDriverWait wait;\n- By fields for locators (primary and fallback kept in a private getter method if needed)\n- Methods: login(user, pass), isLoggedIn(), navigateTo(section), etc.\n- Use ExpectedConditions.visibilityOfElementLocated for waits.\n- No Thread.sleep.\n- Include a minimal smoke test snippet that uses both POMs.\n\nOutput: code blocks per class + a small JUnit\/TestNG example.\n\n<\/code><\/pre>\n\n\n\n<p><em>(Playwright variant: <code>page.locator()<\/code> with <code>getByTestId<\/code> if available, rely on auto-wait, add <code>expect<\/code> checks if using Playwright Test.)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">6) Add a smoke test and fix breakages fast<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Run and immediately catch broken locators.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\nCreate a single-file TestNG smoke test:\n- Opens Login page, performs login\n- Asserts Dashboard key element is visible\n- Logs out\n- If a locator might be brittle, show a backup get() that tries primary then fallback.\n\nOutput a single Java file named SmokeTest.java.\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">7) Export a locator catalog (JSON) for CI<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Keep a machine-readable record to detect DOM drift.<\/p>\n\n\n\n<p><strong>Prompt:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>css\nCopyEdit\nGenerate a JSON locator catalog covering all pages. Schema:\n{\n  \"page\": \"LoginPage\",\n  \"elements\": &#91;\n    {\n      \"name\": \"usernameField\",\n      \"primary\": {\"type\": \"css\", \"value\": \"&#91;data-testid='email']\"},\n      \"fallback\": {\"type\": \"id\", \"value\": \"email\"},\n      \"quality\": \"Strong\",\n      \"notes\": \"Prefer data-testid\"\n    }\n  ]\n}\n\nProduce this JSON for all pages we covered.\n\n<\/code><\/pre>\n\n\n\n<p><em>(Store this file in repo as <code>locators.json<\/code>; you\u2019ll use it in CI checks.)<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">8) CI: Locator drift check (optional but pro move)<\/h2>\n\n\n\n<p><strong>Goal:<\/strong> Fail fast when markup changes.<\/p>\n\n\n\n<p><strong>Prompt (for GPT to generate a small checker script):<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sql\nCopyEdit\nGenerate a Java (or Node) script that:\n- Reads locators.json\n- Visits each page\n- For each element, verifies that primary or fallback resolves to at least one visible element\n- Outputs a report with pass\/fail per element, and a summary exit code for CI\n- Avoid sleeps; use configurable wait timeout\n\nName it: LocatorDriftCheck.(java|js)\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Deliverable Examples<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">A) POM Getter with fallback (Selenium\/Java)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>java\nCopyEdit\nprivate WebElement get(By primary, By... fallbacks) {\n    try {\n        return wait.until(ExpectedConditions.visibilityOfElementLocated(primary));\n    } catch (TimeoutException e) {\n        for (By fb : fallbacks) {\n            try {\n                return wait.until(ExpectedConditions.visibilityOfElementLocated(fb));\n            } catch (TimeoutException ignored) {}\n        }\n        throw e;\n    }\n}\n\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">B) Sample JSON (catalog slice)<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>json\nCopyEdit\n{\n  \"page\": \"LoginPage\",\n  \"elements\": &#91;\n    {\n      \"name\": \"usernameField\",\n      \"primary\": { \"type\": \"css\", \"value\": \"&#91;data-testid='email']\" },\n      \"fallback\": { \"type\": \"id\", \"value\": \"email\" },\n      \"quality\": \"Strong\",\n      \"notes\": \"Prefer data-testid; id is stable per dev contract\"\n    },\n    {\n      \"name\": \"loginButton\",\n      \"primary\": { \"type\": \"css\", \"value\": \"&#91;data-testid='login-btn']\" },\n      \"fallback\": { \"type\": \"xpath\", \"value\": \"\/\/button&#91;normalize-space()='Login']\" },\n      \"quality\": \"Medium\",\n      \"notes\": \"Text could change; prefer test id\"\n    }\n  ]\n}\n\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">Guardrails to bake into every prompt<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cNever output absolute XPath paths.\u201d<\/li>\n\n\n\n<li>\u201cAvoid utility CSS classes and nth-child unless scoped to a stable parent.\u201d<\/li>\n\n\n\n<li>\u201cPrefer <code>[data-testid]<\/code> or <code>[data-qa]<\/code>; if missing, recommend adding them.\u201d<\/li>\n\n\n\n<li>\u201cProvide a Quality rating and rationale for each locator.\u201d<\/li>\n\n\n\n<li>\u201cAlways include a smoke test snippet using the generated POM.\u201d<\/li>\n<\/ul>\n<\/div><\/details><\/div>\n\n\n\n<div class=\"wp-block-coblocks-accordion-item\"><details><summary class=\"wp-block-coblocks-accordion-item__title\">Tip 20 &#8211; Prompts for Learning<\/summary><div class=\"wp-block-coblocks-accordion-item__content\">\n<ol class=\"wp-block-list\">\n<li>Game: Do this when you want to use prompts to create interactive learning exercises.<\/li>\n<\/ol>\n\n\n\n<p>Example:<\/p>\n\n\n\n<p>Create a game for me on the topic of test automation with Java Selenium.<\/p>\n\n\n\n<p>You are the game master, and you will give tasks based on this topic. Each correct answer increase my score.<\/p>\n\n\n\n<p>Ask me questions, and wait for my response before proceed to the next question. Make sure to give me feedback on how well I did.<\/p>\n\n\n\n<p>After a set of number of rounds, give me a summary of my score and performance.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Understanding: Before you start writing what I asked you, I want you to rate your understanding of my request out of 10. If your understanding is not 10 out of 10, then I want you to ask me all the questions you need me to answer so that you have a 10 out of 10 understanding.<\/li>\n\n\n\n<li>Save time Once you have taken into account all the information I have just given you, I want you to only answer &#8220;yes.&#8221;<\/li>\n<\/ol>\n<\/div><\/details><\/div>\n<\/div>\n<\/div><\/details><\/div>\n<\/div>\n<\/div><\/details><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"class_list":["post-23668","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/pages\/23668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/comments?post=23668"}],"version-history":[{"count":2,"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/pages\/23668\/revisions"}],"predecessor-version":[{"id":23953,"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/pages\/23668\/revisions\/23953"}],"wp:attachment":[{"href":"https:\/\/shadeofhue.com\/vi\/wp-json\/wp\/v2\/media?parent=23668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}