Appium automated test environment based on Python language in MAC OS environment

Source: Internet
Author: User

#1 Installing the JDK

Java-version

#2 Download SDK

http://adt.android-studio.org/

Download ADT

#3 Configuring SDK Environment variables

Open terminal, enter command in sequence

Vim. Bash_profile

Add and then save in the text

Export ANDROID_HOME=/APPLICATIONS/ECLIPSE/SDK

Export path= $PATH: $ANDROID _home/platform-tools: $ANDROID _home/tools

Where Android_home is the path for the downloaded SDK

Then enter the command in the terminal

source. bash_profile

environment variable settings OK, now try to enter the ADB return in the terminal window, do not show command not found is the success

#4 Installing Appium

DMG Program:

Official Download: http://appium.io/

Domestic Download: Http://pan.baidu.com/s/1jGvAISu (recommended)

#5 Installing Appium-python-client

In the terminal window, enter the command:

Pip Install Appium-python-client

At this point enter Python3 in the terminal, and then enter the import Appium, if not an error stating that the installation was successful

#6 Configuring appt Environment variables

aapt_home=/users/du/library/android/sdk/build-tools/25.0.0

Export Aapt_home

Export path= $PATH: $AAPT _home

Note that aapt_home can be the path to any version of the build-tools of your SDK

Use AAPT dump badging <apk path> to view the APK information

Appium automated test environment based on Python language in MAC OS environment

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.