Appium Mobile Automation Test (i)--mac installation Appium

Source: Internet
Author: User
Tags install node appium

First, Appium installation

1. Direct installation : Appium official website Download: https://bitbucket.org/appium/appium.app/downloads/

Here Mac system upgraded to Sierra, unable to install non-approved software, must restore "any source", Run command sudo spctl--master-disable, after success:

 

However, there is a problem, Appium can not detect Mac OS 10.11 version, we only need to change the corresponding configuration, detailed reference: https://stackoverflow.com/questions/40129794/ How-to-fix-error-could-not-detect-mac-os-x-version-from-sw-vers-output-10-12

2. Command-line installation

> Brew Install Node # get node. js or install directly: node. JS official website Download: https://nodejs.org/zh-cn/download/(directly installed node contains NPM directly, And the path is correct, there is no association error)

> NPM install-g appium # get Appium

> NPM Install WD # get Appium Client

Directly with NPM download is often unsuccessful, which is required by the agent to download, I refer to the article is: https://segmentfault.com/q/1010000006025361/a-1020000006252474

Here's how:

> npm i cnpm -g --registry=http://registry.npm.taobao.org

> cnpm i appium -g   # get appium

> CNPM i wd-g # get Appium Client

> CNPM i appium-doctor # get Appium-doctor

3. Check Appium for successful installation

Some of the above software is not installed, next make up.

Second, appium configuration

1. AppStore download Xcode direct installation can be;

or command-line installation: $ xcode-select--install

2. Android SDK:HTTP://TOOLS.ANDROID-STUDIO.ORG/INDEX.PHP/SDK

Unzip the downloaded Android SDK to get the following directory. (Specific installation steps can be read in SDK Readme.txt)

 

Click Run File tools/android, install step by step install and download the SDK, configure environment variables

> Vim ~/.bash_profile

Export ANDROID_HOME=/USR/LOCAL/ANDROID-SDK-MACOSX

Export Path=${path}:${android_home}/tools

Export Path=${path}:${android_home}/platform-tools

3. After downloading Java installation, configure environment variables (detailed reference: http://www.micmiu.com/lang/java/set-javahome-on-mac-os-x/)

> Vim ~/.bash_profile

Export java_home=$ (/usr/libexec/java_home) # Get Latest Version

Export Path=${java_home}/bin: $PATH

Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar

4. Check Appium for successful installation

All configurations are successful, if there is a fork, then configure, until all the hook.

The first step in the Long March, I wish you success!

Appium Mobile Automation Test (i)--mac installation Appium

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.