• 优秀,以后跟你学性能

  • 楼主,可以参考下https://github.com/web-arena-x/webarena

  • 如果可以录屏的话,麻烦传到某个网盘,然后评论里面给个链接,谢谢。(周天有事情,可能没办法入会)

  • 请问可以录屏吗? 我们公司也是 AI 的,但是我们现在主要是偏向于产品测试,对于 AI 涉入比较浅

  • Playwright 模拟微信浏览器 at 2024年05月06日

    很赞,辛苦分享

  • 框架开源了吗?

  • 我们之前也用数据驱动方式(也就是上面说第三方平台),开始很简单很有激情,随着用例数或者需求变更频繁,慢慢就不适用了,所以建议还是写代码方式更好,更直接。 但是这样就需要有人牵头自动化脚本编写,并组织培训,定目标

  • 深度学习基础文章合集 at 2022年05月12日

    过来学习一下

  • 不要用自带的,用 appium 的

  • uiautomator2,这个不支持 ios 吧?

  • 您好,有遇到过 cs 端内嵌浏览器,然后要去浏览器做自动化测试的,这种如何操作呢(可以通过这个从客户端切换到浏览器,然后用 selenium 对浏览器操作吗?)

  • ok

  • 好的,谢谢

  • 好的,我试下

  • 不清楚是不是这个。

  • Appium Windows APP UI 自动化 at 2021年08月25日
    我打开 teamview 软件,报 500,无法创建 session, 您好,能帮忙看下吗?(我只打开 appium-server,其他都没启动)
    def setUpClass(self):
        # set up appium
        desired_caps = {}
        desired_caps["app"] = "D:\\soft\\TeamViewer\\TeamViewer.exe"
        desired_caps["platformName"] = "Windows"
        desired_caps["deviceName"] = "WindowsPC"
        self.driver = webdriver.Remote(
            command_executor='http://127.0.0.1:4723/wd/hub',
            desired_capabilities=desired_caps)
        print("11111")
        time.sleep(8)
        print("22222")
    
    appium 日志
    [W3C] Calling AppiumDriver.createSession() with args: [{"app":"D:\\soft\\TeamViewer\\TeamViewer.exe","platformName":"Windows","deviceName":"WindowsPC"},null,{"firstMatch":[{"appium:app":"D:\\soft\\TeamViewer\\TeamViewer.exe","platformName":"Windows","appium:deviceName":"WindowsPC"}]}]
    [BaseDriver] Event 'newSessionRequested' logged at 1629845760468 (06:56:00 GMT+0800 (中国标准时间))
    [Appium] Appium v1.21.0 creating new WindowsDriver (v1.18.1) session
    [Appium] Applying relaxed security to 'WindowsDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
    [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
    [BaseDriver] Creating session with W3C capabilities: {
    [BaseDriver]   "alwaysMatch": {
    [BaseDriver]     "platformName": "Windows",
    [BaseDriver]     "appium:app": "D:\\soft\\TeamViewer\\TeamViewer.exe",
    [BaseDriver]     "appium:deviceName": "WindowsPC"
    [BaseDriver]   },
    [BaseDriver]   "firstMatch": [
    [BaseDriver]     {}
    [BaseDriver]   ]
    [BaseDriver] }
    [BaseDriver] Session created with session id: f6279929-8445-4a07-9940-e07a5d1492f8
    [WinAppDriver] WinAppDriver exists, but the checksum did not match. Was it replaced manually?
    [WinAppDriver] Spawning 'C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe' with args: ["4725/wd/hub"]
    [WD Proxy] Matched '/status' to command name 'getStatus'
    [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:4725/wd/hub/status] with no body
    [WinAppDriver] 楗摮睯⁳灁汰捩瑡潩牄癩牥䈠瑥⁡楬瑳湥湩⁧潦⁲敲畱獥獴愠㩴栠瑴㩰⼯㈱⸷⸰⸰㨱㜴㔲眯⽤畨ൢ
    [WinAppDriver] 倊敲獳䔠呎剅琠硥瑩മ
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ䜊呅⼠摷栯扵猯慴畴⁳呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍ഊ
    [WinAppDriver] 䠊呔⽐⸱‱〲‰䭏഍䌊湯整瑮䰭湥瑧㩨ㄠ㠰഍䌊湯整瑮吭灹㩥愠灰楬慣楴湯樯潳൮਍഍笊戢極摬㨢≻敲楶楳湯㨢〢Ⱒ琢浩≥∺ⴭ⴯⼭ⴭⰢ瘢牥楳湯㨢〢索∬獯㨢≻牡档㨢砢㘸Ⱒ渢浡≥∺楷摮睯≳∬敶獲潩≮∺索ൽ
    [WD Proxy] Got response with status 200: {"build":{"revision":"0","time":"--/--/--","version":"0"},"os":{"arch":"x86","name":"windows","version":""}}
    [WinAppDriver] Starting WinAppDriver session. Will timeout in '20000' ms.
    [WD Proxy] Matched '/session' to command name 'createSession'
    [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:4725/wd/hub/session] with body: {"desiredCapabilities":{"platformName":"Windows","app":"D:\\soft\\TeamViewer\\TeamViewer.exe","deviceName":"WindowsPC"}}
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ倊协⁔眯⽤畨⽢敳獳潩呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴敌杮桴›㈱ര਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍ഊ
    [WinAppDriver] 匊獥楳湯慍慮敧⁲‭牃慥楴杮猠獥楳湯映牯䐠尺潳瑦呜慥噭敩敷屲敔浡楖睥牥攮數਍敓獳潩䵮湡条牥ⴠ圠湩灁䑰楲敶⁲畳捣敥敤⁤潬摡湩⁧楍慴牂歯牥਍呈偔ㄯㄮ㔠〰䤠瑮牥慮牅潲൲਍潃瑮湥⵴敌杮桴›〱റ਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯഍ഊ਍≻瑳瑡獵㨢㌳∬慶畬≥笺攢牲牯㨢猢獥楳湯渠瑯挠敲瑡摥Ⱒ洢獥慳敧㨢䄢渠睥猠獥楳湯挠畯摬渠瑯戠⁥牣慥整⹤索ൽ
    [WD Proxy] Got response with status 500: {"status":33,"value":{"error":"session not created","message":"A new session could not be created."}}
    [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
    [WinAppDriver] Could not start WinAppDriver session error = 'A new session could not be created. Details: A new session could not be created.', attempt = '1' from 'undefined'
    [WD Proxy] Matched '/session' to command name 'createSession'
    [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:4725/wd/hub/session] with body: {"desiredCapabilities":{"platformName":"Windows","app":"D:\\soft\\TeamViewer\\TeamViewer.exe","deviceName":"WindowsPC"}}
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ倊协⁔眯⽤畨⽢敳獳潩呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴敌杮桴›㈱ര਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍笊搢獥物摥慃慰楢楬楴獥㨢≻汰瑡潦浲慎敭㨢圢湩潤獷Ⱒ愢灰㨢䐢尺獜景屴呜慥噭敩敷屲呜慥噭敩敷⹲硥≥∬敤楶散慎敭㨢圢湩潤獷䍐索ൽ
    [WinAppDriver] 匊獥楳湯慍慮敧⁲‭牃慥楴杮猠獥楳湯映牯䐠尺潳瑦呜慥噭敩敷屲敔浡楖睥牥攮數਍敓獳潩䵮湡条牥ⴠ圠湩灁䑰楲敶⁲畳捣敥敤⁤潬摡湩⁧楍慴牂歯牥਍呈偔ㄯㄮ㔠〰䤠瑮牥慮牅潲൲਍潃瑮湥⵴敌杮桴›〱റ਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯഍ഊ਍≻瑳瑡獵㨢㌳∬慶畬≥笺攢牲牯㨢猢獥楳湯渠瑯挠敲瑡摥Ⱒ洢獥慳敧㨢䄢渠睥猠獥楳湯挠畯摬渠瑯戠⁥牣慥整⹤索ൽ
    [WD Proxy] Got response with status 500: {"status":33,"value":{"error":"session not created","message":"A new session could not be created."}}
    [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
    [WinAppDriver] Could not start WinAppDriver session error = 'A new session could not be created. Details: A new session could not be created.', attempt = '2' from 'undefined'
    [WinAppDriver] timeoutError was Condition unmet after 27613 ms. Timing out.
    [WinAppDriver] Deleting WinAppDriver session
    [WinAppDriver] WinAppDriver exited with code null, signal SIGTERM
    [BaseDriver] Event 'newSessionStarted' logged at 1629845789032 (06:56:29 GMT+0800 (中国标准时间))
    [W3C] Encountered internal error running command: SessionNotCreatedError: A new session could not be created. Details: A new session could not be created.
    [W3C]     at errorFromW3CJsonCode (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:780:25)
    [W3C]     at ProxyRequestError.getActualError (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:663:14)
    [W3C]     at WADProxy.command (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
    [W3C]     at processTicksAndRejections (internal/process/task_queues.js:85:5)
    [HTTP] <-- POST /wd/hub/session 500 28565 ms - 824
    [HTTP] 
    
  • 我打开 teamview 软件,报 500,无法创建 session, 您好,能帮忙看下吗?(我只打开 appium-server,其他都没启动)
    def setUpClass(self):
        # set up appium
        desired_caps = {}
        desired_caps["app"] = "D:\\soft\\TeamViewer\\TeamViewer.exe"
        desired_caps["platformName"] = "Windows"
        desired_caps["deviceName"] = "WindowsPC"
        self.driver = webdriver.Remote(
            command_executor='http://127.0.0.1:4723/wd/hub',
            desired_capabilities=desired_caps)
        print("11111")
        time.sleep(8)
        print("22222")
    
    appium 日志
    [W3C] Calling AppiumDriver.createSession() with args: [{"app":"D:\\soft\\TeamViewer\\TeamViewer.exe","platformName":"Windows","deviceName":"WindowsPC"},null,{"firstMatch":[{"appium:app":"D:\\soft\\TeamViewer\\TeamViewer.exe","platformName":"Windows","appium:deviceName":"WindowsPC"}]}]
    [BaseDriver] Event 'newSessionRequested' logged at 1629845760468 (06:56:00 GMT+0800 (中国标准时间))
    [Appium] Appium v1.21.0 creating new WindowsDriver (v1.18.1) session
    [Appium] Applying relaxed security to 'WindowsDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
    [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
    [BaseDriver] Creating session with W3C capabilities: {
    [BaseDriver]   "alwaysMatch": {
    [BaseDriver]     "platformName": "Windows",
    [BaseDriver]     "appium:app": "D:\\soft\\TeamViewer\\TeamViewer.exe",
    [BaseDriver]     "appium:deviceName": "WindowsPC"
    [BaseDriver]   },
    [BaseDriver]   "firstMatch": [
    [BaseDriver]     {}
    [BaseDriver]   ]
    [BaseDriver] }
    [BaseDriver] Session created with session id: f6279929-8445-4a07-9940-e07a5d1492f8
    [WinAppDriver] WinAppDriver exists, but the checksum did not match. Was it replaced manually?
    [WinAppDriver] Spawning 'C:\Program Files (x86)\Windows Application Driver\WinAppDriver.exe' with args: ["4725/wd/hub"]
    [WD Proxy] Matched '/status' to command name 'getStatus'
    [WD Proxy] Proxying [GET /status] to [GET http://127.0.0.1:4725/wd/hub/status] with no body
    [WinAppDriver] 楗摮睯⁳灁汰捩瑡潩牄癩牥䈠瑥⁡楬瑳湥湩⁧潦⁲敲畱獥獴愠㩴栠瑴㩰⼯㈱⸷⸰⸰㨱㜴㔲眯⽤畨ൢ
    [WinAppDriver] 倊敲獳䔠呎剅琠硥瑩മ
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ䜊呅⼠摷栯扵猯慴畴⁳呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍ഊ
    [WinAppDriver] 䠊呔⽐⸱‱〲‰䭏഍䌊湯整瑮䰭湥瑧㩨ㄠ㠰഍䌊湯整瑮吭灹㩥愠灰楬慣楴湯樯潳൮਍഍笊戢極摬㨢≻敲楶楳湯㨢〢Ⱒ琢浩≥∺ⴭ⴯⼭ⴭⰢ瘢牥楳湯㨢〢索∬獯㨢≻牡档㨢砢㘸Ⱒ渢浡≥∺楷摮睯≳∬敶獲潩≮∺索ൽ
    [WD Proxy] Got response with status 200: {"build":{"revision":"0","time":"--/--/--","version":"0"},"os":{"arch":"x86","name":"windows","version":""}}
    [WinAppDriver] Starting WinAppDriver session. Will timeout in '20000' ms.
    [WD Proxy] Matched '/session' to command name 'createSession'
    [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:4725/wd/hub/session] with body: {"desiredCapabilities":{"platformName":"Windows","app":"D:\\soft\\TeamViewer\\TeamViewer.exe","deviceName":"WindowsPC"}}
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ倊协⁔眯⽤畨⽢敳獳潩呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴敌杮桴›㈱ര਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍ഊ
    [WinAppDriver] 匊獥楳湯慍慮敧⁲‭牃慥楴杮猠獥楳湯映牯䐠尺潳瑦呜慥噭敩敷屲敔浡楖睥牥攮數਍敓獳潩䵮湡条牥ⴠ圠湩灁䑰楲敶⁲畳捣敥敤⁤潬摡湩⁧楍慴牂歯牥਍呈偔ㄯㄮ㔠〰䤠瑮牥慮牅潲൲਍潃瑮湥⵴敌杮桴›〱റ਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯഍ഊ਍≻瑳瑡獵㨢㌳∬慶畬≥笺攢牲牯㨢猢獥楳湯渠瑯挠敲瑡摥Ⱒ洢獥慳敧㨢䄢渠睥猠獥楳湯挠畯摬渠瑯戠⁥牣慥整⹤索ൽ
    [WD Proxy] Got response with status 500: {"status":33,"value":{"error":"session not created","message":"A new session could not be created."}}
    [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
    [WinAppDriver] Could not start WinAppDriver session error = 'A new session could not be created. Details: A new session could not be created.', attempt = '1' from 'undefined'
    [WD Proxy] Matched '/session' to command name 'createSession'
    [WD Proxy] Proxying [POST /session] to [POST http://127.0.0.1:4725/wd/hub/session] with body: {"desiredCapabilities":{"platformName":"Windows","app":"D:\\soft\\TeamViewer\\TeamViewer.exe","deviceName":"WindowsPC"}}
    [WinAppDriver] ഊഊ㴊㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽㴽ഽ倊协⁔眯⽤畨⽢敳獳潩呈偔ㄯㄮ഍䄊捣灥㩴愠灰楬慣楴湯樯潳Ɱ⨠⨯഍䌊湯敮瑣潩㩮欠敥⵰污癩൥਍潃瑮湥⵴敌杮桴›㈱ര਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯※档牡敳㵴瑵ⵦസ਍潈瑳›㈱⸷⸰⸰㨱㜴㔲഍唊敳⵲杁湥㩴愠浤⽣摷ㄯㄮ⸳‰灡楰浵椭獮数瑣牯ㄯ㈮⸱ര਍഍笊搢獥物摥慃慰楢楬楴獥㨢≻汰瑡潦浲慎敭㨢圢湩潤獷Ⱒ愢灰㨢䐢尺獜景屴呜慥噭敩敷屲呜慥噭敩敷⹲硥≥∬敤楶散慎敭㨢圢湩潤獷䍐索ൽ
    [WinAppDriver] 匊獥楳湯慍慮敧⁲‭牃慥楴杮猠獥楳湯映牯䐠尺潳瑦呜慥噭敩敷屲敔浡楖睥牥攮數਍敓獳潩䵮湡条牥ⴠ圠湩灁䑰楲敶⁲畳捣敥敤⁤潬摡湩⁧楍慴牂歯牥਍呈偔ㄯㄮ㔠〰䤠瑮牥慮牅潲൲਍潃瑮湥⵴敌杮桴›〱റ਍潃瑮湥⵴祔数›灡汰捩瑡潩⽮獪湯഍ഊ਍≻瑳瑡獵㨢㌳∬慶畬≥笺攢牲牯㨢猢獥楳湯渠瑯挠敲瑡摥Ⱒ洢獥慳敧㨢䄢渠睥猠獥楳湯挠畯摬渠瑯戠⁥牣慥整⹤索ൽ
    [WD Proxy] Got response with status 500: {"status":33,"value":{"error":"session not created","message":"A new session could not be created."}}
    [W3C] Matched W3C error code 'session not created' to SessionNotCreatedError
    [WinAppDriver] Could not start WinAppDriver session error = 'A new session could not be created. Details: A new session could not be created.', attempt = '2' from 'undefined'
    [WinAppDriver] timeoutError was Condition unmet after 27613 ms. Timing out.
    [WinAppDriver] Deleting WinAppDriver session
    [WinAppDriver] WinAppDriver exited with code null, signal SIGTERM
    [BaseDriver] Event 'newSessionStarted' logged at 1629845789032 (06:56:29 GMT+0800 (中国标准时间))
    [W3C] Encountered internal error running command: SessionNotCreatedError: A new session could not be created. Details: A new session could not be created.
    [W3C]     at errorFromW3CJsonCode (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:780:25)
    [W3C]     at ProxyRequestError.getActualError (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:663:14)
    [W3C]     at WADProxy.command (C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
    [W3C]     at processTicksAndRejections (internal/process/task_queues.js:85:5)
    [HTTP] <-- POST /wd/hub/session 500 28565 ms - 824
    [HTTP] 
    
  • 您好, 我想問下在整個過程中还要启动 appium 吗?

    1. 我想实现客户端里面内嵌的浏览器自动化测试(主要是浏览器)
    2. 我们公司客户端有对浏览器插件有做一些封装,比如插入某个设备,封装好的浏览器可以读取一些东西

    针对您说的第二种,我不是很懂,你的意思是直接用我们公司地址在谷歌浏览器访问就可以了是吗?(这种不行,因为会不在样式问题,及一些插件功能无法做到的问题)

  • 北漂,十年 (一) at 2021年08月22日

    优秀啊,学习学习

  • 不错,学习了

  • 仅楼主可见
  • 感谢,我研究下

  • 配置
    desired_capabilities = {
                "noReset": True,
                "xcodeOrgId": "xxxxxxx",
                "bundleId": "xxxxxxx",
                "skipLogCapture": True,
                "deviceName": "iphone6s Plus",
                "wdaLocalPort": 25000,
                "webDriverAgentUrl": "http://localhost:8100",
                "waitForQuiescence": False,
                "newCommandTimeout": 43200,
                "platformVersion": "12.5",
                "automationName": "XCUITest",
                "useNewWDA": False,
                "wdaStartupRetries": 0,
                "platformName": "iOS",
                "udid": "xxxxxxx",
                "wdaConnectionTimeout": 1800000,
                "autoAcceptAlerts": True
            }
    
    appium 日志:
    [Appium] Welcome to Appium v1.21.0
    [Appium] Appium REST http interface listener started on 0.0.0.0:4723
    [debug] [HTTP] Request idempotency key: 94c0b34b-ff7f-4575-a3ba-ccba8a889a91
    [HTTP] --> POST /wd/hub/session
    [HTTP] {"capabilities":{"firstMatch":[{"appium:noReset":true,"appium:xcodeOrgId":"xxxxxx","appium:bundleId":"xxxxxx","appium:skipLogCapture":true,"appium:deviceName":"iphone6s Plus","appium:wdaLocalPort":25000,"appium:webDriverAgentUrl":"http://localhost:8100","appium:waitForQuiescence":false,"appium:newCommandTimeout":43200,"appium:platformVersion":"12.5","appium:automationName":"XCUITest","appium:useNewWDA":false,"appium:wdaStartupRetries":0,"platformName":"iOS","appium:udid":"4335249214ddbe63092a4965347f078f8833179e","appium:wdaConnectionTimeout":1800000,"appium:autoAcceptAlerts":true}]},"desiredCapabilities":{"noReset":true,"xcodeOrgId":"xxxxxx","bundleId":"xxxxxx","skipLogCapture":true,"deviceName":"iphone6s Plus","wdaLocalPort":25000,"webDriverAgentUrl":"http://localhost:8100","waitForQuiescence":false,"newCommandTimeout":43200,"platformVersion":"12.5","automationName":"XCUITest","useNewWDA":false,"wdaStartupRetries":0,"platformName":"iOS","udid":"4335249214ddbe...
    [debug] [W3C] Calling AppiumDriver.createSession() with args: [{"noReset":true,"xcodeOrgId":"xxxxxx","bundleId":"xxxxxx","skipLogCapture":true,"deviceName":"iphone6s Plus","wdaLocalPort":25000,"webDriverAgentUrl":"http://localhost:8100","waitForQuiescence":false,"newCommandTimeout":43200,"platformVersion":"12.5","automationName":"XCUITest","useNewWDA":false,"wdaStartupRetries":0,"platformName":"iOS","udid":"4335249214ddbe63092a4965347f078f8833179e","wdaConnectionTimeout":1800000,"autoAcceptAlerts":true},null,{"firstMatch":[{"appium:noReset":true,"appium:xcodeOrgId":"xxxxxx","appium:bundleId":"xxxxxx","appium:skipLogCapture":true,"appium:deviceName":"iphone6s Plus","appium:wdaLocalPort":25000,"appium:webDriverAgentUrl":"http://localhost:8100","appium:waitForQuiescence":false,"appium:newCommandTimeout":43200,"appium:platformVersion":"12.5","appium:automationName":"XCUITest","appium:useNewWDA":false,"appium:wdaStartupRetries":0,"platformName":"iOS","appium:udid":"4335249214ddbe63092a4965347f078f8833179e","appium:wdaConnectio...
    [debug] [BaseDriver] Event 'newSessionRequested' logged at 1624443626123 (18:20:26 GMT+0800 (中国标准时间))
    [Appium] Appium v1.21.0 creating new XCUITestDriver (v3.43.0) session
    [debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
    [debug] [BaseDriver] Creating session with W3C capabilities: {
    [debug] [BaseDriver]   "alwaysMatch": {
    [debug] [BaseDriver]     "platformName": "iOS",
    [debug] [BaseDriver]     "appium:noReset": true,
    [debug] [BaseDriver]     "appium:xcodeOrgId": "xxxxxx",
    [debug] [BaseDriver]     "appium:bundleId": "xxxxxx",
    [debug] [BaseDriver]     "appium:skipLogCapture": true,
    [debug] [BaseDriver]     "appium:deviceName": "iphone6s Plus",
    [debug] [BaseDriver]     "appium:wdaLocalPort": 25000,
    [debug] [BaseDriver]     "appium:webDriverAgentUrl": "http://localhost:8100",
    [debug] [BaseDriver]     "appium:waitForQuiescence": false,
    [debug] [BaseDriver]     "appium:newCommandTimeout": 43200,
    [debug] [BaseDriver]     "appium:platformVersion": "12.5",
    [debug] [BaseDriver]     "appium:automationName": "XCUITest",
    [debug] [BaseDriver]     "appium:useNewWDA": false,
    [debug] [BaseDriver]     "appium:wdaStartupRetries": 0,
    [debug] [BaseDriver]     "appium:udid": "4335249214ddbe63092a4965347f078f8833179e",
    [debug] [BaseDriver]     "appium:wdaConnectionTimeout": 1800000,
    [debug] [BaseDriver]     "appium:autoAcceptAlerts": true
    [debug] [BaseDriver]   },
    [debug] [BaseDriver]   "firstMatch": [
    [debug] [BaseDriver]     {}
    [debug] [BaseDriver]   ]
    [debug] [BaseDriver] }
    [BaseDriver] Session created with session id: 8e832c96-7bc2-40e2-be6e-8251511b004b
    [debug] [XCUITest] Current user: 'xxxxxx\xxxxxx'
    [debug] [XCUITest] Available devices: 4335249214ddbe63092a4965347f078f8833179e
    [debug] [XCUITest] Creating iDevice object with udid '4335249214ddbe63092a4965347f078f8833179e'
    [XCUITest] Determining device to run tests on: udid: '4335249214ddbe63092a4965347f078f8833179e', real device: true
    [debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at 1624443628129 (18:20:28 GMT+0800 (中国标准时间))
    [debug] [BaseDriver] Event 'appConfigured' logged at 1624443628130 (18:20:28 GMT+0800 (中国标准时间))
    [debug] [BaseDriver] Event 'resetStarted' logged at 1624443628130 (18:20:28 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Reset: fullReset not set. Leaving as is
    [debug] [BaseDriver] Event 'resetComplete' logged at 1624443628131 (18:20:28 GMT+0800 (中国标准时间))
    [WebDriverAgent] Using WDA path: 'C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-webdriveragent'
    [WebDriverAgent] Using WDA agent: 'C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-webdriveragent\WebDriverAgent.xcodeproj'
    [XCUITest] 'skipLogCapture' is set. Skipping starting logs such as crash, system, safari console and safari network.
    [XCUITest] Setting up real device
    [WebDriverAgent] Cannot retrieve WDA build settings. Original error: spawn xcodebuild ENOENT
    [DevCon Factory] Requesting connection for device 4335249214ddbe63092a4965347f078f8833179e on local port 8100
    [debug] [DevCon Factory] Cached connections count: 0
    [DevCon Factory] Successfully requested the connection for 4335249214ddbe63092a4965347f078f8833179e:8100
    [debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
    [debug] [XCUITest] Trying to start WebDriverAgent 1 times with 10000ms interval
    [debug] [BaseDriver] Event 'wdaStartAttempted' logged at 1624443628377 (18:20:28 GMT+0800 (中国标准时间))
    [WebDriverAgent] Using provided WebdriverAgent at 'http://localhost:8100'
    [debug] [WD Proxy] Matched '/status' to command name 'getStatus'
    [debug] [WD Proxy] Proxying [GET /status] to [GET http://localhost:8100/status] with no body
    [debug] [WD Proxy] Got response with status 200: {"value":{"state":"success","os":{"name":"iOS","version":"12.5.2"},"ios":{"simulatorVersion":"12.5.2","ip":"192.168.1.55"},"build":{"time":"Jun  7 2021 09:31:00"}},"sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":0}
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443628425 (18:20:28 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443629496 (18:20:29 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443630536 (18:20:30 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443631567 (18:20:31 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443632598 (18:20:32 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443633627 (18:20:33 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443634655 (18:20:34 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443635683 (18:20:35 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443636709 (18:20:36 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443637747 (18:20:37 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443638788 (18:20:38 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443639835 (18:20:39 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443640872 (18:20:40 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443657103 (18:20:57 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [BaseDriver] Event 'wdaSessionAttempted' logged at 1624443658130 (18:20:58 GMT+0800 (中国标准时间))
    [debug] [XCUITest] Sending createSession command to WDA
    [debug] [WD Proxy] Matched '/session' to command name 'createSession'
    [debug] [WD Proxy] Proxying [POST /session] to [POST http://localhost:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"xxxxxx","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":false,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":true,"defaultAlertAction":"accept"}],"alwaysMatch":{}}}
    [debug] [WD Proxy] Got response with status 200: {"value":"'bundleId' desired capability not provided","sessionId":"A264BFB8-9EA0-416E-8E13-AC4F08BF37C2","status":13}
    [WD Proxy] Determined the downstream protocol as 'MJSONWP'
    [debug] [MJSONWP] Matched JSONWP error code 13 to UnknownError
    [debug] [XCUITest] Failed to create WDA session (An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided). Retrying...
    [debug] [XCUITest] UnknownError: An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided
    [debug] [XCUITest]     at errorFromMJSONWPStatusCode (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:767:10)
    [debug] [XCUITest]     at ProxyRequestError.getActualError (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\protocol\errors.js:661:14)
    [debug] [XCUITest]     at JWProxy.command (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:272:19)
    [debug] [XCUITest]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
    [debug] [XCUITest]     at XCUITestDriver.proxyCommand (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\commands\proxy-helper.js:96:12)
    [debug] [XCUITest]     at XCUITestDriver.startWdaSession (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:968:5)
    [debug] [XCUITest]     at C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:592:15
    [debug] [XCUITest]     at wrapped (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:60:13)
    [debug] [XCUITest]     at retry (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:43:13)
    [debug] [XCUITest]     at retryInterval (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:70:10)
    [debug] [XCUITest]     at C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:587:11
    [debug] [XCUITest]     at wrapped (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:60:13)
    [debug] [XCUITest]     at retry (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:43:13)
    [debug] [XCUITest]     at retryInterval (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:70:10)
    [debug] [XCUITest]     at C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:559:7
    [debug] [XCUITest] Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
    [debug] [XCUITest] Not quitting/uninstalling WebDriverAgent since webDriverAgentUrl capability is provided
    [XCUITest] {}
    [DevCon Factory] Releasing connections for 4335249214ddbe63092a4965347f078f8833179e device on any port number
    [DevCon Factory] Found cached connections to release: ["4335249214ddbe63092a4965347f078f8833179e:8100"]
    [debug] [DevCon Factory] Cached connections count: 0
    [debug] [BaseDriver] Event 'newSessionStarted' logged at 1624443658170 (18:20:58 GMT+0800 (中国标准时间))
    [debug] [W3C] Encountered internal error running command: Error: Unable to start WebDriverAgent session because of xcodebuild failure: An unknown server-side error occurred while processing the command. Original error: 'bundleId' desired capability not provided Make sure you follow the tutorial at https://github.com/appium/appium-xcuitest-driver/blob/master/docs/real-device-config.md. Try to remove the WebDriverAgentRunner application from the device if it is installed and reboot the device.
    [debug] [W3C]     at quitAndUninstall (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:539:17)
    [debug] [W3C]     at C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:610:17
    [debug] [W3C]     at processTicksAndRejections (internal/process/task_queues.js:93:5)
    [debug] [W3C]     at wrapped (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:60:13)
    [debug] [W3C]     at retry (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:43:13)
    [debug] [W3C]     at retryInterval (C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\asyncbox\lib\asyncbox.js:70:10)
    [debug] [W3C]     at C:\Users\xxxxxx\AppData\Roaming\npm\node_modules\appium\node_modules\appium-xcuitest-driver\lib\driver.js:559:7
    [HTTP] <-- POST /wd/hub/session 500 32061 ms - 1437
    [HTTP]
    
  • @chenhengjie123 改为你说的那样子还是不行, 报的是同样错误。

    desired_capabilities = {
        "udid": "4335249214ddbe63092a4965347f078f8833179e",
        "automationName": "XCUITest",
        "deviceName": "iphone6s Plus",
        "platformName": "iOS",
        "platformVersion": "12.5.2",
        "bundleId": "xxxxxx",
        "webDriverAgentUrl": "http://localhost:8100/",
        "usePrebuiltWDA": False,
        "useNewWDA": False,
        "useXctestrunFile": False,
        "skipLogCapture": True,
        "noReset": True,
        "xcodeOrgId": "xxxxxx",
        "xcodeSigningId": "iPhone Developer"
    }
    

    如果用 facebook-wda 直接调用是没问题的。