導航:首頁 > 編程語言 > javainvoke超時

javainvoke超時

發布時間:2025-02-20 10:38:48

java socket 超時 異常 求解決 java.net.SocketTimeoutException: Read timed out

這個應該有配置超時的地方吧,你把超時時間配置的長一點,另外就是在你調用的地方記錄日誌觀察你這個遠程調用耗時到底是多少。

㈡ Appium超時錯誤連接到驅動程序時問題,怎麼解決

問題

1. error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress


之前的會話沒有關閉,然後你又運行了測試實例,也沒有設置覆蓋.
解決:
1.重新停止appium服務,開啟Appium服務
2.在Genarel Setting那裡設置覆蓋Session,重啟Appium

測試結束在AfterClass加driver.quit()

2. error: Failed to start an Appium session, err was: Error: Command failed: C:Windowssystem32cmd.exe /s /c "D:android-sdk-windowsplatform-toolsadb.exe -s adb server version (32) doesn't match this client (36); killing…

wait-for-device"
error: could not installsmartsocketlistener: cannot bind to 127.0.0.1:5037:

沒有鏈接上手機或者模擬器,請確認已經連接成功,重新鏈接

3. error: Android devices must be of API level 17 or higher. Please change your device to Selendroid or upgrade Android on your device.

手機系統低於4.2,appium不支持4.2.2以下的系統,請換一個手機或者模擬器來測試。

4. Error: Permission to start activity denied.


**activity在清單文件裡面沒添加Android:exported="true"的話,你不能直接打開對應的activity,需要從啟動頁activity打開。
exported屬性就是設置是否允許activity被其它程序調用**

5. error: Failed to start an Appium session, err was: Error: Activity used to start app doesn't exist or cannot ve launched! Make usre it exists and is launchable activity

要打開的activity不存在,activity路徑錯誤,改為完整正確的activity路徑

6. error: Failed to start an Appium session, err was: Error: 'java - version' failed. Error: Command failed: C:Windowssystem32cmd.exe /s /c "java -version"


Java版本錯誤,請安裝最新的版本。

7.> info: [debug] Error: Command failed: C:Windowssystem32cmd.exe /s /c "D:android-sdk-windowsplatform-toolsadb.exe -s 8806a0b0 shell "echo 'ready'"error: unknown host service

鏈接手機失敗,重新鏈接手機即可,我就是重新拔插了一下usb

Error: Command failed: C:Windowssystem32cmd.exe /s /c "D:android-sdk-windowsplatform-toolsadb.exe -s 8806a0b0 shell "echo 'ping'""

error: unknown host service

adb被突然佔用導致,例如你在運行用例的時候運行了模擬器。

8. UIAutomatorViewer提示: Unable to connect to adb. Check if adb is installed correctly

解決,sdk升級到了25產生的問題。

解決方法:

閱讀全文

與javainvoke超時相關的資料

熱點內容
文件壓縮到最小到多少 瀏覽:336
sb0060win10驅動 瀏覽:876
寬頻撥號上網賬號密碼忘了 瀏覽:531
除夕哪個app燒錢最多 瀏覽:179
有什麼app是中國用不了的 瀏覽:134
考大專證哪個網站好 瀏覽:667
迷你編程最新版本怎麼獲得皮膚 瀏覽:385
索尼影像資料庫文件錯誤 瀏覽:890
看客影視手機版本 瀏覽:804
電腦里文件突然不見了 瀏覽:982
微信消息沒提示設置都打開了 瀏覽:196
typecho教程 瀏覽:662
qq申訴英文網站如何修改代碼 瀏覽:757
iphone4s8g升級ios9 瀏覽:177
js怎麼設置列印橫向邊距 瀏覽:726
慧編程里的畫筆用不了怎麼辦 瀏覽:19
第七次人口普查數據哪裡看 瀏覽:126
plc編程mon是怎麼縮小 瀏覽:633
北大青鳥網路主要課程 瀏覽:63
ug編程t形槽怎麼做 瀏覽:283

友情鏈接