First, install the JDK, JDK configuration environment
Baidu search download on the line, here to share a download link: https: //pan.baidu.com/s/1snuTOAx Password: 9z8r.
Click OK to install after downloading. Configure the environment variables after installation.
Turn on the computer - "System Properties -" Advanced System Settings - "Environment Variables -" New (system variables), as shown:
After configured JAVA_HOME% JAVA_HOME% / bin;% JAVA_HOME% / jre / bin join the Path;
Verify the JDK environment is configured, win + enter the next r cmd java -version to check whether the configuration environment.
Second, install the Android SDK, SDK configuration environment
A lot of people are directly download Android Studio, but if you just do the automation, then only need to download the Android SDK on the line.
Download: http: //tools.android-studio.org/index.php/sdk/
After downloading the Android SDK successfully extract the configuration environment.
As described above, like the new JAVA_HOME, New ANDROID_HOME, as shown:
SDK files are unpacked folder open, click the SDK Manager, Android SDK Platform-tools in the Tools and install Android SDK Build-tools, Android SDK Tools can choose whether to update, would have a direct update. Mirror: pick any version can also select multiple versions of installation, I like to be directly connected to the real machine, because the mirror is relatively large, so like the real machine friends can not download the image, GoogleFQ installation: Extras folder all fully installed .
The% ANDROID_HOME% \ tools;% ANDROID_HOME% \ platform-tools;% ANDROID_HOME% \ build-tools \ 27.0.3 environment variable added to the Path;
检查Android SDK是否配置成功,win+r cmd打开命令行窗口,在命令行窗口中输入adb –-version;
三、安装Node.js
选择大多数人下载的那个就行
下载获取到安装文件后,直接双击安装文件,根据程序的提示,完成nodejs的安装(一直下一步就行,可以将路径进行修改)。
将Node.js的安装路径(也就是node.exe文件所在的目录)D:\Program Files\nodejs追加到环境变量Path中。
检查一下环境是否配置好,在命令行中输入npm
四、安装.net framework
由于Appium是用.net开发的,所以安装之前需要安装.net framework,否则安装过程中会报错,官网下载:http://www.microsoft.com/zh-cn/download/details.aspx?id=30653
下载成功后直接点击安装即可。
五、安装Appium
下载地址:https://bitbucket.org/appium/appium.app/downloads/
当前最新版本为 AppiumForWindows_1_4_16_1.zip ,注意这是一个 Windows 版本,如果你的电脑为MAC请下载 appium-1.5.3.dmg 。虽然你已经看到了这些下载包,但我不保证你能下载的下来。
所以,再来提供一个百度网盘的下载链接:https://pan.baidu.com/s/1pKMwdfX
我们以 Windows 为例,将下载的 AppiumForWindows.zip 进行解压,点击 appium-installer.exe 进行安装。
在Path中配置appium的环境变量,将安装的Appium文件夹所在目录\Appium\node_modules\.bin添加进path
cmd打开命令行窗口,输入appium-doctor ,出现以下提示,All Checks were successful ,说明环境配置成功。
六、安装appium - python - client(这步很重要,目的是需要将Python与appium关联起来)
首先需要安装Python27,进行环境配置
这个在这就不讲述了,一般都提前安装配置有,在这写这个的目的时需要将Python与appium关联起来。
cmd打开命令行窗口,输入:pip install Appium-Python-Client,提示成功就可以了,我这边是已经安装过了。
至此,appium环境搭建成功!!!