process.executeAsync(); Exception
維護者通常 5 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 25/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- java
- 領域
- mobile-dev, tooling
研究方向
從 AppiumDriverLocalService.java 的 start() 開始,特別檢查 process.executeAsync() 呼叫及其周圍的例外處理。追蹤 Node.js 可執行檔、引數、環境和程序輸出是如何提供的,然後利用回報的失敗內容來找出原因。當本機 Appium 伺服器能在不發生此例外的情況下啟動,且失敗行為已完成驗證時,即表示完成。
由索引模型根據 Issue 內容生成。
描述
下記はappiumソース:AppiumDriverLocalService.javaのstartメソッド:
/**
-
Starts the defined appium server.
-
@throws AppiumServerHasNotBeenStartedLocallyException If an error occurs while spawning the child process.
-
@see #stop()
*/
public void start() throws AppiumServerHasNotBeenStartedLocallyException {
lock.lock();
try {
if (isRunning()) {
return;
}try { process = new CommandLine(this.nodeJSExec.getCanonicalPath(), nodeJSArgs.toArray(new String[]{})); process.setEnvironmentVariables(nodeJSEnvironment); process.copyOutputTo(stream); process.executeAsync(); //出了异常,在官网上提问下解决方案:这段代码出错一般是什么原因?如何让这个“进场创建”不出错? ping(startupTimeout, timeUnit); } catch (Throwable e) { destroyProcess(); String msgTxt = "The local appium server has not been started. " + "The given Node.js executable: " + this.nodeJSExec.getAbsolutePath() + " Arguments: " + nodeJSArgs.toString() + " " + "\n"; if (process != null) { String processStream = process.getStdOut(); if (!StringUtils.isBlank(processStream)) { msgTxt = msgTxt + "Process output: " + processStream + "\n"; } } throw new AppiumServerHasNotBeenStartedLocallyException(msgTxt, e); }} finally {
lock.unlock();
}
}
- 主要語言
- Java
- 星號
- 1.3k
- 分支
- 755
- 平均合併
- 5 天 14 小時
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
appium/java-client 的其他 Issue
-
難度 5/5 一週以上 新手友好度 25/100
appium/java-client#2426 ·
維護者通常 5 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 50/100
appium/java-client#2372 ·
維護者通常 5 天內回覆
-
難度 5/5 一週以上 新手友好度 30/100
appium/java-client#2368 ·
維護者通常 5 天內回覆
-
難度 2/5 1-3 小時 新手友好度 30/100
appium/java-client#2341 · 1 則留言 ·
維護者通常 5 天內回覆
-
難度 5/5 一週以上 新手友好度 15/100
appium/java-client#2323 ·
維護者通常 5 天內回覆
查看 appium/java-client 的全部 Issue
相似的 Issue
-
link-check link-check:manual
難度 2/5 1-3 小時 新手友好度 85/100
-
難度 1/5 1 小時以內 新手友好度 91/100
open-telemetry/opentelemetry-java#8870 ·
維護者通常 1 天內回覆
-
P2 testing
難度 1/5 1 小時以內 新手友好度 90/100
維護者通常 1 天內回覆
-
enhancement javascript
難度 2/5 1-3 小時 新手友好度 78/100
維護者通常 1 天內回覆
-
area/core kind/bug status/triage team/core-shared
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 1 天內回覆