Appium Device Farm安装教程

环境要求:Appium version ≥ 2.4.X

安装appium

bash 复制代码
npm install -g appium@2.11.3

如果安装提示如下问题

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/

相关推荐
测试人社区—66792 天前
2025区块链分层防御指南:AI驱动的安全测试实战策略
开发语言·驱动开发·python·appium·pytest
测试19982 天前
如何使用Appium实现移动端UI自动化测试?
自动化测试·软件测试·python·测试工具·ui·appium·测试用例
HEADKON6 天前
米托坦Mitotane长期治疗中的疗效监测与基于毒性的个体化剂量调整
appium
shughui12 天前
Android SDK 下载、安装与配置(详细图文附安装包,适配Appium+Python自动化)
android·python·appium·android-studio·android sdk
未定义.22113 天前
第7篇:跨端拓展!Playwright+Appium实现Web+移动端全覆盖
python·ui·appium·自动化·jenkins·pytest
BullSmall23 天前
自动化测试开发规范
selenium·测试工具·appium·自动化
BatyTao24 天前
Appium-Inspector下载安装全攻略
appium
阿蔹25 天前
UI测试自动化-Web-Python-Appium
前端·python·ui·appium·自动化
BatyTao1 个月前
无线真机自动化测试全攻略-appium+phthon
appium
010不二1 个月前
基于Appium爬虫文本导出可话个人动态(环境准备篇)
爬虫·python·appium