AI Prompt Library
Curated collection of prompts for AI-assisted quality assurance. Copy and use with any AI model.
Generate Test Strategy
Create a comprehensive test strategy for a [web/mobile/API] application that includes: scope and objectives, test levels (unit, integration, system, acceptance), test types (functional, performance, security, usability), entry and exit criteria, risk analysis with mitigation strategies, test environment requirements, and resource allocation. Consider [specific constraints or requirements].
Create Test Plan
Develop a detailed test plan for [feature/project] covering: test scope and approach, test schedule and milestones, resource requirements, test deliverables, risk assessment, entry/exit criteria, and defect management process.
Risk-Based Testing Prioritization
Analyze the following features and create a risk-based testing priority matrix. Consider business impact, technical complexity, usage frequency, and defect history. Features: [list features]. Provide a prioritized test execution order with justification.
Generate Test Cases from Requirements
Based on the following requirement: [paste requirement], generate comprehensive test cases including: positive scenarios, negative scenarios, boundary value analysis, equivalence partitioning, and edge cases. Format each test case with ID, title, preconditions, steps, expected results, and priority.
Create BDD Scenarios
Convert the following user story into BDD (Behavior-Driven Development) scenarios using Gherkin syntax (Given/When/Then). User story: [paste story]. Include happy path, error scenarios, and edge cases.
Exploratory Testing Charter
Create an exploratory testing charter for [feature/area]. Include: mission statement, areas to explore, resources needed, time box, testing heuristics to apply, and notes template for findings.
Write Bug Report
Create a detailed bug report for the following issue: [describe issue]. Include: clear title, environment details, severity and priority assessment, step-by-step reproduction steps, expected vs actual results, screenshots/logs placeholder, and suggested investigation areas.
Root Cause Analysis
Perform a root cause analysis for the following defect: [describe defect]. Use the 5 Whys technique and fishbone diagram approach. Identify contributing factors, suggest preventive measures, and recommend process improvements.
Generate Page Object Model
Create a Page Object Model class for the [page name] page with the following elements: [list elements]. Include locator strategies, action methods, verification methods, and waiting mechanisms. Use [Playwright/Selenium/Cypress] syntax.
Create API Test Suite
Generate a comprehensive API test suite for the following endpoint: [endpoint details]. Include tests for: successful responses, error handling, authentication, input validation, rate limiting, and response schema validation. Use [REST Assured/Postman/Playwright] format.
Generate Test Summary Report
Create a test summary report for [sprint/release] including: test execution summary with pass/fail metrics, defect summary by severity and priority, test coverage analysis, risk assessment, recommendations, and go/no-go recommendation with justification.
Create Test Metrics Dashboard
Design a test metrics dashboard specification for [project]. Include: key metrics to track (execution rate, defect density, test coverage, automation ratio), visualization recommendations, data sources, refresh frequency, and stakeholder-specific views.
Review Test Code
Review the following test code for best practices, maintainability, and reliability: [paste code]. Check for: proper assertions, test independence, appropriate waits, meaningful test names, adequate error handling, and DRY principles.
Generate Playwright Page Object Model
Generate a TypeScript Playwright Page Object Model for [page description] with these elements: [list]. Include: typed locators using getByRole/getByTestId, async action methods with auto-waiting, assertion helper methods, and page-level fixtures. Follow the latest Playwright best practices for 2026.
Create API Test Suite from OpenAPI Spec
Given this OpenAPI/Swagger specification: [paste spec or describe endpoints], generate a complete API test suite that covers: schema validation for all response codes, authentication flows, pagination, filtering, error responses (400, 401, 403, 404, 500), and data integrity checks. Use [framework].
Generate Test Data Fixtures from Schema
Based on this data schema: [paste schema], generate test data fixtures including: valid data sets for happy paths, boundary values for each field, invalid data for negative testing, edge cases (null, empty, max length, special characters, Unicode), and realistic fake data using appropriate patterns.
Write Accessibility Test Cases
Write comprehensive accessibility test cases for [component/page] targeting WCAG 2.2 AA compliance. Cover: keyboard navigation, screen reader compatibility, color contrast, focus management, ARIA attributes, form labels, error announcements, and reduced motion support.
Create Performance Test Scenario
Design a performance test scenario for [application/endpoint] using k6 or Artillery. Include: load profile (ramp-up, steady state, ramp-down), virtual user scenarios, think times, thresholds for response time/throughput/error rate, and monitoring checkpoints.
Generate Visual Regression Test Baselines
Create a visual regression testing strategy for [application]. Define: critical pages and components to capture, viewport configurations (mobile, tablet, desktop), threshold settings, masking for dynamic content, and CI/CD integration steps using [Playwright/Percy/Chromatic].
Write Contract Tests for Microservice API
Generate consumer-driven contract tests for the API between [consumer service] and [provider service]. Include: interaction definitions, state management (provider states), verification setup, and CI pipeline integration steps. Use Pact or similar framework.
Create CI/CD Pipeline Test Configuration
Design a CI/CD test pipeline configuration for [platform: GitHub Actions/GitLab CI/Jenkins] that includes: unit test stage, integration test stage, E2E test stage with Playwright, parallel execution, test reporting, artifact collection, and failure notification setup.
Design Load Test Strategy
Design a comprehensive load testing strategy for [application]. Include: performance requirements (response time, throughput, concurrent users), test scenarios (baseline, load, stress, spike, endurance), test data volume, monitoring setup, environment requirements, and success criteria.
Generate Security Test Checklist
Create a security testing checklist for [web application] based on current best practices. Cover: authentication and session management, authorization and access control, input validation, output encoding, cryptography, API security, file upload handling, and security headers.
Create OWASP Top 10 Test Scenarios
Generate specific test scenarios for each OWASP Top 10 vulnerability category applied to [application type]. For each category provide: description, 3-5 test cases with steps, tools to use, expected secure behavior, and remediation guidance.
Write API Rate Limiting Test Scenarios
Create test scenarios to verify API rate limiting for [API endpoint]. Include: tests for rate limit headers, behavior at limit boundary, burst handling, rate limit reset verification, different authentication levels, and concurrent request handling.