{
    "componentChunkName": "component---src-templates-page-jsx",
    "path": "/docs/test-management/atto/best-practices/writing-best-prompts/",
    "result": {"data":{"markdownRemark":{"html":"<br>\n<p><strong>You don’t need more test cases. You need the right ones. This guide shows you how.</strong></p>\n<hr>\n<p>Prompts are the primary way you guide Atto to generate accurate and relevant test cases. A well-written prompt tells Atto what you're testing, how it works, and what you are expecting to see.</p>\n<p>You’re not “using Atto.” You’re working with Atto, your coworker who works fast, follows instructions, and doesn’t guess. </p>\n<hr>\n<h2 id=\"why-prompts-matter\" style=\"position:relative;\"><a href=\"#why-prompts-matter\" aria-label=\"why prompts matter permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Why Prompts Matter?</strong></h2>\n<p>In AI-augmented testing, prompting is context engineering. You're not just giving instructions; you're shaping Atto’s understanding of the feature, constraints, and test goals.</p>\n<p><strong>Good prompts lead to:</strong></p>\n<ul>\n<li>More relevant and precise test cases</li>\n<li>Better edge case handling</li>\n<li>Smarter suggestions and optimizations</li>\n<li>Less back-and-forth and reduced rework</li>\n</ul>\n<hr>\n<h2 id=\"what-makes-a-good-prompt\" style=\"position:relative;\"><a href=\"#what-makes-a-good-prompt\" aria-label=\"what makes a good prompt permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>What Makes a Good Prompt?</strong></h2>\n<p>Think of a prompt like a well-written test case title or bug report. It should be clear, contextual, and actionable.</p>\n<p><strong>Use the WHO + WHAT + WHY + HOW + EXAMPLES model:</strong></p>\n<table>\n<thead>\n<tr>\n<th><strong>Element</strong></th>\n<th><strong>Description</strong></th>\n<th><strong>Example</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>WHO</strong></td>\n<td>User role or system under test</td>\n<td>“As a registered user…”</td>\n</tr>\n<tr>\n<td><strong>WHAT</strong></td>\n<td>Feature or action being tested</td>\n<td>“…resetting a password…”</td>\n</tr>\n<tr>\n<td><strong>WHY</strong></td>\n<td>Purpose or expected behavior</td>\n<td>“…to ensure expired tokens are handled.”</td>\n</tr>\n<tr>\n<td><strong>HOW</strong></td>\n<td>Constraints, variations, platforms</td>\n<td>“Include 2FA and expired token scenarios.”</td>\n</tr>\n<tr>\n<td><strong>EXAMPLES</strong></td>\n<td>Seed inputs or expected output</td>\n<td>“E.g., the token expires after 10 minutes.”</td>\n</tr>\n</tbody>\n</table>\n<hr>\n<h2 id=\"prompt-builder-checklist\" style=\"position:relative;\"><a href=\"#prompt-builder-checklist\" aria-label=\"prompt builder checklist permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Prompt Builder Checklist</strong></h2>\n<p>Use this framework to structure your prompt before submitting it:</p>\n<ul>\n<li><strong>Goal</strong>: What do you want Atto to generate or help with?</li>\n<li><strong>Context</strong>: What feature, flow, or user story is involved?</li>\n<li><strong>Inputs</strong>: Did you attach Stories, Files, Designs and other relevant files?</li>\n<li><strong>Edge Cases</strong>: Any tricky or high-risk conditions to include?</li>\n</ul>\n<p>If that’s all in, you’re good!</p>\n<hr>\n<h2 id=\"pro-tips\" style=\"position:relative;\"><a href=\"#pro-tips\" aria-label=\"pro tips permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Pro Tips</strong></h2>\n<ul>\n<li><strong>Use personas</strong>: “As a manual tester…” or “As a mobile user…”</li>\n<li>Tag old stories, test cases, or flows if they’re relevant</li>\n<li><strong>Refine iteratively</strong>: Refine tests with Atto to make them test-ready.</li>\n</ul>\n<hr>\n<h2 id=\"prompt-templates-and-examples\" style=\"position:relative;\"><a href=\"#prompt-templates-and-examples\" aria-label=\"prompt templates and examples permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Prompt Templates and Examples</strong></h2>\n<p>Here are some templates along with examples that you can copy-paste and edit based on your needs:</p>\n<p><strong>Template 1</strong></p>\n<table>\n<thead>\n<tr>\n<th><strong>Template 1: Test Case Generation Prompt</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Goal:</strong> Generate test cases for <strong>[feature or process]</strong>.<br><br><strong>What I Have:</strong><br>[User roles or types]<br>[Payment or interaction methods]<br>[Supporting features or integrations]<br><br><strong>What I Want:</strong><br>Cover [all combinations / edge cases / failures / retries]<br>Include [validation / exception / third-party behavior]<br><br><strong>Expected Outcomes:</strong><br>[Comprehensive coverage / error handling / reliability / messaging]</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Example:</strong> </p>\n<ul>\n<li><strong>Goal</strong>: Generate test cases for an e-commerce checkout process.</li>\n<li>\n<p><strong>What I Have</strong>:</p>\n<ul>\n<li>Guest and logged-in users  </li>\n<li>Payment methods: Credit Card, UPI, Wallet, COD  </li>\n<li>Coupon application and address validation  </li>\n<li>Order confirmation via email and SMS</li>\n</ul>\n</li>\n<li>\n<p><strong>What I Want:</strong></p>\n<ul>\n<li>Cover all user types and payment combinations  </li>\n<li>Include payment failures, coupon misuse, and invalid addresses  \\</li>\n<li>Validate order confirmation triggers</li>\n</ul>\n</li>\n<li>\n<p><strong>Expected Outcomes:</strong></p>\n<ul>\n<li>Thorough coverage of all checkout variations  </li>\n<li>Graceful handling of failures and retries  </li>\n<li>Reliable confirmation notifications and user feedback</li>\n</ul>\n</li>\n</ul>\n<hr>\n<p><strong>Template 2</strong></p>\n<table>\n<thead>\n<tr>\n<th><strong>Template 2: Test Case Generation Prompt</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Goal:</strong> Generate test cases for <strong>[banking feature]</strong>.<br><br><strong>What I Have:</strong><br>[Transfer modes or account types]<br>[User roles: Retail, Corporate, etc.]<br>[Limits, authentication, schedules]<br><br><strong>What I Want:</strong><br>Test all valid transfer paths<br>Include invalid account numbers, failed OTPs, and limit breaches<br>Check for audit trails and customer alerts<br><br><strong>Expected Outcomes:</strong><br>High-confidence coverage of fund transfer logic<br>Secure, validated, and compliant flows<br>Complete visibility into failures and success tracking</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Example:</strong> </p>\n<ul>\n<li><strong>Goal</strong>: Generate test cases for the funds transfer feature in a banking app.</li>\n<li>\n<p><strong>What I Have</strong>:</p>\n<ul>\n<li>Transfer modes: NEFT, IMPS, RTGS  </li>\n<li>Users: Retail and Corporate  </li>\n<li>Daily and per-transaction transfer limits  </li>\n<li>2FA with OTP and beneficiary validation</li>\n</ul>\n</li>\n<li>\n<p><strong>What I Want:</strong></p>\n<ul>\n<li>Cover all transfer modes with different limits  </li>\n<li>Include failures due to OTP mismatch, invalid IFSC, and expired sessions  </li>\n<li>Check logs and notifications for every success/failure</li>\n</ul>\n</li>\n<li>\n<p><strong>Expected Outcomes:</strong></p>\n<ul>\n<li>Accurate validation of fund transfers and limit checks  </li>\n<li>Secure handling of auth failures and retries  </li>\n<li>Auditable and user-notified transaction outcomes</li>\n</ul>\n</li>\n</ul>\n<hr>\n<p><strong>Template 3</strong></p>\n<table>\n<thead>\n<tr>\n<th><strong>Template 3: Test Case Generation Prompt</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><strong>Goal:</strong> Generate test cases for <strong>[travel feature]</strong>.<br><br><strong>What I Have:</strong><br>[User types: guest, registered]<br>[Booking types: one-way, round-trip, multi-city]<br>[Payment methods, loyalty points, refund/reschedule policies]<br><br><strong>What I Want:</strong><br>Test booking and modification flows across flight types<br>Include failures in passenger input, payment, and rescheduling logic<br>Cover scenarios around refund eligibility and penalties<br><br><strong>Expected Outcomes:</strong><br>Full validation of booking and post-booking changes<br>Smooth error recovery for user actions and backend failures<br>User clarity through pricing, penalties, and confirmation messages</td>\n</tr>\n</tbody>\n</table>\n<p><strong>Example:</strong></p>\n<ul>\n<li><strong>Goal</strong>: Generate test cases for flight booking and rescheduling.</li>\n<li>\n<p><strong>What I Have</strong>:</p>\n<ul>\n<li>User types: Guest and Registered  </li>\n<li>Flight types: One-way, Round-trip, Multi-city  </li>\n<li>Payment via Cards and Travel Points  </li>\n<li>Free reschedule within 24 hrs, fee after that</li>\n</ul>\n</li>\n<li>\n<p><strong>What I Want</strong>:</p>\n<ul>\n<li>Test each flight type for both user roles  </li>\n<li>Include incorrect passport data, payment timeouts, and invalid rebooking  </li>\n<li>Check eligibility and behavior for free vs. fee-based changes</li>\n</ul>\n</li>\n<li>\n<p><strong>Expected Outcomes</strong>:</p>\n<ul>\n<li>Clear, working flows for bookings and updates  </li>\n<li>Reliable enforcement of rescheduling rules  </li>\n<li>Accurate pricing, refund, and confirmation at every step</li>\n</ul>\n</li>\n</ul>\n<hr>\n<blockquote>\n<h2 id=\"need-help\" style=\"position:relative;\"><a href=\"#need-help\" aria-label=\"need help permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a><strong>Need help?</strong></h2>\n<p>Have a complex scenario where you need help to write your prompt? We’re all ears. Reach out to our product experts at <strong>replytms@testsigma.com</strong>. </p>\n</blockquote>\n<hr>","frontmatter":{"title":"Writing Best Prompts that Generate the Best Test Cases","page_title":"How to Write the Best Prompts that Generate the Best Test Cases","metadesc":"Learn how to write clear prompts that guide Atto to generate accurate, relevant test cases. No rework, just the ones you need with right prompts.","noindex":false,"contextual_links":[{"type":"section","name":"Contents","url":null},{"type":"link","name":"Why Prompts Matter?","url":"#why-prompts-matter?"},{"type":"link","name":"What Makes a Good Prompt?","url":"#what-makes-a-good-prompt"},{"type":"link","name":"Prompt Builder Checklist","url":"#prompt-builder-checklist"},{"type":"link","name":"Pro Tips","url":"#pro-tips"},{"type":"link","name":"Prompt Templates and Examples","url":"#prompt-templates-and-examples"}]},"fields":{"slug":"/docs/test-management/atto/best-practices/writing-best-prompts/"}}},"pageContext":{"slug":"/docs/test-management/atto/best-practices/writing-best-prompts/","prev":{"fields":{"slug":"/docs/test-management/atto/best-practices/generating-test-cases/"},"frontmatter":{"title":"Best Practices to Generate Test Cases with Atto","metadesc":"Learn best practices to generate comprehensive test cases using Atto’s capabilities | Simplify and accelerate test automation with using the best practoces for test generation","canonical":null,"keywords":null,"social_share_summary":null,"social_share_desc":null,"social_share_image":null,"noindex":false}},"next":{"fields":{"slug":"/docs/test-management/reports/create-report/"},"frontmatter":{"title":"Creating Reports","metadesc":"Learn how to create reports in Test Management by Testsigma | Reports help you analyze test execution, track progress, and identify defect trends in test cycles","canonical":null,"keywords":null,"social_share_summary":null,"social_share_desc":null,"social_share_image":null,"noindex":false}}}},
    "staticQueryHashes": ["2855385900","63159454"]}