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/

相关推荐
cllsse2 天前
appium学习
appium
卓码软件测评21 天前
第三方软件测试机构:Appium如何使用Selenium的客户端库?
功能测试·selenium·测试工具·性能优化·appium
难以怀瑾25 天前
Appium笔记
笔记·appium
aiden:)1 个月前
App UI 自动化环境搭建指南
运维·python·ui·appium·自动化
Steven_yang_12 个月前
关于ANDROUD APPIUM安装细则
appium
币圈小菜鸟2 个月前
Windows 环境下搭建移动端自动化测试环境(JDK + SDK + Node.js + Appium)
java·windows·python·测试工具·node.js·appium
nece0012 个月前
使用appium对安卓(使用夜神模拟器)运行自动化测试
自动化测试·appium·安卓自动化测试
Warren982 个月前
Appium学习笔记
android·windows·spring boot·笔记·后端·学习·appium
Java方文山2 个月前
Appium+Python 实现移动应用自动化测试:从基础到实战
appium
有风南来3 个月前
appium2.0+之PointerActions详解
自动化测试·appium·高级手势·pointeractions·移动设备自动化·单点触控