Prompt lesson · 19 prompts
Automated Test Script Development prompts for Quality Assurance Testers
19 ready-to-use prompts from our AI for Quality Assurance Testers course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.
API Test Script Development
Use this when you need to create automated test scripts for API testing, including request and response validation.
Role You are an expert in API testing and automation. Your goal is to help me develop robust automated test scripts for API endpoints, focusing on request and response validation.
Context you provide
- {{api_endpoint}}: The specific API endpoint to test (e.g., /users).
- {{request_details}}: HTTP method, headers, body, and parameters.
- {{response_validation}}: Expected status codes, response structure, and data values.
Instructions
- Ask for missing details about the endpoint, request, and expected response.
- Write a test script in a popular framework (e.g., Postman, pytest, or JavaScript) that sends the request and validates the response.
- Include error handling and assertions for status codes, response time, and data integrity.
- Suggest best practices for organizing and running the tests.
- Provide guidance on covering edge cases and negative scenarios.
Output format Provide the script in a code block with comments, followed by a brief explanation of how to run it and what it validates. Use a clear, instructional tone.
Guardrails
- Do not assume endpoint details; ask for them.
- Ensure the script is syntactically correct for the chosen framework.
- Stay focused on API testing; avoid unrelated code.
Example
- {{api_endpoint}}: https://api.example.com/v1/users; {{request_details}}: GET with auth token; {{response_validation}}: 200 status, JSON array of users.
Open this prompt Coding · Intermediate
CI-Ready Test Script Integration
Use this when you need to integrate automated test scripts with continuous integration tools for seamless testing automation.
Role You are a DevOps engineer specializing in CI/CD pipelines and automated testing. Your goal is to ensure test scripts integrate smoothly with CI tools, enabling reliable and efficient testing.
Context you provide
- {{test_script_details}}: What your test scripts do (e.g., unit, integration, end-to-end) and the language/framework used.
- {{ci_tool}}: The continuous integration tool you're using or considering (e.g., Jenkins, GitHub Actions, GitLab CI).
- {{integration_goal}}: What you want to achieve (e.g., run tests on every commit, parallel execution, reporting).
Instructions
- If any inputs are missing, ask for them before proceeding.
- Provide a test script example that is compatible with the specified CI tool, including necessary configuration (e.g., YAML for GitHub Actions).
- Recommend best practices for integration, such as using environment variables, handling dependencies, and generating test reports.
- Identify common integration challenges (e.g., flaky tests, timeouts) and provide solutions.
- Suggest how to ensure compatibility with future CI tool updates (e.g., using standard interfaces, avoiding deprecated features).
Output format Provide a structured response with sections: Example Script, Integration Best Practices, Common Challenges and Solutions, and Future-Proofing. Use code blocks for the script and configuration. Keep it practical and concise.
Guardrails
- Do not assume the test framework; ask if not provided.
- Avoid vendor-specific advice unless the CI tool is specified.
- Stay focused on test script integration; do not cover general CI/CD design.
Example
- {{test_script_details}}: Python pytest tests for a web app
- {{ci_tool}}: GitHub Actions
- {{integration_goal}}: Run tests on pull requests and main branch
Open this prompt Planning · Intermediate
Data-Driven Test Script Development
Use this when you need to create comprehensive test scripts that cover multiple data sets and edge cases for software releases.
Open this prompt Creating · Intermediate
Develop Cross-Browser Test Scripts
Use this when you need to create automated test scripts to verify your web application works across multiple browsers.
Open this prompt Creating · Intermediate
Document Test Scripts Thoroughly
Use this when you need to create clear, comprehensive documentation for automated test scripts, including usage and maintenance.
Open this prompt Writing · Beginner
Execute and Analyze Test Scripts
Use this when you need to run automated test scripts, document results, and identify issues or improvements.
Open this prompt Automation · Intermediate
Generate Web App Test Scripts
Use this when you need to create test scripts for web applications covering form submissions, navigation, and user interactions.
Open this prompt Coding · Intermediate
Identify Test Cases for Scenarios
Use this when you need to generate comprehensive test cases for a given scenario, including edge cases and negative tests.
Open this prompt Analysis · Beginner
Integrate Test Scripts with CI/CD
Use this when you need guidance on integrating automated test scripts into CI/CD pipelines for seamless testing.
Open this prompt Planning · Advanced
Maintain Automated Test Scripts
Use this when you need to update and maintain automated test scripts in response to application changes, ensuring they remain accurate and reliable.
Open this prompt Planning · Intermediate
Maintain Automated Test Scripts
Use this when you need to create or update automated test scripts to keep them effective as applications evolve.
Open this prompt Creating · Intermediate
Manage Test Script Versions
Use this when you need to manage, document, and communicate changes to automated test scripts.
Open this prompt Planning · Beginner
Mobile App Test Script Development
Use this when you need to create automated test scripts for mobile apps, covering touch interactions and device-specific scenarios.
Open this prompt Creating · Intermediate
Test Data Preparation
Use this when you need to generate and organize test data for automated testing.
Open this prompt Creating · Intermediate
Test Script Debugging
Use this when you need to identify and fix issues in automated test scripts to improve reliability and efficiency.
Open this prompt Analysis · Intermediate
Test Script Documentation
Use this when you need to create clear and comprehensive documentation for automated test scripts.
Open this prompt Writing · Beginner
Test Script Optimization
Use this when you need to optimize test scripts to improve efficiency and coverage without compromising quality.
Open this prompt Analysis · Intermediate
Test Script Reporting
Use this when you need to generate clear, actionable reports from automated test script results, including failure analysis and trends.
Open this prompt Analysis · Intermediate
Write Automated Test Scripts
Use this when you need to write automated test scripts for specific test cases, such as login or checkout processes.
Open this prompt Coding · Intermediate