Browse QA Engineers Section 7: Bug Reports & Defect Management

Flaky Test Investigation Template

7 fill-in slots · from The AI Prompt Handbook for QA Engineers

Your details

0/7 filled

Flaky Test Investigation Template

Help me investigate and document a flaky test.

FLAKY TEST:
- Test name: [Name]
- Framework: [XCUITest / Espresso / Appium / Detox]
- Failure rate: [Approximate — e.g., "fails ~20% of runs"]
- Failure message: [The assertion or error that fails]

RECENT RESULTS:
- Last 10 runs: [Pass/Fail pattern, e.g., P P F P P F P P P F]
- Environment: [CI / local / both]
- Specific device/simulator: [If pattern is device-specific]

Generate an investigation plan:
1. Common causes of flaky mobile tests (timing, animation, async, state)
2. Specific investigation steps for this failure pattern
3. Debugging approach (add waits? check state? isolate test?)
4. Potential fixes ranked by likelihood
5. How to verify the fix (run N times, check CI history)
6. If not fixable quickly: quarantine strategy (skip, retry, tag)

Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.