Appium+python+windows Environment Configuration

Source: Internet
Author: User
Tags appium

I. Installing node. js

1: First find the appropriate node version of the computer to download.

2:: Install the Select path.

1) I install it under the D:\appium\node.js folder

2) Verify that node is installed successfully:

Enter NODE-V in CMD if the following results show that the installation is successful two steps

The following results are required to add the node's installation path to the environment variable path, as shown below (environment variable location: Right-click on Computer--Properties-Advanced system settings-environment variables--Find path in the system variable to add its own installation path, separated by each path;

Then enter node-v in the cmd command to verify that the configuration is successful

Two. Installing the JDK

1: First find the appropriate version of the JDK for the computer to download.

2: Install the Select path.

Always click Next, never select a path

3: Configure Environment variables

1) First add Java_home to the environment variable, and the variable value is filled in as the selected installation path configuration until C:\Program Files (x86) \java\jdk1.8.0_20

2) First add the classpath in the environment variable, the value of the variable is filled in the selected installation path configuration until ".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar; "

3) Configure the%java_home%\bin in path, keep in mind that both front and back are separated by semicolons;

4: Verify that the installation is successful. If it is not shown below, please return to reconfigure environment variables

Three. Installing the Android SDK

1: First find the appropriate Android SDK version for your PC to install

2: Select the path to install D:\ANDROIDSDK

3: Configure Environment variables

1) First add the android_home in the environment variable, the variable value is filled in as the installation path of the choice configuration situation D:\ANDROIDSDK

2) Add%android_home%;%android_home%\tools;%android_home%\platform-tools to the value of the variable in path;

4) Verify that the installation is successful

If this is considered a success, check the Configuration environment column

Four. Install Python

1: Download Python's latest version from the Python website, typically MSI file

2: Installation process

Run the downloaded MSI file and tick all the components when you install the component. Special note tick on Pip and add Python.exe to path, then click Next to complete the installation . Install to C drive by default

3: Verify that the installation is successful

1) If the installation is successful, you can exit the Python interactive environment by using the exit () command:

2) If the situation is not internal command, you need to go to the Environment Configuration page to add path, the value of the variable is C:\Python27\; C:\Python27\Scripts;

The best way is to reinstall Python again.

V: Install Appium-python-client

Command Line Input command pip install appium-python-client, wait for installation to complete

If you want to upgrade, enter the command pip install--upgrade appium-python-client

Six. Installing Appium

1: First find the appropriate Appium version of the computer to install (first to install. NET)

2: Select the installation path D:\appium\Appium

3: Configure the environment variable to configure the bin file address in Node_modules in Appium, as described above

4: Verify that the configuration is successful

1) If the following conditions prove that the preparation has been successful, can be tested

2) If this is the case, please return to the installation location of the inspection program and reconfigure the environment parameters.

Appium+python+windows Environment Configuration

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.