Systers Community
Part II- Create UI Tests with Espresso Test Recorder
Prerequisite:
- Setup Espresso testing environment.
- This is a chain Task. If you are a beginner at Espresso, then first try to attempt Part I before claiming this task.
Steps:
- Click Run > Record Espresso Test
- In the Select Deployment Target window, choose your emulator/physical device
- Record the Test window.
- Interact with your device to start logging events.
- Add assertions to verify UI elements, follow this guide
- Click complete recording. Pick a test class name for your test window & save, follow this guide
- Create test for any one screen of Powerup application
Resources:
- Read about UI tests at this link
- Ask any questions or directions in the #powerup on Systers Open Source Slack. Mention @geekanamika if you need help on this task.
Work Submission:
- Screenshots of recorded test window while adding assertions
- Create a pull request after saving your generated test class
- Provide link to pull request in comment before submitting task
Task tags
Students who completed this task
Fidella, Yuyuan Luo, Valentun, Boluwatife Tejumola, Aryaman Agrawal