Skip to main content
Prompt Library

AI Prompts for QA Engineers

100 battle-tested prompts for SDETs — copy, customise, and paste into any AI assistant. Covers 10 categories from test case writing to career interviews.

100 prompts10 categories19,900 community likes
Filter:

Showing 100 prompts

Test Case Writing

Generate test cases from user story

You are a senior SDET. Given the following user story, generate a comprehensive set of test cases covering happy path, e…
#test cases#user story#coverage
Test Case Writing

BDD Gherkin scenarios from acceptance criteria

Convert the following acceptance criteria into BDD Gherkin scenarios (Given/When/Then). Include at least one happy path,…
#BDD#Gherkin#acceptance criteria
Test Case Writing

Equivalence partition & boundary value test cases

Apply equivalence partitioning and boundary value analysis to the following input field. List valid partitions, invalid …
#boundary value#equivalence partitioning#input validation
Test Case Writing

E2E test scenarios for a checkout flow

Write end-to-end test scenarios for an e-commerce checkout flow. Cover: guest vs logged-in user, valid/invalid payment, …
#e2e#checkout#ecommerce
Test Case Writing

Test cases for a REST API endpoint

Generate test cases for the following REST API endpoint. Include: success responses, authentication scenarios, invalid r…
#API#REST#test cases
Test Case Writing

Risk-based test prioritisation

Given the following list of features, apply risk-based testing to prioritise which areas need the most coverage. Score e…
#risk-based#prioritisation#test strategy
Test Case Writing

Negative test cases for form validation

Generate negative test cases for a registration form with these fields: email, password, phone number, and date of birth…
#negative testing#form validation#security
Test Case Writing

Mobile responsiveness test checklist

Create a comprehensive test checklist for verifying mobile responsiveness of a web application. Cover: viewport breakpoi…
#mobile#responsive#UI testing
Test Case Writing

Database test cases for a CRUD operation

Write test cases for CRUD (Create, Read, Update, Delete) database operations. Cover: successful operations, constraint v…
#database#CRUD#backend
Test Case Writing

Accessibility test cases (WCAG 2.1)

Generate test cases to verify WCAG 2.1 AA compliance for the following web component. Cover: keyboard navigation, screen…
#accessibility#WCAG#a11y
Test Case Writing

Test cases for OAuth 2.0 login flow

Write test cases for an OAuth 2.0 login flow supporting Google and GitHub. Cover: successful login, token expiry, refres…
#OAuth#auth#login
Test Case Writing

Smoke test suite for a microservice

Define a smoke test suite (max 15 tests) for a new microservice before it goes to staging. Focus on: service health endp…
#smoke tests#microservices#sanity
Test Case Writing

Data migration test plan

Create a test plan for a database migration from PostgreSQL to a new schema version. Cover: row count validation, data i…
#data migration#database#regression
Test Case Writing

Test cases for real-time features (WebSockets)

Generate test cases for a WebSocket-based real-time feature (e.g., live chat or notifications). Cover: connection establ…
#WebSocket#real-time#performance
Test Case Writing

Regression test selection for a code change

Given the following code change diff, identify which existing test cases should be run as part of regression. Explain wh…
#regression#impact analysis#code review
Bug Reporting

Write a production-quality bug report

Write a detailed, developer-ready bug report for the following issue. Include: Summary (one line), Environment, Steps to…
#bug report#documentation#template
Bug Reporting

Root cause analysis from crash logs

Analyse the following crash log / stack trace and provide: 1) Most likely root cause, 2) Affected code area, 3) Steps to…
#root cause#crash log#debugging
Bug Reporting

Convert vague developer feedback into a bug

A developer wrote: '[PASTE VAGUE COMMENT]'. Convert this into a formal bug report with clear reproduction steps, expecte…
#communication#bug report#clarity
Bug Reporting

Severity vs priority classification guide

For each of the following bugs, classify them with Severity (Critical/High/Medium/Low) and Priority (P0/P1/P2/P3). Justi…
#severity#priority#triage
Bug Reporting

Write a non-reproducible bug report

A bug happened once and I cannot reproduce it. Write a bug report that still provides maximum value to the developer. In…
#intermittent#flaky#hard to reproduce
Bug Reporting

Performance regression bug report

Write a bug report for a performance regression. Include: baseline metric, current metric, % degradation, affected endpo…
#performance#regression#metrics
Bug Reporting

Security vulnerability disclosure

Write a responsible disclosure report for a security vulnerability found during testing. Follow OWASP reporting guidelin…
#security#OWASP#vulnerability
Bug Reporting

Bug triage notes for sprint planning

Given the following list of open bugs, write triage notes for the sprint planning meeting. For each bug, suggest: fix or…
#triage#sprint#planning
Bug Reporting

Duplicate bug detection prompt

