There are two ways to build a appium environment under Mac:
1. Direct Download APPIUM.DMG Run
2. Use node to run Appium from the command line
Appnium Environment Building under Mac
First, install the homebrew
1. First run the command installation homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
2. View version
Brow-v
3. If the version is removed, enter the command below
Rm-rf/usr/local/cellar/usr/local/.git && Brew Cleanup
Second, installation Nodejs
1. After the terminal input Brew Install node command installs node. JS installation, after the terminal enters the node-v command to check whether the installation is successful, a version message appears stating that the installation was successful.
Third, in the terminal input NPM install-g Appium, here focus on, do not use sudo installation appium. If a sudo installation is used, but does not work, here is a solution:
pc-0080:~ guokr$ sudo npm uninstall appium-g//Uninstall Appium
unbuild [email protected]
pc-0080:~ guokr$ sudo chmod-r 777/usr/local//permissions on one cut.
pc-0080:~ guokr$ npm install-g appium//re-install
Iv. Installation of Appium client
The command given on the Appium main station is NPM install WD which should be the old version of the installation method. Go to the Appium branch on GitHub to download the Python-client-master, then enter the directory under the terminal, enter the Python setup.py install command for module installation
git clone [email protected]:appium/python-client.git
CD python-client
Python setup.py Install
Five, start Appium
Appium &
Pc-0080:python-client guokr$ Appium &
[1] 35465
Pc-0080:python-client guokr$ info:welcome to Appium v1.3.4 (REV c8c79a85fbd6870cd6fc3d66d038a115ebe22efe)
Info:appium REST HTTP Interface listener started on 0.0.0.0:4723
Info:console Loglevel:debug
Vi. Appium provides the command to check whether Appium dependencies are installed
Terminal input Appium-doctor
The results are as follows:
pc-0080:~ guokr$ Appium-doctor
Running IOS Checks
? Xcode is installed At/applications/xcode.app/contents/developer
? Xcode Command line Tools is installed.
? Devtoolssecurity is enabled.
? The Authorization DB is set up properly.
? Node Binary found At/usr/local/bin/node
? IOS Checks were successful.
Running Android Checks
? Android_home is set to "/USERS/GUOKR/DOWNLOADS/ADT/SDK"
? Java_home is not set
Since I only need to execute an iOS test case this time, the basics are going to make sure that iOS relies on no problems.
Write here, Appnium Environment set up, then learn some of the framework it!
* * * organized from http://www.15yan.com/story/4GbuTwXQKDU/
Appnium Installation--mac Chapter