This is a sample project to demonstrate how to use Accessibility Service and UI Automator to automate UI testing.
- Pradhaan
- Hardik
- Karan
- Shreya
- Android Studio
- Java
- UI Automator
- Accessibility Service
Open
the project in Android StudioBuild
the project- Go to MyAccessibilityService.java
Run
the project on a device or emulator- Click on the Button labelled as
Button
Start
the Accessibility Service- Open, close and switch between apps to see the logs in the Logcat
Open
the project in Android StudioBuild
the project- Go to ExampleInstrumentedTest.java
Right click
on the file and selectRun ExampleInstrumentedTest