Review the following two bug reports and determine if they are duplicates. If yes, identify which one is more detailed a…
#duplicates#triage#quality
Bug Reporting

Post-mortem for a production incident

Write a blameless post-mortem for a production incident. Include: incident timeline, root cause, contributing factors, i…
#post-mortem#incident#production
API Testing

API contract test suite

Generate a contract test suite for the following API endpoint using consumer-driven contract testing principles. Verify:…
#contract testing#Pact#schema validation
API Testing

Postman collection from OpenAPI spec

Convert the following OpenAPI 3.0 spec into a Postman collection. Include: pre-request scripts for auth token setup, tes…
#Postman#OpenAPI#collection
API Testing

GraphQL query testing strategy

Design a testing strategy for a GraphQL API. Cover: query depth limits, circular query prevention, field-level authorisa…
#GraphQL#strategy#security
API Testing

API authentication testing checklist

Create a testing checklist for API authentication and authorisation. Cover: JWT validation, token expiry handling, refre…
#auth#JWT#security
API Testing

Playwright API test from network trace

Given the following HAR/network trace, write a Playwright API test that replays the API calls, validates the response sc…
#Playwright#API testing#HAR
API Testing

REST API negative test cases

For the following REST API endpoint, generate negative test cases covering: malformed JSON body, wrong content-type head…
#negative testing#REST#edge cases
API Testing

API versioning migration test plan

Create a test plan for migrating from API v1 to v2. Cover: backward compatibility checks, deprecated endpoint verificati…
#versioning#migration#backward compatibility
API Testing

Webhook testing strategy

Design a testing strategy for webhook integrations. Include: payload delivery verification, retry logic testing, signatu…
#webhooks#integration#event-driven
API Testing

API pagination test cases

Write test cases for paginated API endpoints. Cover: first page, last page, middle page, page size variations, invalid p…
#pagination#REST#data integrity
API Testing

gRPC service testing approach

Describe a testing approach for a gRPC service. Cover: proto contract validation, unary vs streaming RPC testing, error …
#gRPC#proto#streaming
API Testing

API mock server setup prompt

Set up a mock server for the following API using WireMock or Mockoon. Include: response templating for dynamic data, sta…
#mock#WireMock#test isolation
API Testing

API test data factory

Create a test data factory for API tests. The factory should generate: valid payloads for happy paths, invalid payloads …
#test data#factory#data generation
Automation Scripting

Playwright E2E test from manual steps

Convert the following manual test steps into a Playwright TypeScript test. Use Page Object Model pattern, add meaningful…
#Playwright#TypeScript#POM
Automation Scripting

Selenium WebDriver test refactor

Refactor the following Selenium test to: eliminate explicit waits in favour of WebDriverWait with ExpectedConditions, ap…
#Selenium#refactoring#POM
Automation Scripting

Data-driven test framework setup

Set up a data-driven test framework in [LANGUAGE/FRAMEWORK]. Use a CSV/Excel/JSON file as the data source. Include: para…
#data-driven#parameterized#framework
Automation Scripting

Fix a flaky Playwright test

The following Playwright test is flaky and fails intermittently. Identify the likely causes of flakiness and rewrite it …
#flaky tests#Playwright#stability
Automation Scripting

Cypress component test for a React component

