好车主?
有氧 + 无氧才能更好的减肥,单纯的有氧在长时间后也会消耗肌肉
maven 虽然在用 也不是狠了解,建议先试下直接用 testng.xml 执行,如果可以再试下用 clean install..坐等大神来看
test.LoginPageTest 是否有@Test
服务器日志:
[Appium] Welcome to Appium v1.6.4
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> GET /wd/hub/status {}
[debug] [MJSONWP] Calling AppiumDriver.getStatus() with args: []
[debug] [MJSONWP] Responding to client with driver.getStatus() result: {"build":{"version":"1.6.4","revision":null}}
[HTTP] <-- GET /wd/hub/status 200 22 ms - 83
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}},"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,{},{"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}}"}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1494033351556 (09:15:51 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.28.2) session
[Appium] Capabilities:
[Appium] app: '/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa'
[Appium] noReset: true
[Appium] newCommandTimeout: '300'
[Appium] platformVersion: '10.2'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] udid: '91a567fc5875c36dbe791a1d871fd9f328040841'
[Appium] deviceName: 'iPhone'
[Appium] webDriverAgentUrl: 'http://localhost:8100'
[debug] [XCUITest] XCUITestDriver version: 2.28.2
[BaseDriver] Capability 'newCommandTimeout' changed from string ('300') to integer (300). This may cause unexpected behavior
[BaseDriver] Session created with session id: f3b9ede3-129a-4a88-995a-7671f1c7b16a
[debug] [XCUITest] Xcode version set to '8.3.1' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1494033351694 (09:15:51 GMT+0800 (CST))
[XCUITest] The 'idevice_id' program is not installed. If you are running a real device test it is necessary. Install with 'brew install libimobiledevice --HEAD'
[debug] [XCUITest] Available devices:
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
[HTTP] <-- POST /wd/hub/session 500 276 ms - 213
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,{},null"}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1494033351852 (09:15:51 GMT+0800 (CST))
[Appium] Creating new XCUITestDriver (v2.28.2) session
[Appium] Capabilities:
[Appium] app: '/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa'
[Appium] noReset: true
[Appium] newCommandTimeout: '300'
[Appium] platformVersion: '10.2'
[Appium] automationName: 'XCUITest'
[Appium] platformName: 'iOS'
[Appium] udid: '91a567fc5875c36dbe791a1d871fd9f328040841'
[Appium] deviceName: 'iPhone'
[Appium] webDriverAgentUrl: 'http://localhost:8100'
[debug] [XCUITest] XCUITestDriver version: 2.28.2
[BaseDriver] Capability 'newCommandTimeout' changed from string ('300') to integer (300). This may cause unexpected behavior
[BaseDriver] Session created with session id: 261a6527-e2d4-48e6-9ab8-b53e833ccf5f
[debug] [XCUITest] Xcode version set to '8.3.1' (tools v8.3.2.0.1.1492020469)
[debug] [XCUITest] iOS SDK Version set to '10.3'
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1494033351887 (09:15:51 GMT+0800 (CST))
[XCUITest] The 'idevice_id' program is not installed. If you are running a real device test it is necessary. Install with 'brew install libimobiledevice --HEAD'
[debug] [XCUITest] Available devices:
[debug] [XCUITest] Not clearing log files. Use clearSystemFiles
capability to turn on.
[HTTP] <-- POST /wd/hub/session 500 124 ms - 213
[HTTP] --> POST /wd/hub/session {"capabilities":{"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}}"}}
[debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [null,null,{"desiredCapabilities":{"app":"/Users/globalegrow2017/Desktop/autowork/gearbestAndroid/apps/Gearbest.ipa","noReset":true,"newCommandTimeout":"300","platformVersion":"10.2","automationName":"XCUITest","platformName":"iOS","udid":"91a567fc5875c36dbe791a1d871fd9f328040841","deviceName":"iPhone","webDriverAgentUrl":"http://localhost:8100,"requiredCapabilities":{}}"}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at 1494033351982 (09:15:51 GMT+0800 (CST))
[HTTP] <-- POST /wd/hub/session 500 19 ms - 179
java+10086
点击之后不要有延迟
用视觉对比么?其实应该也还有文字(字体,颜色),坐标点(颜色),可以看看按键精灵,基于视图做的。
三分练七分吃,多做无氧。
好医生?
先获取元素,然后用元素的 gettext 方法。
去掉之后无法获取 toast
去掉了就无法获取 toast 了
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub,capabilities")); 明显错了
楼主解决了吗 去掉了 capabilities.setCapability( "automationName","uiautomator2"): 就不能获取到 toast 了。
@kasi @seveniruby @Lihuazhang 帮忙看看呢,已安装 appium-uiautomator2-driver ,2 个 apk 手机上也有了。
除了 automationName 赋值为 Uiautomator2,还有其他的设置么,例如 new driver 的时候要 new AndroidUiautomator2Driver ?
appium-Uiautomator2-driver 也已经装了,但是发现还是有问题,方便沟通一下么?
怎么更新 appium-uiautomator2-driver
完整日志已补充,帮忙看看呢。谢了
没人知道么?。。。
官网有写。。。
有的
这个问题你有解决吗?
没人遇到过么?在线等解答。
本文档只对 T3 至 T9 级别进行说明。T1/T2 限于篇幅,不作说明;T10 以上标准整个技术部统一,所以就不列出了
然而并没有 T3,bug 一枚。