[Guice/ErrorInCustomProvider]: SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 20/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- mobile, testing-qa
調査の方向性
AppiumModule.java:85 と SelenideUiSteps.java:72 から始め、指定されている Appium、java-client、Selenide、UiAutomator2 のバージョンで AndroidDriver のセットアップを再現します。不足している Appium サーバーのログを取得し、endpoint、エミュレーター、APK の入力値を検証します。完了の条件は、java-client の不具合を環境または設定の失敗から切り分けることです。この issue にはテストも明確なコード位置もありません。
索引モデルが issue の本文から書いたものです。
説明
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
I use
Appium server v2.11.2
io.appium
java-client
9.1.0
selenide
com.codeborne
7.1.0
I use options for android driver
public UiAutomator2Options getOptions() {
UiAutomator2Options options = new UiAutomator2Options();
File app = new File(“C:\Users\kristina.lapteva\Desktop\test\gostest.apk”);
options.setPlatformName("Android");
options.setDeviceName(config.get("deviceName"));
options.setPlatformVersion(config.get("platformVersion"));
options.setAutomationName("UiAutomator2");
options.setNewCommandTimeout(Duration.ofSeconds(120));
options.setAndroidInstallTimeout(Duration.ofSeconds(180));
options.setIgnoreHiddenApiPolicyError(true);
options.setApp(app.getPath());
options.setUdid("emulator-5554");
options.setAutoGrantPermissions(true);
options.setAppWaitDuration(Duration.ofSeconds(120));
return options;
}
I try
String url = "http://127.0.0.1:4723/wd/hub";
AndroidDriver androidDriver = new AndroidDriver(new URL(url),options);
and i have a problem
com.google.inject.ProvisionException: Unable to provision, see the following errors:
- [Guice/ErrorInCustomProvider]: SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: '*', ip: '192.168.0.17'
at AppiumModule.selenideDriver(AppiumModule.java:85)
_ installed by: Elements$ElementsAsModule -> CoreModule -> DeviceModule -> AppiumModule
at SelenideUiSteps.driver(SelenideUiSteps.java:72)
_ for field driver
at IntegrationCommonUiSteps.class(IntegrationCommonUiSteps.java:34)
while locating IntegrationCommonUiSteps
at BaseDynamicTest.commonUiSteps(BaseDynamicTest.java:57)
_ for field commonUiSteps
while locating ConvictionDynamicTest
Expected Behavior
Android driver is running successfully
Minimal Reproducible Example
public UiAutomator2Options getOptions() {
UiAutomator2Options options = new UiAutomator2Options();
File app = new File("C:\Users\kristina.lapteva\Desktop\госуслуги приложения\gostest.apk");
options.setPlatformName("Android");
options.setDeviceName(config.get("deviceName"));
options.setPlatformVersion(config.get("platformVersion"));
options.setAutomationName("UiAutomator2");
options.setNewCommandTimeout(Duration.ofSeconds(120));
options.setAndroidInstallTimeout(Duration.ofSeconds(180));
//для игнорирования ошибок, связанных с политикой скрытого API
options.setIgnoreHiddenApiPolicyError(true);
options.setApp(app.getPath());
options.setUdid("emulator-5554");
options.setAutoGrantPermissions(true);
options.setAppWaitDuration(Duration.ofSeconds(120));
options.setLocale("RU");
options.setLanguage("ru");
return options;
}
String url = "http://127.0.0.1:4723/wd/hub";
AndroidDriver androidDriver = new AndroidDriver(new URL(url),options);
Environment
- Operating system:
- Appium server version (output of
appium --version): v2.11.3 - Appium driver(s) and their version(s) (
appium driver list):[email protected] - Appium plugin(s) and their version(s) (
appium plugin list): not installed - Node.js version (output of
node --version):v20.15.1 npmversion (output ofnpm --version):10.8.2- Last component(s) version which did not exhibit the problem:
- Platform and version under test:windows 10
- Real device or emulator/simulator:emulator
Link to Appium Logs
Further Information
no
- 主要言語
- Java
- スター
- 1.3k
- フォーク
- 755
- 平均マージ
- 5日 14時間
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
appium/java-client のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
appium/java-client#2426 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 50/100
appium/java-client#2372 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
appium/java-client#2368 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 30/100
appium/java-client#2341 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
appium/java-client#2323 ·
メンテナーはふだん 1 日以内に返信
appium/java-client の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
oracle/javavscode#652 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenAPITools/openapi-generator#25014 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
AloisSeckar/demos-java#380 ·