[Turn] Android Automation Monkeyrunner test environment configuration (i)

Source: Internet
Author: User

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 path can not be extracted with Chinese and white space), but the ANDROID-SDK operation requires Java Virtual machine support and JDK, so in the use of android-sdk need to install JDK,JDK if there is installed on their own computer C \ Programfiles\java path to see if there are JDK and JRE two folders, if there is a representative already installed (may be installed in other folders), the installation of the JDK 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:\Python33; 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:

[Turn] Android Automation Monkeyrunner test environment configuration (i)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.