没明白什么意思,获取不到 xpath 吗?
@meil000 @zuiniao123 我也遇到这个问题了,你们清楚是什么引起的了嘛? 同一台手机,在公司电脑安装好的环境可以了,回到家里 mbp 安装环境后出现这个问题
现在是好的,但是今天在另一台电脑装又碰到这个问题,想弄清楚是什么引起的。
社区之前就有人提过
https://testerhome.com/topics/6774
@Lihuazhang 楼主,我之前在真机的时候遇到这个问题,后面重装了些东西,就可以跑了,但不知道是什么引起的
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
WebDriveAgentRunner 起来一下之后,就一直提示这个.
直接 xcbuild WDA 项目能安装上 WebDriveAgentRunner
出现下面提示:
t = 0.00s Start Test at 2016-12-20 09:58:02:209
t = 0.01s Set Up
不出现:Listening on USB
提示
Server 详细日志:
➜ ~ appium -U xxxxxx --app com. xxxxxx
[Appium] Welcome to Appium v1.6.3 (REV 589a9112bd0516befea756cc8e976fb1c4b031e9)
[Appium] Non-default server args:
[Appium] app: 'com. xxxxxx'
[Appium] udid: 'b0bd8418fd45d05837514c16d576a5c79ebb4c89'
[Appium] Deprecated server args:
[Appium] --app => --default-capabilities '{"app":"com. xxxxxx"}'
[Appium] -U,--udid => --default-capabilities '{"udid":"xxxxxx"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] app: 'com. xxxxxx'
[Appium] udid: 'xxxxxx'
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"requiredCapabilities":{},"desiredCapabilities":{"udid":"xxxxxx","deviceName":"iPhone 6s","app":"com.tzbank.pingAnFF","platformName":"iOS","automationName":"xcuitest"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"udid":"xxxxxx","deviceName":"iPhone 6s","app":"com.xxxxxx","platformName":"iOS","automationName":"xcuitest"},{},null,null,null]
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] udid: 'xxxxxx'
[Appium] deviceName: 'iPhone 6s'
[Appium] app: 'com.xxxxx'
[Appium] platformName: 'iOS'
[Appium] automationName: 'xcuitest'
[debug] [XCUITest] XCUITestDriver version: 2.4.2
[BaseDriver] Session created with session id: b9557498-09ba-4ce9-94b4-6afe4fcf7d71
[debug] [XCUITest] Xcode version set to '8.2.1'
[debug] [XCUITest] iOS SDK Version set to '10.2'
[debug] [XCUITest] Available devices: xxxxxx, xxxxxx
[debug] [XCUITest] Creating iDevice object with udid xxxxxx
[XCUITest] Determining device to run tests on: udid: 'xxxxxx', real device: true
[debug] [XCUITest] App is an iOS bundle, will attempt to run as pre-existing
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: '/usr/local/bin/idevicesyslog'
[XCUITest] Setting up real device
[XCUITest] Using WDA path: '/Users/dengwenbo/.nvm/versions/node/v6.9.5/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Using WDA agent: '/Users/dengwenbo/.nvm/versions/node/v6.9.5/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj'
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Killing hanging processes
[debug] [XCUITest] Using real device logger 'idevicesyslog'
[debug] [XCUITest] Beginning test with command 'xcodebuild build test -project /Users/dengwenbo/.nvm/versions/node/v6.9.5/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj -scheme WebDriverAgentRunner -destination id=xxxxxx -configuration Debug' in directory '/Users/dengwenbo/.nvm/versions/node/v6.9.5/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent'
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/dengwenbo/Library/Developer/Xcode/DerivedData/WebDriverAgent-hbhffnpetojvtsetwfwkjrmkaccw/Logs/Test/61D397D6-83C6-4BD1-ACB6-83E1C74E6D18/Session-WebDriverAgentRunner-2017-03-04_193011-0L2srM.log
[debug] [WebDriverAgent] Device: Mar 4 19:30:21 iStevende-iPhone XCTRunner[21780] <Notice>: Running tests...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [WebDriverAgent] Device: Mar 4 19:30:22 iStevende-iPhone XCTRunner[21780] <Notice>: Continuing to run tests in the background with task ID 1
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading...
我就是基于 RN 的 app 上做的测试,上面截图就是 rn 页面,只是说在 rn 页面上通过 appium inspector 获得的 xpath 去获取的页面元素时 textInput 不能通过 sendKeys,set_value 输入,其它暂时没发现和原生 app 有区别的地方,用阿里的 app-inspector 得到的 xpath 就可以正常输入
真机也是可以的
appium GUI 里面的 inspector 不支持 Xcode8,不能用视图检查器查找页面元素的 xpath
@appium_test 前面都可以成功到了第 13 步,报一样的错,但我不是没有信任的问题,而是每次打开都闪退
什么时候会有 iOS 的测试框架?
是可以获取到 app 的打印日志吗?
又装了个 Xcode7.3.1 可以顺利跑起来
不好意思了,没注意到支持 md