Espresso Script from Test Case (Android)
3 fill-in slots · from The AI Prompt Handbook for QA Engineers
Your details
0/3 filledEspresso Script from Test Case (Android)
Write an Espresso (Kotlin) automation script for this test case. TEST CASE: [Paste the manual test case — steps, expected results, test data] APP CONTEXT: - Framework: Jetpack Compose / XML Views - Test tags or resource IDs available: [List the IDs from the story's accessibility spec] - Navigation: [Navigation Component / Compose Navigation] Generate a complete Espresso test that: 1. Follows the Robot pattern (separate robot class and test class) 2. Uses testTag (Compose) or resource IDs (XML) for element lookup 3. Includes IdlingResource for async operations 4. Uses Compose testing APIs (ComposeTestRule) if Compose UI 5. Asserts on expected outcomes with descriptive matchers 6. Handles RecyclerView / LazyColumn scrolling if needed 7. Is ready to paste into an existing androidTest directory Include both: - The Robot class - The test function Use our naming convention: feature_scenario_expectedOutcome()
Highlighted [slots] are still empty. Downloads are plain .txt — paste into any AI assistant.