the monkeyrunner of Android automated testing
First, the environment of Android automated testing to build
1.1 ANDROID-SDK Introduction
¢SDK (software Development Kit) software Development Kit. A collection of development tools used by software development engineers to build applications for specific software packages, software frameworks, hardware platforms, operating systems, and more. Android is Google's launch of the mobile phone development platform. ANDROID-SDK refers to Android's proprietary software development kit. The tools in Tools and Platformtools folders are most commonly used in ANDROID-SDK.
1.2 Tool Installation
1.2.1 android-sdk
:http://www.android-doc.com/sdk/index.html
After the download is complete, only need to extract (note that the decompression path can not have Chinese and space), but the operation of ANDROID-SDK requires Java Virtual machine support and JDK, so the use of android-sdk need to install the JDK first, If the JDK is installed, you can see if there are JDK and JRE two folders under the C:\ProgramFiles\Java path of your computer, if any, the installation of the JDK is already installed (it may be installed in another folder), please download and install it yourself.
1.2.2 Installing the python compiler
:http://www.python.org/download/
Python is used to support monkeyrunner operations, writing use cases using Python scripting can greatly simplify the writing of monkeyrunner use cases and will help extend Monkeyrunner's automation capabilities, and Python downloads and installs itself.
1.2.3 Setting environment variables
Create a new path inside the user variable and add the ANDROID-SDK, JDK, and Python installation paths;
Like what:
C:\android-sdk\tools; C:\androidsdk\platform-tools; C:\Python; C:\ProgramFiles\Java\jdk1. 7. 0_10\bin
1.2.4 Environmental inspection
After the installation is complete, enter java–version, Python, and monkeyrunner in the cmd window respectively to check if the installation is correct, as shown in:
Android Automation Monkeyrunner test environment configuration (i)