Skip to content

AI Prompt Library

Curated collection of prompts for AI-assisted quality assurance. Copy and use with any AI model.

Test Planning & Strategy

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].

Test Planning & Strategy

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.

Test Planning & Strategy

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.

Test Case Design

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.

Test Case Design

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.

Test Case Design

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.

Bug Reporting

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.

Bug Reporting

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.

Test Automation

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.

Test Automation

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.

Test Reporting

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.

Test Reporting

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.

Code Review for QA

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.

AI-Assisted Test Automation

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.

AI-Assisted Test Automation

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].

AI-Assisted Test Automation

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.

AI-Assisted Test Automation

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.

AI-Assisted Test Automation

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.

AI-Assisted Test Automation

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].

AI-Assisted Test Automation

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.

AI-Assisted Test Automation

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.

Performance & Security Testing

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.

Performance & Security Testing

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.

Performance & Security Testing

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.

Performance & Security Testing

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.