appium 執行的時候,偶爾會出現:[BaseDriver] Shutting down because we waited 1200 seconds for a command
請教一下,自己在做 appium 的 Android 自動化測試的時候,跑到一半的時候,會有機率的出現 [BaseDriver] Shutting down because we waited 1200 seconds for a command,然後導致 session 關閉,後面的測試都失敗。網上看的是是說什麼發給 appium 服務端的兩條命令間隔時間超過了 60 秒。導致 session 關閉被關閉。然後我仔細檢查了,我其實一直都在傳送 appium 命令,中間間隔就是幾秒,不可能會超過 60 秒。另外,desired_caps["newCommandTimeout"] = 1800;改成 1800 秒。也仍然會出現這個問題,已經摺騰了好久了,這個問題實在是解不出,希望大家幫我看一下
[debug] [35m[BaseDriver][39m Waited for 521 ms so far[debug] [35m[WD Proxy][39m Matched '/element' to command name 'findElement'
[debug] [35m[WD Proxy][39m Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/c972d964-b472-4d7a-9922-7081d2dc3412/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().textContains(\"正在載入中...\")","context":"","multiple":false}
[info] [35m[WD Proxy][39m Got an unexpected response with status 404: {"sessionId":"c972d964-b472-4d7a-9922-7081d2dc3412","value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters","stacktrace":"io.appium.uiautomator2.common.exceptions.ElementNotFoundException: An element could not be located on the page using the given search parameters\n\tat io.appium.uiautomator2.handler.FindElement.safeHandle(FindElement.java:78)\n\tat io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)\n\tat io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)\n\tat io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)\n\tat io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)\n\tat io.netty.chann...
[debug] [35m[W3C][39m Matched W3C error code 'no such element' to NoSuchElementError
[debug] [35m[BaseDriver][39m Waited for 1033 ms so far[warn] [35m[BaseDriver][39m Shutting down because we waited 120 seconds for a command
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 session
[warn] [35m[Appium][39m Closing session, cause was 'New Command Timeout of 120 seconds expired. Try customizing the timeout using the 'newCommandTimeout' desired capability'
[info] [35m[Appium][39m Removing session 2fc7d4c7-7f6b-4657-96a3-765d1440b992 from our master session list
[debug] [35m[UiAutomator2][39m Deleting UiAutomator2 server session
[debug] [35m[WD Proxy][39m Matched '/' to command name 'deleteSession'
[debug] [35m[WD Proxy][39m Proxying [DELETE /] to [DELETE http://localhost:8202/wd/hub/session/7d434057-a217-4ffb-baee-f4844e7c6522] with no body
[debug] [35m[WD Proxy][39m Got response with status 200: {"sessionId":"7d434057-a217-4ffb-baee-f4844e7c6522","value":null}
[debug] [35m[ADB][39m Running 'E:\Terry\software\sdk\platform-tools\adb.exe -P 5037 -s 127.0.0.1:21523 shell am force-stop com.sf.trtms.driver'
[debug] [35m[Instrumentation][39m .
[debug] [35m[WD Proxy][39m Matched '/element' to command name 'findElement'
[debug] [35m[WD Proxy][39m Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/c972d964-b472-4d7a-9922-7081d2dc3412/element] with body: {"strategy":"-android uiautomator","selector":"new UiSelector().textContains(\"正在載入中...\")","context":"","multiple":false}
[info] [35m[WD Proxy][39m Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [35m[MJSONWP (4c5c56e0)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [35m[MJSONWP (4c5c56e0)][39m at JWProxy.command (C:\Users\01393153\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/element [39m[31m500[39m [90m1537 ms - 250[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mPOST[39m [37m/wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/element[39m
[info] [35m[HTTP][39m [90m{"using":"id","value":"com.sf.trtms.driver:id/btn_operate","sessionId":"4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc"}[39m
[debug] [35m[MJSONWP (4c5c56e0)][39m Calling AppiumDriver.findElement() with args: ["id","com.sf.trtms.driver:id/btn_operate","4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc"]
[debug] [35m[BaseDriver][39m Valid locator strategies for this request: xpath, id, class name, accessibility id, -android uiautomator
[debug] [35m[BaseDriver][39m Waiting up to 2000 ms for condition
[debug] [35m[WD Proxy][39m Matched '/element' to command name 'findElement'
[debug] [35m[WD Proxy][39m Proxying [POST /element] to [POST http://localhost:8203/wd/hub/session/c972d964-b472-4d7a-9922-7081d2dc3412/element] with body: {"strategy":"id","selector":"com.sf.trtms.driver:id/btn_operate","context":"","multiple":false}
[info] [35m[WD Proxy][39m Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [35m[MJSONWP (4c5c56e0)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [35m[MJSONWP (4c5c56e0)][39m at JWProxy.command (C:\Users\01393153\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[info] [35m[HTTP][39m [37m<-- POST /wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/element [39m[31m500[39m [90m5 ms - 250[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/screenshot[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[MJSONWP (4c5c56e0)][39m Calling AppiumDriver.getScreenshot() with args: ["4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc"]
[debug] [35m[WD Proxy][39m Matched '/screenshot' to command name 'getScreenshot'
[debug] [35m[WD Proxy][39m Proxying [GET /screenshot] to [GET http://localhost:8203/wd/hub/session/c972d964-b472-4d7a-9922-7081d2dc3412/screenshot] with no body
[info] [35m[WD Proxy][39m Got an unexpected response with status undefined: {"code":"ECONNRESET"}
[debug] [35m[MJSONWP (4c5c56e0)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to remote server. Original error: Error: socket hang up
[debug] [35m[MJSONWP (4c5c56e0)][39m at JWProxy.command (C:\Users\01393153\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-base-driver\lib\jsonwp-proxy\proxy.js:261:13)
[info] [35m[HTTP][39m [37m<-- GET /wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/screenshot [39m[31m500[39m [90m9 ms - 250[39m
[info] [35m[HTTP][39m [90m[39m
[info] [35m[HTTP][39m [37m-->[39m [37mGET[39m [37m/wd/hub/session/4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc/appium/device/current_activity[39m
[info] [35m[HTTP][39m [90m{}[39m
[debug] [35m[MJSONWP (4c5c56e0)][39m Calling AppiumDriver.getCurrentActivity() with args: ["4c5c56e0-8ba7-429a-a3cd-0ab6e0f6eddc"]
[debug] [35m[ADB][39m Getting focused package and activity
[debug] [35m[ADB][39m Running 'E:\Terry\software\sdk\platform-tools\adb.exe -P 5037 -s 127.
相關文章
- 3.3 Shutting Down a DatabaseDatabase
- 3.3.4 Shutting Down with the Transactional Mode
- 求助:環境正常,xcodebuild 也執行成功了,但是使用 appium desktop 的時候,出現:Could not start sessionXCodeUIAPPSession
- Spring Boot Intellij 執行應用的時候 Command line is too long. Shorten command line for 錯誤Spring BootIntelliJ
- IntelliJ IDEA 執行專案的時候提示 Command line is too long 錯誤IntelliJIdea
- mac 執行sed -i指令時,總是出現extra characters at the end of commandMac
- 使用者使用無線模組時,會出現偶爾無法收發資料的原因?
- ThreadPoolExecutor執行緒池任務執行失敗的時候會怎樣thread執行緒
- Laravel 啟用多個 work 對同一個佇列進行處理的時候是否會出現同步執行Laravel佇列
- Monkey 執行的時候,音樂播放..
- MySQL alter table時執行innobackupex全備再看Seconds_Behind_MasterMySqlAST
- Python+Appium執行簡單的demo,你需要理解Appium執行原理!PythonAPP
- MySQL:雙主單寫 主庫偶爾出現大量延遲的原因MySql
- pgsql 執行建庫指令碼時候出現ERROR: relation "xxx_id_seq" does not existSQL指令碼Error
- php執行的時候報File size limit exceededPHPMIT
- 介面偶爾超時,竟又是JVM停頓的鍋!JVM
- pb安裝多個版本時候,執行pbw時會報 Attempt to open datawindow failedAI
- 最近執行VBA程式碼時候出現這樣錯誤,現已經找到了問題所在處
- input 限制字數輸入時候 限制字數會出現負數
- 誰遇到過執行 monkey 的時候報 filenotfound 的報錯
- No way to dispatch this command to Redis Cluster because keys have different slots.Redis
- appium 執行還需要 java home?APPJava
- java 反轉單連結串列,偶爾會遇到的面試題Java面試題
- Ios+appium自動化多裝置執行實現iOSAPP
- laravel:從linux命令列執行commandLaravelLinux命令列
- uniGUI釋出時執行時包的處理GUI
- try{}裡有一個return語句,那麼緊跟在這個try後的finally{}裡的code會不會被執行,什麼時候被執行?
- springboot整合mybatis-plus啟動的時候出現propertyplacehlderAutoConfigurtionSpring BootMyBatis
- Linux:mount命令出現Host is down如何解決Linux
- 能獨當一面的家用機器人,什麼時候才會出現?機器人
- 用CMD執行時Java,出現亂碼的解決辦法Java
- pycharm啟動時候出現 fail to load jvm dllPyCharmAIJVM
- mysql left join的時候又表是多條記錄的話,會出現冗餘的情況MySql
- 12c rac在安裝grid軟體執行root.sh指令碼的時候出現PRCT-1431,CLSRSC-180指令碼
- 什麼時候釋出
- Appium 1.17.1 使用 UiAutomator2 時出現 [INSTALL_PARSE_FAILED_NO_CERTIFICATES] 的錯誤APPUIAI
- Spring Boot中使用@Async的時候,千萬別忘了執行緒池的配置!Spring Boot執行緒
- Git 記不住的偶爾用的命令(日常更新)Git