Appium Automated test Environment Deployment _android

Source: Internet
Author: User
Tags appium

The environment for a clean windows appium test needs to be as follows (for python):

    1. Android SDK

    2. Java (JDK)

    3. adb

    4. Emulator

    5. node. js

    6. Appium(one of the latest 1.0.2 versions, one 1.4.16 version, which you install randomly)

    7. Install the appium-python-client plugin on Python

1, We first download androidsdk, open the installation file next to the end:

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/97/E3/wKiom1k0xbqBGPV5AAB9rd43Qtg745.png-wh_500x0-wm_ 3-wmp_4-s_3888847034.png "title=" Installation Sdk.png "alt=" Wkiom1k0xbqbgpv5aab9rd43qtg745.png-wh_50 "/>

Configure environment variables when installation is complete:

Add the%android_home% variable value to C:\Program Files (x86) \android\android-sdk(that is, the directory you installed)

in the Add%android_home%/tools and%android_home%/platform-tools paths in the path variable

Note: some After the SDK installation is complete , the platform directory may be required to manually build a platform-tools path.

and put adb The relevant files are placed in this directory.

also need to manually build a build-tools folder, which is required after using the emulator.

Check ANDROIDSDK Environment is configured, run cmd--- input android-h view:

650) this.width=650; "Src=" https://s4.51cto.com/wyfs02/M00/97/E4/wKioL1k0xceSetPQAABQ4zQU108704.png-wh_500x0-wm_ 3-wmp_4-s_3641254941.png "title=" Run check the Android SDK environment. png "alt=" wkiol1k0xcesetpqaabq4zqu108704.png-wh_50 "/>

This information appears to indicate that the ANDROIDSDK environment is well-configured.

2, install the JDK, very simple installation directly next to the end, and then configure the environment variables:

Add the%java_home% variable with a value of C:\Program Files (x86) \java\jdk1.8.0_60(that is, the directory you installed)

in the Add the%java_home%\bin and %java_home%\jre\bin directories in the PATH variable

3. The Adb.exe file is placed in the Platform-tools directory that was built in the first step :

650) this.width=650; "Src=" https://s1.51cto.com/wyfs02/M01/97/E3/wKiom1k0xdPQtxfdAAAwdAuZrKo525.png-wh_500x0-wm_ 3-wmp_4-s_684295118.png "title=" adb file. png "alt=" wkiom1k0xdpqtxfdaaawdauzrko525.png-wh_50 "/>

The Adb is primarily used to connect Android phones.

4, Install node, also directly open the installation file Click Next to the end, and then configure the environment variables:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M02/97/E3/wKiom1k0xd3Qa0a3AACRUg40sp8410.png-wh_500x0-wm_ 3-wmp_4-s_1683896486.png "title=" Node installation. png "alt=" wkiom1k0xd3qa0a3aacrug40sp8410.png-wh_50 "/>

After the installation is complete, we will set the environment variables:

in the Add C:\Program Files\nodejs(that is, your installation directory) in the PATH variable

Check if node is installed successfully, go to cmd--- enter node–v to see if the version information appears:

650) this.width=650; "Src=" https://s5.51cto.com/wyfs02/M00/97/E4/wKioL1k0xeaQaIFEAAAR9lGfD-c104.png-wh_500x0-wm_ 3-wmp_4-s_2321181717.png "title=" checks if node is successfully installed. png "alt=" wkiol1k0xeaqaifeaaar9lgfd-c104.png-wh_50 "/>

5, install appium Client, I installed here is the 1.0.2 version, open the installation file itself will be directly installed to complete

in the Add C:\Program Files (x86) in PATH \appium\node_modules\.bin

6, the installation of Appium-python-client, the premise ofyour python environment is already good

can be installed through Pip, it is recommended to use pycharm Software Installation, very convenient

7. Finally we enter cmd--- input appium-doctor Verify that the Appium test environment is OK:

650) this.width=650; "Src=" https://s3.51cto.com/wyfs02/M00/97/E4/wKioL1k0xe-ROiOSAABcJVQIYas648.png-wh_500x0-wm_ 3-wmp_4-s_3793133344.png "title=" verifies that the Appium environment was successfully installed. png "alt=" wkiol1k0xe-roiosaabcjvqiyas648.png-wh_50 "/>

there are problems to add QQ Group: 610845268


This article is from the "It Bug" blog, so be sure to keep this source http://laomomo.blog.51cto.com/6595318/1932248

Appium Automated test Environment Deployment _android

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.