Is there any way to record user actions in android. Like if someone clicks a button or enters a text, or scrolls a list, how to identify those actions and record the data from the UI component ?
Let me give more background of my intention. Sometimes during my manual testing, there are some so called hard to reproducible bugs. Sometimes it's hard for me to remember what I have done before the bug happens especially after a quite long time. So one of my idea is to record what I have done before the bug appears. I'd like to use a light way, not recording the screens, so maybe we can simply dump user actions and the corresponding UI controls' data which can give us some clues to reminder me what i have done and what data has been outputted to save the circumstances. Is there any better way to solve the hard-to-reproducible bugs?
Yep, adb supports it natively since API 16 (Android JellyBean 4.1) with UI-Automator.
adb shell uiautomator events
Bam, that's it. Tells you the views clicked and their text/description from the perspective of the Accessibility framework.
Testdroid tool has Recorder that allows recording user actions and generating UI automation tests. http://testdroid.com/product/testdroid-recorder#0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With