Appium Environment Build Python

Source: Internet
Author: User
Tags appium

What is Appium?

1,appium is an open-source mobile automation testing framework;
2,appium can test native, mixed, and mobile Web projects;
3,appium can test the ios,android application (and, of course, Firefox OS);
4,appium is cross-platform and can be used on Osx,windows and Linux desktop systems;

Here we configure the test environment on the Android side.

For Android mobile Test we need to install two first:

1, the installation of the JDK, this will not repeat, self-Baidu    2, Android SDK installation configuration, reference: http://www.cnblogs.com/puresoul/p/4597211.html
I. Installing node. js

1, to the official website download node.js:https://nodejs.org/en/download/

2, get to the installation file, directly double-click the installation file, according to the program prompts, complete the installation of Nodejs.

3, after the installation is complete, run cmd, enter Node–v, if the installation is successful, will output the following version information:

Second, configure the Android SDK environment

1. SDK Environment Configuration reference:http://www.cnblogs.com/puresoul/p/4597211.html
2. Android sdk:http://tools.android-studio.org/index.php/sdk/

3. After the decompression, perform the SDK Manager.exe installation, after the installation is complete, configure the environment variables

4. Ensure that the version API with level 17 or above is installed

5. Android Environment variables, in the environment, newly created android_home, put the SDK directory, see:

6. After setting the Android_home good, add:%android_home%\platform-tools;%android_home%\tools in PATH environment variable, run cmd, enter android-h, see below, Indicates that the Android environment setting was successful.

Three. Install Python

This simple, go to https://www.python.org/downloads/download and install the latest python3.4, install the environment variable after successful installation. After the completion, check whether the installation is successful: Enter cmd, enter Python, you can enter the editing status, indicating success.

iv. installation of Appium

1. Download the installation file: Https://pan.baidu.com/s/1jGvAISu#list/path=%2F,Windows The latest version is Appiumforwindows_1.4.16.1.zip

2. Directly double-click the Appium-installer.exe file to install, the desktop will generate a appium icon
3. Place the Node_modules Bin directory in the path path of the system:C:\Program Files (x86) \appium\node_modules\.bin

4. Configure environment variables after successful installation. Check if the environment required for Appium is OK: Enter the cmd command line, enter Appium-doctor, and the following prompt, all Checks were successful, indicates that the environment is successful.

5. Re-enter Appium, appear as follows, indicating that Appium can start normally, see:

V. Installation of Selenium

There are two methods of installation:
1) Download the Selenium installation package and go to the Unzip directory Cmd:python setup.py install.
2) cmd command: Pip install Selenium

After successful installation, open the Python shell or Idel interface, enter the from selenium import webdriver If you do not make an error, it means that the selenium has been installed successfully.

Vi. installation of Appium-python-client

There are two methods of installation:

1) Download the installation package and go to the Unzip directory Cmd:python setup.py install.
2) cmd command: Pip install appium-python-client

This completes the Appium Python environment.

Appium Environment Build Python

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.