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

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

> 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

版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/02/28/appium-automation-testing-install-appium-through-node-js/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。

THE END
分享
二维码
打赏
海报
Appium自动化测试(3)—— 通过 Node.js安装 Appium
由于Appium-Server已经有一两年没有更新了,Windows版在 2015 年底止步于的 AppiumForWindows_1_4_16_1.zip。而且有时候只能通过命令行搭建 Appium,推荐通过 ……
<<上一篇
下一篇>>
文章目录
关闭
目 录