51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

查看: 2415|回复: 5
打印 上一主题 下一主题

求助robotframework测试Android的app报错!

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2017-5-2 17:08:51 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
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
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

  • TA的每日心情
    开心
    2019-9-5 16:23
  • 签到天数: 124 天

    连续签到: 1 天

    [LV.7]测试师长

    3#
    发表于 2017-5-2 18:43:00 | 只看该作者
    木有配置环境变量:Please set the ANDROID_HOME environment variable with the Android SDK root directory path

    评分

    参与人数 1测试积点 +10 收起 理由
    lsekfe + 10 积极回复获得测试积点10 赶快去商城换取奖.

    查看全部评分

    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    3 天前
  • 签到天数: 2663 天

    连续签到: 3 天

    [LV.Master]测试大本营

    4#
    发表于 2017-5-3 08:08:22 | 只看该作者
    第一个问题是没有配置SDK的环境变量,他要使用里面的工具
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    奋斗
    3 天前
  • 签到天数: 2663 天

    连续签到: 3 天

    [LV.Master]测试大本营

    5#
    发表于 2017-5-3 08:09:19 | 只看该作者
    deviceName是设备名字吧,记得可以通过adb命令查看吧
    你一个个的解决问题
    回复 支持 反对

    使用道具 举报

  • TA的每日心情
    无聊
    2017-11-26 18:46
  • 签到天数: 382 天

    连续签到: 1 天

    [LV.9]测试副司令

    6#
    发表于 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 下一条

    小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

    GMT+8, 2024-5-3 11:06 , Processed in 0.067672 second(s), 23 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

    快速回复 返回顶部 返回列表