Appium自动化测试(3)—— 通过 Node.js安装 Appium

由于Appium-Server已经有一两年没有更新了,Windows版在 2015 年底止步于的 AppiumForWindows_1_4_16_1.zip。而且有时候只能通过命令行搭建 Appium,推荐通过 Node.js安装 Appium。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
> npm install -g appium  //网速超慢
> npm install cnpm -g --registry=https://registry.npm.taobao.org
> cnpm install -g appium //ResponseTimeoutError
> npm --registry https://registry.npm.taobao.org install -g appium
> npm --registry http://r.cnpmjs.org install -g appium
> appium -v
1.7.2
> npm install -g appium-doctor
> appium-doctor
info AppiumDoctor Appium Doctor v.1.4.3
info AppiumDoctor ### Diagnostic starting ###
info AppiumDoctor ✔ The Node.js binary was found at: C:\Program Files\nodejs\node.exe
info AppiumDoctor ✔ Node version is 9.8.0
info AppiumDoctor ✔ ANDROID_HOME is set to: E:\Android-Sdk
info AppiumDoctor ✔ JAVA_HOME is set to: C:\Program Files\Java\jdk1.8.0_151
info AppiumDoctor ✔ adb exists at: E:\Android-Sdk\platform-tools\adb.exe
info AppiumDoctor ✔ android exists at: E:\Android-Sdk\tools\android.bat
info AppiumDoctor ✔ emulator exists at: E:\Android-Sdk\tools\emulator.exe
info AppiumDoctor ✔ Bin directory of %JAVA_HOME% is set
info AppiumDoctor ### Diagnostic completed, no fix needed. ###
info AppiumDoctor
info AppiumDoctor Everything looks good, bye!
info AppiumDoctor

> appium //启动
[Appium] Welcome to Appium v1.7.2
[Appium] Appium REST http interface listener started on 0.0.0.0:4723

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :