Linux下Appium环境搭建
First:
In Linux system, you have installed Jdk and Python.
The level should be higher enough. The environment should be set success.
Second:
Software package:
Software name Software URL node http://nodejs.org/download/ SDK http://developer.android.com/sdk/index.html ant http://ant.apache.org/bindownload.cgi Appium https://github.com/appium/appiu
Linux need you git clone source code by git.
Third :
I. Install node and set environment variables
Decompress package and go to node directory.
Execute Linux order:
export NODE_HOME=<node directory>
export PATH=${PATH}:${NODE_HOME}/bin
Identify:
![]()
II. Install ant and set environment variables
Decompress package and go to node directory.
Execute Linux order:
export ANT_HOME=<ant directory>
export PATH=${PATH}:${ANT_HOME}/bin
Identify:
![]()
III. Install ant and set environment variables
Decompress package and go to node directory.
Execute Linux order:
export SDK_HOME=<ant directory>
export PATH=${PATH}:${SDK_HOME}/tools
Add the executive authority of tools && build-tools && platform-tools.
Go to the directory and execute "chmod 777 * -R" order.
Identify:
Forth :
Install appium by Linux order. Clone appium source code by order "git clone git clone https://github.com/appium/appium.git".
Decompress package and go to node directory.
Execute the Linux order "./reset.sh --dev --verbose".
Identify:
Fifth :
Creat hard link of appium
<span style="font-size: 14px;"> </span><span style="font-size:10px;"><strong>sudo ln -s <appium directory>/bin/appium.js /usr/local/bin/appium</strong></span>
Linux order summary:
Delete directory: rm -rf
Set PATH: export
Decompress: tar -vxzf / unzip
Git file: git clone
Copy directory: cp -rf sou-dir goal-dir
Make directory: mkdir
See pids: ps
Kill PID: kill -s 9 pid
vim edit