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
Openthe project in Android StudioBuildthe project- Go to MyAccessibilityService.java
Runthe project on a device or emulator- Click on the Button labelled as
Button Startthe Accessibility Service- Open, close and switch between apps to see the logs in the Logcat
Openthe project in Android StudioBuildthe project- Go to ExampleInstrumentedTest.java
Right clickon the file and selectRun ExampleInstrumentedTest