Recording Android user input for automated replay (automated testing)

Teazel picture Teazel · Jan 20, 2012 · Viewed 7.4k times · Source

Does anyway know of an open source solution for recording user input. The ideal one would output monkeyrunner script.

I'm happy to modify my source by extending input recording classes, which would be the simplest solution, i.e. extend the base View and Activity classes to catch the onTouchEvent(), onKeyUp(), onKeyDown(), etc, and then generate the monkeyrunner script in there to be written out. But it seems a shame to write it if it already exists!

Thanks in advance...

Answer

Diego Torres Milano picture Diego Torres Milano · Jan 21, 2012

FoneMonkey for Android is open source and would help you achieve your goal.

Also, AndroidViewClient/culebra with its simple to use UI (see Culebra-GUI), let you create powerful python scripts (no monkeyrunner needed) that you can further customize to suite your most demanding needs.