Appium+python Automation 1-Environment construction

Source: Internet
Author: User
Tags appium

I. Preface

Appium is one of the most popular automation frameworks for apps, and its main advantage is Android and iOS, and the scripting language supports both Java and Python. The gadget is good at Python, so the next tutorial is an example of Appium+python.

Learning Appium The biggest difficulty lies in the installation of the environment, 80% of the people died in the environment installation, then there is no then, 10% of the people are the environment for more than a week, only the remaining 10% good character, can be installed smoothly. Small part of a good character, a successful installation

Two. Environmental preparedness

Small compilation environment is the Windows 7 version 64-bit system

1.node.js:node-v8.11.3-x64.msi

2.NET Framework

3.appium:appiumforwindows_1_4_16_1.zip

4.jdk:jre-8u181-windows-x64.exe

5.android-sdk:android-sdk_r24.4.1-windows.zip

6.python3.5

7.appium-python-client

Three. Installing the 3.1 node. JS Installation

Links: https://nodejs.org/en/download/

REMINDER: NOTE!!! Download the corresponding version of your operating system (small win7 64-bit)

The installation process does not need to repeat. After the installation is complete, the same runs the-cmd-input npm-v

Displaying the above indicates that node is loaded!

3.2. NET Framework 4.5 Installation (small system is up-to-date)

Links: http://www.microsoft.com/zh-cn/download/details.aspx?id=30653

Reminder: to the official website to download the latest is.

Installation of 3.3 appiumforwindows

Links: https://bitbucket.org/appium/appium.app/downloads/

Reminder: Select the version of Windows. After decompression, directly run Appium-installer.exe installation can be.

Installation of the 3.4 JDK

Because this chapter is an introduction to the automation of Android, of course, the Android environment is not ready.

Link: https://www.java.com/zh_CN/download/manual.jsp website address

Reminder: I downloaded the jre-8u181-windows-x64.exe version. Installation can be done. After completion, you need to configure the system environment variables (refer to http://www.cnblogs.com/zz-yy/p/8432648.html), the default installation of small, no configuration environment variables, the same in the run-cmd-input java-version

Displaying the above indicates that the JDK is installed!

3.5 installation of the Android SDK

Because there is no direct access to Google's link address at home, you cannot download it directly from Google's official link

Links: http://www.androiddevtools.cn/

Reminder: I downloaded the android-sdk_r24.4.1-windows.zip

A. After download, unzip in the location that needs to be installed, get:

B. Double-click SDK Manager.exe

C. Tick the API version you want to download and the corresponding Android version

D. ANDROID-SDK environment variable (new in system variable: android_home, corresponding variable value: C:\Program Files (x86) \ANDROID\ANDROIDSDK (SDK installation path)

E. Adding%android_home%\platform-tools;%android_home%\tools to the PATH environment variable

F. Since the ADB is in C:\Program Files (x86) \android\androidsdk\platform-tools This directory, so the above added environment variables, you can directly run in cmd inside

3.6 python3.5 Installation

Link: https://www.python.org/. Here is the link to the official website.

Reminder: Python installation is a fool-like, step by step next is good, don't go blind to change the installation path, finally remember to check the configuration environment variables (that is, the installation of the environment variables to automatically configure you, save yourself to configure)

3.7 Appium-python-client

Enter PIP install appium-python-client directly

Installation complete, follow-up examples are explained

Note: The installation of the 3.5 Android SDK may be stuck in the done loading packages., workaround (50646747), or no matter, temporarily available

Appium+python Automation 1-Environment construction

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.