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.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- 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
- Ask for missing inputs before starting.
- Design a testing framework or script structure that supports multiple browsers.
- Write scripts for the specified scenarios, including setup, execution, and teardown.
- Include logic to capture and report the requested metrics.
- Add error handling and logging for debugging.
- 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?