Appium 重签名后的 wda 正常启动了,但是没有返回 sessionID

Richard1ybb · 2020年06月12日 · 最后由 Msimon 回复于 2021年10月21日 · 6414 次阅读

wda 的日志

Test Suite 'WebDriverAgentRunner.xctest' started at 2020-06-12 15:20:28.188
Test Suite 'UITestingUITests' started at 2020-06-12 15:20:28.188
2020-06-12 15:20:28.215329+0800 WebDriverAgentRunner-Runner[616:123635] [User Defaults] Couldn't write values for keys (
    KeyboardAutocorrection
) in CFPrefsPlistSource<0x282b9ed00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-06-12 15:20:28.221426+0800 WebDriverAgentRunner-Runner[616:123635] [User Defaults] Couldn't write values for keys (
    KeyboardPrediction
) in CFPrefsPlistSource<0x282b9ed00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-06-12 15:20:28.222215+0800 WebDriverAgentRunner-Runner[616:123635] [User Defaults] Couldn't write values for keys (
    KeyboardShowPredictionBar
) in CFPrefsPlistSource<0x282b9ed00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
2020-06-12 15:20:28.224043+0800 WebDriverAgentRunner-Runner[616:123635] [User Defaults] Couldn't write values for keys (
    DidShowGestureKeyboardIntroduction
) in CFPrefsPlistSource<0x282b9ed00> (Domain: com.apple.Preferences, User: kCFPreferencesCurrentUser, ByHost: No, Container: (null), Contents Need Refresh: No): setting preferences outside an application's container requires user-preference-write or file-write-data sandbox access
Test Case '-[UITestingUITests testRunner]' started.
    t =     0.00s Start Test at 2020-06-12 15:20:28.224
    t =     0.00s Set Up
2020-06-12 15:20:28.230656+0800 WebDriverAgentRunner-Runner[616:123635] Built at Jun 12 2020 15:19:29
2020-06-12 15:20:28.238785+0800 WebDriverAgentRunner-Runner[616:123635] ServerURLHere->http://172.18.62.8:8100<-ServerURLHere
2020-06-12 15:20:28.239467+0800 WebDriverAgentRunner-Runner[616:123836] Using singleton test manager

使用 postman 发送请求,返回的 sessionID 为 null,但是 xcode 的控制台没有报任何错误

启动应用程序直接返回 400

有大佬知道什么问题吗,望解答。

共收到 4 条回复 时间 点赞

目前 Appium/WebDriverAgent 仅支持 W3C 协议的功能,可以用以下数据创建会话。可以给你提一个问题,围绕这个问题展开可能会有比较大的收获还可以理解这个改动,为啥 Appium/WebDriverAgent 或者说开源测试框架支持了 W3C 协议
{
"capabilities": {
"firstMatch":[{"bundleId": "com.apple.mobilesafari"}]
}
}

楼主这个问题你解决了吗!求解答啊!😭

lucyhanhelen 回复

你好,请问有解决方案了么...

呱唧呱唧 回复

老哥,请问您的这个问题解决了么,如有解决请问是怎么解决的

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册