鹭岛 发表于 2017-5-2 17:08:51

求助robotframework测试Android的app报错!

Appium,启动都正常,在执行ride后,提示:
info: Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.

我安装了Appium(AppiumForWindows_1_4_16_1)、夜神模拟器
ride命令如下:
Open Application    http://localhost:4723/wd/hub    platformName=Android    platformVersion=23    deviceName=NoxPlayer    app=E:/app-debug.apk

'deviceName我是瞎蒙的,这个要从哪里获取值?哪个值?看样子好像是模拟器的名称,但不知道在哪里看!

Appium报错:
> error: Failed to start an Appium session, err was: Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
> info: Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
>   at .<anonymous> (D:\Program Files\Appium\node_modules\appium\node_modules\appium-adb\lib\adb.js:126:12)
>   at ChildProcess.exithandler (child_process.js:758:5)
>   at ChildProcess.emit (events.js:110:17)
>   at maybeClose (child_process.js:1016:16)
>   at Process.ChildProcess._handle.onexit (child_process.js:1088:5)
> info: Responding to client with error: {"status":33,"value":{"message":"A new session could not be created. (Original error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.)","origValue":"Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path."},"sessionId":null}
> info: <-- POST /wd/hub/session 500 71220.599 ms - 342

梦想家 发表于 2017-5-2 17:55:20

顶一下

1039196210 发表于 2017-5-2 18:43:00

木有配置环境变量:Please set the ANDROID_HOME environment variable with the Android SDK root directory path

jingzizx 发表于 2017-5-3 08:08:22

第一个问题是没有配置SDK的环境变量,他要使用里面的工具

jingzizx 发表于 2017-5-3 08:09:19

deviceName是设备名字吧,记得可以通过adb命令查看吧
你一个个的解决问题

神仙也考试 发表于 2017-5-3 08:55:46

Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
页: [1]
查看完整版本: 求助robotframework测试Android的app报错!