Appium Device Farm安装教程

环境要求:Appium version ≥ 2.4.X

安装appium

bash 复制代码
npm install -g [email protected]

如果安装提示如下问题

bash 复制代码
npm error code EEXIST
npm error syscall rename
npm error path /Users/wan/.npm/_cacache/tmp/d5787519
npm error dest /Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa
npm error errno EEXIST
npm error Invalid response body while trying to fetch https://registry.npmjs.org/@appium%2fschema: EACCES: permission denied, rename '/Users/wan/.npm/_cacache/tmp/d5787519' -> '/Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa'
npm error File exists: /Users/wan/.npm/_cacache/content-v2/sha512/21/32/50fe213308630b7ac78404efb1133b7b1c84c1bac334e4e4966f706bced50b852c15ea912bd91afb2c521f061e8845b6b7d4f5ff360284305c2bb302c5fa
npm error Remove the existing file and try again, or run npm
npm error with --force to overwrite files recklessly.
npm error A complete log of this run can be found in: /Users/wan/.npm/_logs/2024-10-09T03_45_44_421Z-debug-0.log

则删除/Users/wan/.npm/_cacache、/Users/wan/.npm/_logs目录和_update-notifier-last-checked文件

安装appium-device-farm

bash 复制代码
appium plugin install --source=npm appium-device-farm

激活

bash 复制代码
appium server -ka 800 --use-plugins=device-farm  -pa /wd/hub --plugin-device-farm-platform=android

然后访问http://localhost:4723/device-farm/

相关推荐
程序员的世界你不懂20 小时前
Appium+python自动化(八)- 认识Appium- 下章
python·appium·自动化
水银嘻嘻1 天前
05 APP 自动化- Appium 单点触控& 多点触控
python·appium·自动化
水银嘻嘻2 天前
07 APP 自动化- appium+pytest+allure框架封装
python·appium·自动化·pytest
taoli-qiao2 天前
Appium如何支持ios真机测试
appium
程序员的世界你不懂3 天前
Appium+python自动化(九)- 定位元素工具
python·appium·自动化
水银嘻嘻3 天前
04 APP 自动化- Appium toast 元素定位&列表滑动
python·appium·自动化
水银嘻嘻5 天前
03 APP 自动化-定位元素工具&元素定位
python·appium·自动化
水银嘻嘻6 天前
02 APP 自动化-Appium 运行原理详解
python·appium·自动化
程序员的世界你不懂9 天前
Appium+python自动化(七)- 认识Appium- 上
python·appium·自动化
头疼的程序员10 天前
移动端 UI自动化测试学习之Appium框架(包含adb调试工具介绍)
测试工具·appium