第一步,下载adt-bundle-windows-x86_64
配置环境变量
ANDROID_HOME 值是Android SDK的解压路径
Path (%ANDROID_HOME%\platform-tools; %ANDROID_HOME%\tools;)



第二步, 下载 nodejs nodejs下载 地址 可直接下载免安装版.zip
解压nodejs,并配置环境变量
Path D:\app tools\nodeV8.7.0Winx64; (也就是node.exe文件所在的目录)
测试:CMD中输入node-v,能看到版本号


第三步,安装Appium。Appium下载地址
第一种方法安装Appium。
- 打开CMD窗口,执行 npm install -g appium 命令开始安装Appium. Appium默认被安装到C:\Users\Administrator\AppData\Roaming\npm\ 下。
- 把路径C:\Users\Administrator\AppData\Roaming\npm\ (appium可执行文件所在的目录)添加到环境变量Path
第二种方法安装Appium。
下载Appium压缩包 Appium压缩包
解压后配置appium环境变量
Path D:\tools\appium\Appium\node_modules.bin;
测试:CMD中输入appium-doctor,能看到All Checks were successful
image.png
运行cmd 输入 adb devices -l 查看UDID
再在cmd中输入 appium -a 127.0.0.1 -p4723 -U4d007e9a1b0050d1 (-a表示ip,-p表示端口,-U表示设备的udid 可以通过appium -h查看更多命令)
如果如下图所示 就表示 appium服务启动成功了,注意这个窗口不要关闭 因为这是appium的服务 关了就关了服务,后面过程无法执行,而且这个窗口也是 日志输出的窗口用于排错

网友评论