Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: BaseActivateApplicationOptions setting does not take effect

オープン
#2,141 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
ios, java
領域
mobile

調査の方向性

Issue に示されている activateApp 呼び出しと BaseActivateApplicationOptions の実装から始め、iOS クライアントが構築済みの環境マップをどのように処理するかを追跡します。iOS の経路を動作している Android コマンドと比較し、カスタム configEnv パラメーターがアプリの起動まで到達するかどうかを確認します。iOS アプリのアクティベーション時にパラメーターが有効になり、関連するテスト箇所を特定できた場合は回帰テストも追加されれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
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

iosDriver.activateApp(caseContext.getBundleId(), new BaseActivateApplicationOptions() { @Override public Map<String, Object> build() { JSONObject jsonObject = new JSONObject(); jsonObject.put("configEnv", "xxx"); return Map.of("environment", jsonObject); } });

I want to via in some parameters when the app starts to control the status of certain functions in the app, but it does not actually take effect.

I tried the value "xxx" on android, and it worked. adb command "adb shell am start -n ctrip.english/com.ctrip.ibu.myctrip.main.module.home.IBUHomeActivity --es configEnv xxx"

I also searched for other related information, such as through
wda.Client().session(cls.package_name, environment={"configEnv": xxx}) ,and it worked also.

Expected Behavior

I want to know how set this param via appium java(by the way, the "configEnv" is a parameter defined by ourselves )

Minimal Reproducible Example

iosDriver.activateApp(caseContext.getBundleId(), new BaseActivateApplicationOptions() {
@Override
public Map<String, Object> build() {
JSONObject jsonObject = new JSONObject();
jsonObject.put("configEnv", "xxx");
return Map.of("environment", jsonObject);
}
});

Environment
  • Operating system:
    io.appium.java-client: 9.0.0
    platform: ios
    selenium.version:4.16.0
    java.version:11
Link to Appium Logs

No response

Further Information

No response

主要言語
Java
スター
1.3k
フォーク
755
平均マージ
5日 14時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appium/java-client のほかの issue

appium/java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。