Complete AI Training

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.

All 18 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 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

  1. If any of the above inputs are missing, ask for them before proceeding.
  2. Based on the app type, recommend the most suitable testing framework(s) and justify your choice.
  3. Provide a step-by-step setup guide, including environment configuration, test project structure, and basic test script examples.
  4. Outline best practices for writing maintainable test scripts, handling waits, and managing test data.
  5. Suggest a strategy for device and emulator/simulator coverage, including cloud-based options if relevant.
  6. Explain how to integrate the tests into the specified integration point, including CI/CD configuration snippets.
  7. 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?