We assume you have correctly installed and configured Android SDK on your PC.
(Android adb shell command is only usable when your device and PC is connected with USB/Network)
We assume terminal enviroment (i.e. Linux) where Shell script can be run.
Download : event_daemon.zip
When the installation is completed, you can check with following command from terminal:
adb shell "ps | grep event_daemon"
* When you restart your phone, please make sure to start Input Event Daemon manually.
- Accessiblity Permission is required to receive and to record Accessibility Event.
- Draw over on other apps access is required to activate the drawing events on the test app.
- Media Projection is required to capture the screenshot.
When you want to stop recording, you press volume up/down button.
When you want to stop replay, you press back/home button.
You can save Screenshot, captured XML, and Appium Script into your device storage(i.e. sd card).
Storage Access is needed to save XML, screenshot, and Appium script export.
When you want to download the exported file from device storage to your PC, your PC and the device are connected with USB with MTP mode.
Thus exported script doesn't know the password and will not work on later password challege if it exists. If you don't want this, please configure PASSWORD environment variable with your app's password.
Now, run Appium and run the Appium Script. It will replay any actions that you recorded previously.