Write a Cypress component test for the following React component. Test: initial render, user interactions (click, type, …
#Cypress#React#component testing
Automation Scripting

Test helper / utility function

Write a reusable test helper function for [LANGUAGE] that: [DESCRIBE WHAT IT SHOULD DO — e.g. 'waits for a toast notific…
#helpers#utilities#reusability
Automation Scripting

Playwright visual regression test

Write a Playwright visual regression test using @playwright/test's toHaveScreenshot. Cover: full page snapshot, componen…
#visual testing#Playwright#screenshots
Automation Scripting

API test with Playwright request fixture

Write a Playwright test that combines UI and API assertions. Use the request fixture to make API calls directly, seed te…
#Playwright#API#hybrid testing
Automation Scripting

Retry mechanism for flaky network calls

Implement a robust retry mechanism for API test calls in [LANGUAGE]. Include: configurable max retries, exponential back…
#retry#resilience#network
Automation Scripting

Test fixture setup and teardown

Write a Playwright fixture for the following scenario. The fixture should: create test data before the test, authenticat…
#fixtures#setup#teardown
Automation Scripting

Page Object Model class for a complex page

Create a Page Object Model class for the following web page. Include: locator definitions as properties, action methods …
#POM#TypeScript#page object
Automation Scripting

Automate a multi-step checkout with network interception

Write a Playwright test for a checkout flow that intercepts and validates network requests. Use route.intercept to: veri…
#Playwright#network interception#checkout
Automation Scripting

Appium mobile test script

Write an Appium test script for the following mobile app scenario. Use: desired capabilities for Android/iOS, explicit w…
#Appium#mobile#iOS
Automation Scripting

Parallel test execution configuration

Configure parallel test execution for a [FRAMEWORK] test suite. Define: shard configuration, worker count based on CPU c…
#parallel#sharding#performance
Automation Scripting

Generate automation code from a Figma/design spec

Given the following UI component design spec, generate a Playwright test that verifies: visual appearance (layout, colou…
#design-driven#UI automation#accessibility
Test Planning

Test strategy document outline

Write a test strategy document for [PROJECT/FEATURE]. Include: test objectives, scope (in/out), testing types (functiona…
#strategy#documentation#planning
Test Planning

Shift-left testing plan

Create a shift-left testing plan for a team transitioning from QA-at-the-end to testing from day one. Include: definitio…
#shift-left#DevOps#agile
Test Planning

Test estimation using three-point estimation

Estimate the testing effort for the following sprint items using three-point estimation (optimistic, most likely, pessim…
#estimation#planning#agile
Test Planning

Test environment requirements document

Write a test environment requirements document for [APPLICATION]. Include: required services and versions, data requirem…
#environment#infrastructure#planning
Test Planning

Release readiness checklist

Create a release readiness checklist for a production deployment. Cover: all critical test suites green, performance ben…
#release#checklist#go-live
Test Planning

Testing OKRs for a QA team

Define quarterly OKRs (Objectives and Key Results) for a QA team of [SIZE] aiming to improve quality. Include: automatio…
#OKRs#metrics#team goals
Test Planning

Exploratory testing charter

Write an exploratory testing charter for [FEATURE/AREA]. Define: mission, areas to explore, areas to ignore (out of scop…
#exploratory testing#charter#session-based
Test Planning

QA onboarding plan for new engineer

Create a 4-week onboarding plan for a new SDET joining the team. Week 1: codebase familiarisation + shadow sessions. Wee…
#onboarding#mentorship#team
Test Planning

Test metrics dashboard specification

Specify a QA metrics dashboard for an engineering team. Include: key metrics (defect escape rate, automation coverage, f…
#metrics#dashboard#observability
Test Planning

Sprint testing plan template

Create a sprint testing plan for the following sprint backlog. For each story, define: test approach (manual/automated/e…
#sprint#agile#planning
Code Review

Test code review checklist

Review the following test code. Check for: proper assertions (not just 'does not throw'), test independence (no shared m…
#code review#best practices#quality
Code Review

Identify test anti-patterns

Analyse the following test suite for common anti-patterns: Arrange-Act-Assert violations, logic in tests, over-mocking, …
#anti-patterns#refactoring#clean tests
Code Review

Production code review from a testability lens

Review the following production code from a testability perspective. Identify: tightly coupled dependencies that should …
#testability#refactoring#SOLID
Code Review

PR review comments for a test PR

Write constructive code review comments for the following test pull request. Be specific, actionable, and educational. S…
#PR review#feedback#collaboration
Code Review

Automation framework architecture review

Review the following test automation framework architecture. Assess: separation of concerns, scalability for 1000+ tests…
#architecture#framework#scalability
Code Review

Security review of test infrastructure

Review the following test infrastructure configuration for security issues. Check for: hardcoded credentials, overly per…
#security#infrastructure#secrets
Code Review

Coverage gap analysis

Given the following code coverage report and the list of user-facing features, identify: which critical paths are under-…
#coverage#gap analysis#risk
Code Review

Dependency upgrade impact on tests

Analyse the impact of upgrading [DEPENDENCY] from v[OLD] to v[NEW] on the existing test suite. Identify: breaking API ch…
#dependencies#upgrade#impact analysis
CI/CD & Pipelines

GitHub Actions workflow for a test suite

Write a GitHub Actions workflow that: runs unit tests on every PR, runs E2E tests on merge to main, caches dependencies,…
#GitHub Actions#CI#workflow
CI/CD & Pipelines

Optimise slow CI pipeline

Our CI pipeline takes [X] minutes. Analyse the following pipeline configuration and suggest optimisations: test parallel…
#optimization#CI#performance
CI/CD & Pipelines

Test environment Docker Compose setup

Write a Docker Compose file that spins up a test environment with: the application under test, a PostgreSQL database wit…
#Docker#test environment#infrastructure
CI/CD & Pipelines

Playwright in CI configuration

Configure Playwright to run reliably in a headless CI environment (GitHub Actions / GitLab CI). Include: browser install…
#Playwright#CI#headless
CI/CD & Pipelines

Allure report integration

Integrate Allure reporting into a [FRAMEWORK] test suite running in CI. Include: Allure annotation usage for test catego…
#Allure#reporting#CI
CI/CD & Pipelines

Feature flag testing in CI

Design a CI strategy for testing features behind feature flags. Include: test configuration for flag on/off states, avoi…
#feature flags#CI/CD#environments
CI/CD & Pipelines

Pipeline quality gates configuration

Define quality gate configurations for a CI pipeline. Specify thresholds for: unit test pass rate, integration test pass…
#quality gates#thresholds#pipeline
CI/CD & Pipelines

Container image security scan in pipeline

Add a container image security scanning step to the CI pipeline using Trivy or Snyk. Fail the build on CRITICAL vulnerab…
#security#container#Trivy
Performance Testing

k6 load test script

Write a k6 load test script for the following scenario. Include: gradual ramp-up (VUs 0→100 over 2 min), steady state (1…
#k6#load testing#performance
Performance Testing

Performance test plan

Create a performance test plan for [APPLICATION]. Define: performance test types to run (load, stress, soak, spike), use…
#performance plan#SLA#load
Performance Testing

Analyse a slow API response

The following API endpoint takes [X]ms on average. Analyse the request/response data, database query plan, and code to i…
#bottleneck#optimisation#API
Performance Testing

Frontend performance test with Lighthouse CI

Configure Lighthouse CI for a Next.js application. Set budgets for: LCP < 2.5s, FID < 100ms, CLS < 0.1, TTI < 3.8s, tota…
#Lighthouse#Core Web Vitals#frontend
Performance Testing

Database query performance test

Design a test to identify slow database queries under load. Include: generating realistic data volume (e.g., 10M rows), …
#database#query optimisation#EXPLAIN
Performance Testing

Memory leak detection test

Write a test to detect memory leaks in a Node.js service. Include: running the service under load for 30 minutes, taking…
#memory leak#Node.js#heap
Performance Testing

Chaos engineering test plan

Design a chaos engineering experiment for [SERVICE]. Define: hypothesis (e.g., 'service degrades gracefully when databas…
#chaos engineering#resilience#fault injection
Security Testing

OWASP Top 10 test checklist

Create a testing checklist for OWASP Top 10 2021 vulnerabilities for [APPLICATION TYPE]. For each category, list: the sp…
#OWASP#security checklist#penetration testing
Security Testing

SQL injection test cases

Generate SQL injection test payloads for the following input fields. Cover: classic injection, blind injection (boolean-…
#SQL injection#penetration testing#OWASP
Security Testing

JWT security testing

Test the following JWT implementation for vulnerabilities. Check for: 'none' algorithm bypass, weak secret brute force, …
#JWT#auth#security
Security Testing

CSRF and XSS test cases

Write security test cases for Cross-Site Request Forgery (CSRF) and Cross-Site Scripting (XSS) vulnerabilities. For CSRF…
#CSRF#XSS#web security
Security Testing

API rate limiting and DDoS protection test

Test rate limiting and DDoS protection for the following API. Verify: per-user rate limits, IP-based rate limits, correc…
#rate limiting#DDoS#API security
Security Testing

Dependency vulnerability scan and remediation

Run a dependency vulnerability scan on the following project's package.json / pom.xml. For each CVE found: summarise the…
#dependencies#CVE#security scanning
Security Testing

Authentication brute force protection test

Test the authentication system's brute force protections. Verify: account lockout after N failed attempts, lockout durat…
#brute force#auth#account security
Career & Interviews

SDET interview preparation guide

Create a preparation guide for a Senior SDET interview at a product company. Cover: technical topics to revise (Selenium…
#interview#SDET#preparation
Career & Interviews

QA engineering resume review

Review the following QA/SDET resume. Assess: impact statements (are achievements quantified?), technical skills accuracy…
#resume#career#job search
Career & Interviews

Behavioural interview answers using STAR

Write strong STAR-format answers (Situation, Task, Action, Result) for the following SDET behavioural questions. Make an…
#behavioural#STAR#interview
Career & Interviews

Live coding interview — automation challenge

I'm preparing for an SDET live coding interview. Give me a realistic take-home coding challenge for a [LEVEL] SDET role …
#coding challenge#live coding#interview
Career & Interviews

QA team lead interview questions

I'm interviewing candidates for a QA Team Lead role. Generate 15 interview questions covering: technical depth (framewor…
#leadership#hiring#team lead
Career & Interviews

Negotiate a QA engineering salary

Help me negotiate a salary offer for a [TITLE] position at a [COMPANY]. Current offer: [AMOUNT]. Market rate data: [DATA…
#salary#negotiation#career
Career & Interviews

Performance review self-assessment for QA

Write a self-assessment for my annual performance review as a [TITLE]. Highlight: testing achievements (quantified), aut…
#performance review#self-assessment#career
Career & Interviews

Transition from manual QA to SDET

Create a 6-month learning plan to transition from manual QA to SDET. Week-by-week curriculum covering: programming basic…
#career transition#SDET#learning plan

Have a prompt the QA community should know about?

Share it as a community discussion and it may be added to this library.

Submit a Prompt