51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1621|回复: 4
打印 上一主题 下一主题

appium ios 真机调试 WebDriverAgent 连接不上

[复制链接]
  • TA的每日心情
    无聊
    昨天 09:08
  • 签到天数: 531 天

    连续签到: 1 天

    [LV.9]测试副司令

    跳转到指定楼层
    1#
    发表于 2019-8-30 10:11:00 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
    1测试积点
    appium ios自动化,之前是用的是模拟器调试 一直都没有问题,最近想用真机调试 就出问题了

    测试环境:
    手机:iPhone 8 - ios12
    xcode版本:10.1(最新的)
    appium-desktop:1.9(最新的)
    WebDriverAgent:是从刚刚从github clone下来的(appium内部自带的WebDriverAgent那个也试过,也不行)

    基本都是按照这个步骤走的 https://github.com/appium/appium ... al-device-config.md

    问题:
    走到安装WebDriverAgent
    用 command+U 安装的时候 能够装到手机上 但是最后Test Fail了 然后log在下面
    用iproxy 命令去 查看 WebDriverAgentRunner的运行状态 也找不行

    xcode的报错log在下面:
    1. 2018-12-13 17:24:17.110503+0800 WebDriverAgentRunner-Runner[2664:322433] +[CATransaction synchronize] called within transaction
    2. 2018-12-13 17:24:17.139884+0800 WebDriverAgentRunner-Runner[2664:322433] Running tests...
    3. Failed to run tests: Timed out trying to establish connection to IDE.
    4. Dumping buffered debug messages:
    5. ====================
    6. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Linked XCTest.framework from /var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks/XCTest.framework/XCTest, built with Xcode 1010(10B43a), modified on 2018年12月13日 星期四 中国标准时间 下午3:55:32
    7. XCTest.framework bundle version: 14460.20
    8. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] System uptime: 22:03:27
    9. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process arguments: (
    10.     "/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
    11.     "-NSTreatUnknownArgumentsAsOpen",
    12.     NO,
    13.     "-ApplePersistenceIgnoreState",
    14.     YES
    15. )
    16. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process environment: {
    17.     "CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
    18.     "CA_DEBUG_TRANSACTIONS" = 0;
    19.     "CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
    20.     CLASSIC = 1;
    21.     "DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks:";
    22.     "DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks";
    23.     HOME = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
    24.     LOGNAME = mobile;
    25.     "MTC_CRASH_ON_REPORT" = 1;
    26.     NSUnbufferedIO = YES;
    27.     "OS_ACTIVITY_DT_MODE" = YES;
    28.     PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
    29.     SHELL = "/bin/sh";
    30.     "SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
    31.     TMPDIR = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/";
    32.     USER = mobile;
    33.     XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/WebDriverAgentRunner-D115F51F-EA87-4682-B3E0-0F7DE7921CC2.xctestconfiguration";
    34.     "XPC_FLAGS" = 0x0;
    35.     "XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner[0x6bfe][62]";
    36.     "__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
    37. }
    38. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] App Sandbox active: YES
    39. 17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Loading test bundle at: file:///private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
    40. 17:24:17.267 WebDriverAgentRunner-Runner[2664:322433] Finished loading test bundle
    41. 17:24:17.268 WebDriverAgentRunner-Runner[2664:322433] Readying IDE session
    42. 17:24:17.274 WebDriverAgentRunner-Runner[2664:322433] Creating future for 'Exchange protocol versions with daemon' with timeout 15.00
    43. 17:24:17.275 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> entering wait loop for 15.00s with expectations: `Exchange protocol versions with daemon`
    44. 17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> done waiting
    45. 17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress>.
    46. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> reporting timed out failure with Exchange protocol versions with daemon
    47. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> cleaning up `Exchange protocol versions with daemon`
    48. 17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] Connection to testmanagerd timed out, unknown protocol version. Client protocol version is 26
    49. 17:24:32.366 WebDriverAgentRunner-Runner[2664:322433] Requesting socket
    50. 17:24:32.367 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> entering wait loop for 60.00s with expectations: `Transport for IDE session acquired`
    51. 17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> done waiting
    52. 17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress>.
    53. 17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> reporting timed out failure with Transport for IDE session acquired
    54. 17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> cleaning up `Transport for IDE session acquired`
    55. ====================
    复制代码


    分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
    收藏收藏
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 10:15
  • 签到天数: 1523 天

    连续签到: 2 天

    [LV.Master]测试大本营

    2#
    发表于 2019-9-2 10:44:15 | 只看该作者
    看看权限
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 07:30
  • 签到天数: 2820 天

    连续签到: 2 天

    [LV.Master]测试大本营

    3#
    发表于 2019-9-2 12:11:19 | 只看该作者
    连接有问题
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    昨天 16:45
  • 签到天数: 998 天

    连续签到: 2 天

    [LV.10]测试总司令

    4#
    发表于 2019-9-2 13:54:53 | 只看该作者
    版本不一样
    回复

    使用道具 举报

  • TA的每日心情
    奋斗
    前天 09:55
  • 签到天数: 367 天

    连续签到: 1 天

    [LV.9]测试副司令

    5#
    发表于 2019-9-2 17:22:07 | 只看该作者
    仔细检查下配置
    回复

    使用道具 举报

    本版积分规则

    关闭

    站长推荐上一条 /1 下一条

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

    GMT+8, 2024-11-27 04:23 , Processed in 0.064003 second(s), 24 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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