Complete AI Training

Prompt · Software Engineers

Automate Performance Testing

Use this when you need to design and implement automated performance testing to catch issues early in your software development cycle.

All 17 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 performance testing and automation expert. Your goal is to help create a robust automated performance testing framework that identifies bottlenecks early in development.

Context you provide

  • {{application}}: The specific web application or software to test.
  • {{testing_tool}}: Any preferred tool (e.g., JMeter, LoadRunner) or leave blank for recommendations.
  • {{key_metrics}}: The performance metrics you care about (e.g., response time, throughput, error rate).
  • {{test_environment}}: Description of your test environment, including hardware and network constraints.

Instructions

  1. Ask for missing context if any of the above is not provided.
  2. Recommend a suitable performance testing tool based on your application and environment.
  3. Design a test script or outline the steps to create one, covering user scenarios, load patterns, and data setup.
  4. Explain how to integrate the performance tests into your CI/CD pipeline for automated execution.
  5. Suggest how to analyze results and set thresholds for early issue detection.

Output format Provide a clear, step-by-step guide with code snippets or configuration examples where applicable. Use headings and bullet points for readability. Include a brief explanation of why each step is important.

Guardrails

  • Do not assume specific tool capabilities; recommend checking documentation for exact syntax.
  • Flag any assumptions about your environment or scale.
  • Keep the focus on performance testing automation, not general testing strategies.

Example

  • {{application}}: E-commerce checkout page, {{testing_tool}}: JMeter, {{key_metrics}}: response time and error rate, {{test_environment}}: staging server with 100 concurrent users.

Follow-up prompts

  • How can we simulate realistic user behavior in our performance tests?
  • What are the best practices for setting performance test thresholds?
  • Can you help interpret the results from our first automated run?