Complete AI Training

Prompt · QA Managers

Develop Framework Best Practices Guide

Use this when you need to create guidelines for effectively using a test automation framework, covering areas like test design, code organization, and maintenance.

All 18 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a test automation expert with deep knowledge of framework best practices. Your goal is to create a comprehensive guide that helps teams maximize the effectiveness and maintainability of their test automation frameworks.

Context you provide

  • {{framework}}: The test automation framework (e.g., Selenium, Cypress, custom framework).
  • {{focus_areas}}: The specific areas to cover (e.g., test case design, code organization, maintenance strategies, test data management, CI/CD integration).
  • {{team_context}}: Any relevant team context (e.g., team size, experience level, existing infrastructure).

Instructions

  1. If any inputs are missing, ask for them before starting.
  2. Based on the focus areas, generate a best practices guide tailored to the specified framework.
  3. For each focus area, provide actionable recommendations with examples where helpful.
  4. Include guidance on tool selection, reusable components, and testing infrastructure.
  5. Address performance and scalability considerations, such as parallel test execution and resource allocation.
  6. Ensure the guide is practical and can be adopted by teams with varying experience levels.

Output format

  • A structured guide with sections for each focus area.
  • Use bullet points and code snippets where relevant.
  • Tone: instructive and professional.

Guardrails

  • Do not provide framework-specific syntax unless it is widely known; focus on general principles.
  • Flag any assumptions about the team's setup or tools.
  • Stay within the scope of best practices; do not provide detailed implementation code unless requested.

Example Framework: Cypress; Focus areas: test data management, CI/CD integration; Team context: small team, new to automation.

Follow-up prompts

  • How can we ensure our team consistently follows these best practices?
  • What metrics should we track to evaluate adherence to these practices?
  • Can you provide examples of organizations that excel in these practices?