bug: BaseActivateApplicationOptions setting does not take effect
Les mainteneurs répondent en général sous 5 jours
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 30/100
Piste de recherche
Commencez par IOSDriver.activateApp et BaseActivateApplicationOptions dans le client Java, puis suivez la manière dont les options construites sont envoyées au pilote xcuitest. Comparez le chemin iOS avec les exemples fonctionnels Android et wda décrits dans l’issue. Le travail est terminé lorsque le comportement est expliqué et que le paramètre personnalisé configEnv est soit transmis correctement, soit que la limitation est documentée.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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 ),and why does it not worked.
Minimal Reproducible Example
IOSDriver iosDriver = new IOSDriver(appiumDriverLocalService.get(), options);
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: mac
- Appium server version (output of
appium --version): 2.1.3 - Appium driver(s) and their version(s): xcuitest
- Appium plugin(s) and their version(s):
- Node.js version (output of
node --version): node 18.17.1 npmversion (output ofnpm --version): 10- Last component(s) version which did not exhibit the problem:
- Platform and version under test: ios
- Real device or emulator/simulator: simulator
Link to Appium Logs
No response
Further Information
No response
- Langage dominant
- Java
- Étoiles
- 1.3k
- Forks
- 755
- Merge moyen
- 5 j 14 h
- PR mergées (30 j)
- 8
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Aucun guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de appium/java-client
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 25/100
appium/java-client#2426 ·
Les mainteneurs répondent en général sous 5 jours
-
bug
Difficulté 4/5 3-5 jours Accessibilité débutants 50/100
appium/java-client#2372 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 30/100
appium/java-client#2368 ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 2/5 1-3 heures Accessibilité débutants 30/100
appium/java-client#2341 · 1 commentaire ·
Les mainteneurs répondent en général sous 5 jours
-
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 15/100
appium/java-client#2323 ·
Les mainteneurs répondent en général sous 5 jours
Toutes les issues de appium/java-client
Issues similaires
-
ScyllaDB Manual: 3 broken linksOuvertelink-check link-check:manual
Difficulté 2/5 1-3 heures Accessibilité débutants 85/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 91/100
open-telemetry/opentelemetry-java#8870 ·
Les mainteneurs répondent en général sous 1 jour
-
P2 testing
Difficulté 1/5 Moins d'une heure Accessibilité débutants 90/100
Les mainteneurs répondent en général sous 1 jour
-
enhancement javascript
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
Les mainteneurs répondent en général sous 1 jour
-
area/core kind/bug status/triage team/core-shared
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour