Monkey Runner Testing Mobile App
Monkey Runner Testing Mobile App
Monkey Runner Testing Mobile App
Android SDK
Tools to build, test, and debug Android apps
Open source/no cost
SDK download available here
1 : H T T P : / / S E AR C H S O A. T E C H T AR G E T . C O M / D E F I N I T I O N / M O B I L E -
AP P L I C A T I O N - D E V E L O P M E N T
MOBILE TESTING
2 : H T T P : / / D E V E L O P E R . A N D R O I D . C O M / T O O L S / H E L P / M O N K E Y R U N N E R _ C O N C E P T S . H T ML
MONKEYRUNNER MODULES
MonkeyRunner
Class of utility methods
Provides methods that
MonkeyDevice
Represents a device or emulator
Provides methods that simulate interactions
MonkeyImage
Represents a screen capture image
Provides methods related to screen captures
COMMAND EXAMPLES
type(string message)
wake()
writeToFile(string fileName, string format)
sameAs(MonkeyImage otherImage, float percent)
Percent indicates the percentage of pixels that need to be the
same for the method to return true
TECHNICAL COMPONENTS
Eclipse IDE
PyDev Extension for Eclipse
Jython
Android SDK
Android Debug Bridge
Command line tool that allows interaction with a connected device
.apk file
Script
Connection
installs .apk
with device
file on
is made
device
SCRIPT
PROGRAMMING LANGUAGES:
PYTHON AND JYTHON
Python
Clear and powerful object-oriented programming language, comparable to Perl, Ruby,
Scheme, or Java3
Open source/free to download
Python provides a Beginner's Guide
Jython
Implementation of the high-level, dynamic, object-oriented language Python seamlessly
integrated with the Java platform4
Allows you to run Python on Java platform
Free to download
IBM’s tutorial
3: HTTP: / / WI KI . PYTHO N. O RG
4: HT T P: / /W WW. JYT HON. ORG /ARCHI VE/ 21/ DO CS/ W HAT I S. HT ML
EXECUTING TEST SCRIPT FROM
COMMAND PROMPT
Smartphone Tablet
Device Manufacturer Motorola Samsung
Model RAZR M Galaxy Tab 2 7.0
OS Android 4.1.2 Android 4.1.1
Screen Size 4.3” 7.0”
Screen Resolution 960 x 540 qHD 1024 x 600
Memory 1 GB RAM/8GB ROM 8 GB
Connection Type Wi-Fi Wi-Fi
Motorola RAZR M Samsung Galaxy Tab 2
App homepage
Navigation to transit
home page was delayed
for smartphone by more
than 2 minutes
REFERENCES
http://developer.android.com/tools/help/monkeyrunner_concepts.h
tml#APIClasses
http://developer.android.com/sdk/index.html
https://code.google.com/p/robotium/
https://cloud.testdroid.com/web/home
Oleksii Starov, Sergiy Vilkomir, and Vyacheslav Kharchenko,
"Cloud Testing for Mobile Software Systems: Concept and
Prototyping", Proceedings of the 8th International Conference on
Software Engineering and Applications (ICSOFT-EA 2013),
Reykjavik, Iceland, July 29-31, 2013.