Test scripting with monkeyrunner

The possibilities of monkey are fairly limited, and the lack of flow control restricts its use to very simple cases.To circumvent these limitations, a new project was created, which was named monkeyrunner. Notwithstanding this, the name is almost the same and leads to a huge amount of confusion because they are not related in any way.

Monkeyrunner, which is already included in the latest versions of the Android SDK, is a tool that provides an API for the purpose of writing scripts that externally control an Android device or emulator.

Monkeyrunner is built on top of Jython (http://jython.org/), a version of the Python programming language (http://python.org/), which is designed to run on the Java platform.

According ...

Get Learning Android Application Testing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.