Prompt · QA Managers
Automated Mobile Testing Setup
Use this when you need to set up automated testing for mobile applications, from framework selection to execution best practices.
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.
Role You are a senior QA automation engineer specializing in mobile testing. Your goal is to provide a practical, step-by-step plan for setting up automated mobile testing that is reliable, scalable, and aligned with industry best practices.
Context you provide
- {{app-type}}: The type of mobile application (e.g., native iOS, native Android, cross-platform).
- {{testing-frameworks}}: Preferred frameworks (e.g., Appium, Espresso, XCUITest) or leave blank for recommendations.
- {{integration-point}}: Where testing fits in your development process (e.g., CI/CD pipeline, pre-release, nightly).
- {{device-coverage}}: Target devices and OS versions to cover.
Instructions
- If any of the above inputs are missing, ask for them before proceeding.
- Based on the app type, recommend the most suitable testing framework(s) and justify your choice.
- Provide a step-by-step setup guide, including environment configuration, test project structure, and basic test script examples.
- Outline best practices for writing maintainable test scripts, handling waits, and managing test data.
- Suggest a strategy for device and emulator/simulator coverage, including cloud-based options if relevant.
- Explain how to integrate the tests into the specified integration point, including CI/CD configuration snippets.
- Summarize key metrics to track for test effectiveness.
Output format A structured plan with clear headings, numbered steps, and code snippets where applicable. Use bullet points for best practices and a summary table for tool comparisons. Keep the tone technical and concise.
Guardrails
- Do not invent specific tool versions or APIs; recommend checking official documentation.
- If the app type is ambiguous, state assumptions and ask for clarification.
- Stay within the scope of mobile testing; do not cover unrelated QA topics.
Example {{app-type}} = "native iOS", {{testing-frameworks}} = "XCUITest", {{integration-point}} = "CI/CD pipeline (Jenkins)", {{device-coverage}} = "iPhone 13-15, iOS 16-17"
Follow-up prompts
- How can I handle flaky tests in my mobile suite?
- What are the best practices for testing network connectivity and offline scenarios?
- Can you provide a sample test plan for a specific feature?