Appium 服务器的 Genymotion 路径
Genymotion path for Appium server
我正在 运行 在 Android 模拟器和 Appium 服务器上使用 Robot Framework 进行自动测试。默认的 Android Studio 模拟器不够好,所以我切换到 Genymotion。但是现在我 运行 Appium 服务器,我得到这个错误:
Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Android\sdk\platform-tools\build-tools'
我猜这是因为 Genymotion 没有使用 Android SDK。之前在此位置有模拟器的虚拟设备构建。
问题是:Genymotion 使用 Appium 的正确路径应该是什么?更重要的是,当我在 Appium 服务器的 Android 设置中更改默认的 sdk 路径时,它总是在末尾添加“\build-tools”(在这种情况下这是不正确的)。例如:
error: Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Genymobile\Genymotion\deployed\build-tools'
不知道怎么改。
我将衷心感谢您的帮助。提前致谢。
你需要确保
在 Appium 中 -
Appium UI -> Android Settings -> Advanced
SDK Path -> /User/adt-bundle-mac-x86_64-20140702/sdk //this is just an example
在 GenyMotion 中 -
Settings -> ADB -> Use GenyMotion Android tools (default)
OR
Settings -> ADB -> Use custom sdk -> /User/adt-bundle-mac-x86_64-20140702/sdk // same as Appium
我正在 运行 在 Android 模拟器和 Appium 服务器上使用 Robot Framework 进行自动测试。默认的 Android Studio 模拟器不够好,所以我切换到 Genymotion。但是现在我 运行 Appium 服务器,我得到这个错误:
Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Android\sdk\platform-tools\build-tools'
我猜这是因为 Genymotion 没有使用 Android SDK。之前在此位置有模拟器的虚拟设备构建。
问题是:Genymotion 使用 Appium 的正确路径应该是什么?更重要的是,当我在 Appium 服务器的 Android 设置中更改默认的 sdk 路径时,它总是在末尾添加“\build-tools”(在这种情况下这是不正确的)。例如:
error: Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Genymobile\Genymotion\deployed\build-tools'
不知道怎么改。 我将衷心感谢您的帮助。提前致谢。
你需要确保
在 Appium 中 -
Appium UI -> Android Settings -> Advanced SDK Path -> /User/adt-bundle-mac-x86_64-20140702/sdk //this is just an example
在 GenyMotion 中 -
Settings -> ADB -> Use GenyMotion Android tools (default) OR Settings -> ADB -> Use custom sdk -> /User/adt-bundle-mac-x86_64-20140702/sdk // same as Appium