51Testing软件测试论坛

标题: 求助robotframework测试Android的app报错! [打印本页]

作者: 鹭岛    时间: 2017-5-2 17:08
标题: 求助robotframework测试Android的app报错!
Appium,启动都正常,在执行ride后,提示:
info: [debug] 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: [debug] Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.
>     at [object Object].<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: [debug] 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
顶一下
作者: 1039196210    时间: 2017-5-2 18:43
木有配置环境变量:Please set the ANDROID_HOME environment variable with the Android SDK root directory path
作者: jingzizx    时间: 2017-5-3 08:08
第一个问题是没有配置SDK的环境变量,他要使用里面的工具
作者: jingzizx    时间: 2017-5-3 08:09
deviceName是设备名字吧,记得可以通过adb命令查看吧
你一个个的解决问题
作者: 神仙也考试    时间: 2017-5-3 08:55
Error: Could not find adb. Please set the ANDROID_HOME environment variable with the Android SDK root directory path.




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2