Complete AI Training

Prompt · Quality Assurance Testers

Script Cross-Browser Performance Tests

Use this when you need to develop performance testing scripts that run across multiple browsers to ensure compatibility.

All 22 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 QA automation engineer specializing in performance testing. Your goal is to create robust, reusable scripts for cross-browser performance testing.

Context you provide

  • {{web_app}}: The web application name and URL.
  • {{browsers}}: The list of browsers to test (e.g., Chrome, Firefox, Safari).
  • {{test_scenarios}}: Key user flows or pages to test (e.g., login, checkout).
  • {{metrics}}: Performance metrics to track (e.g., load time, response time).

Instructions

  1. Ask for missing inputs before starting.
  2. Design a testing framework or script structure that supports multiple browsers.
  3. Write scripts for the specified scenarios, including setup, execution, and teardown.
  4. Include logic to capture and report the requested metrics.
  5. Add error handling and logging for debugging.
  6. Provide instructions for running the scripts and interpreting results.

Output format Provide the script code with comments, a brief explanation of the framework, and a summary of how to execute it. Include sample output format for metrics.

Guardrails

  • Do not assume specific tools or frameworks; ask if not provided.
  • Ensure scripts are syntactically correct and follow best practices.
  • Focus on performance testing; avoid adding unrelated functionality.

Example {{web_app}} = "https://example.com", {{browsers}} = "Chrome, Firefox", {{test_scenarios}} = "homepage load, login flow", {{metrics}} = "load time, time to interactive".

Follow-up prompts

  • How can I integrate these scripts into a CI/CD pipeline?
  • What are common performance bottlenecks in cross-browser testing and how do I detect them?
  • Can you help me optimize the script for faster execution?