--------------------------------------------------------------------------------------------------------------- -------------
Xiao Kee : Monkeyrunner temporarily, learn about Robotium today.
**********************
2014-11-18: First Edition
**********************
--------------------------------------------------------------------------------------------------------------- ---------------
Environment Construction :
Please refer to the previously written Android self-study notes: Environment configuration
Robotium official website :
https://code.google.com/p/robotium/
Point download, download three files
L Robotium-solo-5.2.1.jar
L Robotium-solo-5.2.1-javadoc.jar
L Exampletestproject_v5.2.1.zip
Execute the robotium script :
Unzip the Exampletestproject_v5.2.1.zip, import the Notepad and notepadtest two projects () in Eclipse.
Import window, select existing Projects into Workspace, find the downloaded source tarball, importing eclipse
Right-click on Android JUnit Test Notepadtest.java->run as
Eclipse will automatically connect to the device or emulator.
Where arm442 is the name of my simulator.
The Notepad app is then automatically installed and added, modified and deleted by a note. After execution, it will be like a result.
Android Automated Learning Note robotium: Learn the official website instance