TA的每日心情 无聊 昨天 09:08
签到天数: 531 天
连续签到: 1 天
[LV.9]测试副司令
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在下面:
2018-12-13 17:24:17.110503+0800 WebDriverAgentRunner-Runner[2664:322433] +[CATransaction synchronize] called within transaction
2018-12-13 17:24:17.139884+0800 WebDriverAgentRunner-Runner[2664:322433] Running tests...
Failed to run tests: Timed out trying to establish connection to IDE.
Dumping buffered debug messages:
====================
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
XCTest.framework bundle version: 14460.20
17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] System uptime: 22:03:27
17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process arguments: (
"/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/WebDriverAgentRunner-Runner",
"-NSTreatUnknownArgumentsAsOpen",
NO,
"-ApplePersistenceIgnoreState",
YES
)
17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] Process environment: {
"CA_ASSERT_MAIN_THREAD_TRANSACTIONS" = 0;
"CA_DEBUG_TRANSACTIONS" = 0;
"CFFIXED_USER_HOME" = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
CLASSIC = 1;
"DYLD_FRAMEWORK_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks:";
"DYLD_LIBRARY_PATH" = "/private/var/containers/Bundle/Application/6596DD42-A951-4C61-B9EE-EEEFF8CE38C5/WebDriverAgentRunner-Runner.app/Frameworks";
HOME = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8";
LOGNAME = mobile;
"MTC_CRASH_ON_REPORT" = 1;
NSUnbufferedIO = YES;
"OS_ACTIVITY_DT_MODE" = YES;
PATH = "/usr/bin:/bin:/usr/sbin:/sbin";
SHELL = "/bin/sh";
"SQLITE_ENABLE_THREAD_ASSERTIONS" = 1;
TMPDIR = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/";
USER = mobile;
XCTestConfigurationFilePath = "/private/var/mobile/Containers/Data/Application/3C64B3FD-BA30-419D-BB58-1FD6A8B99CA8/tmp/WebDriverAgentRunner-D115F51F-EA87-4682-B3E0-0F7DE7921CC2.xctestconfiguration";
"XPC_FLAGS" = 0x0;
"XPC_SERVICE_NAME" = "UIKitApplication:com.apple.test.WebDriverAgentRunner-Runner[0x6bfe][62]";
"__CF_USER_TEXT_ENCODING" = "0x1F5:0:0";
}
17:24:17.144 WebDriverAgentRunner-Runner[2664:322433] App Sandbox active: YES
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
17:24:17.267 WebDriverAgentRunner-Runner[2664:322433] Finished loading test bundle
17:24:17.268 WebDriverAgentRunner-Runner[2664:322433] Readying IDE session
17:24:17.274 WebDriverAgentRunner-Runner[2664:322433] Creating future for 'Exchange protocol versions with daemon' with timeout 15.00
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`
17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress> done waiting
17:24:32.363 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateInProgress>.
17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> reporting timed out failure with Exchange protocol versions with daemon
17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eac6e0, state: XCTWaiterStateFailed> cleaning up `Exchange protocol versions with daemon`
17:24:32.364 WebDriverAgentRunner-Runner[2664:322433] Connection to testmanagerd timed out, unknown protocol version. Client protocol version is 26
17:24:32.366 WebDriverAgentRunner-Runner[2664:322433] Requesting socket
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`
17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress> done waiting
17:25:32.383 WebDriverAgentRunner-Runner[2664:322433] Canceling watchdog for <XCTWaiter: 0x280eb8080, state: XCTWaiterStateInProgress>.
17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> reporting timed out failure with Transport for IDE session acquired
17:25:32.384 WebDriverAgentRunner-Runner[2664:322433] <XCTWaiter: 0x280eb8080, state: XCTWaiterStateFailed> cleaning up `Transport for IDE session acquired`
====================
复制代码
我来回答