Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

bug: BaseActivateApplicationOptions setting does not take effect

Aperta
#2,149 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
java
Ambito
mobile

Direzione di ricerca

Inizia da IOSDriver.activateApp e BaseActivateApplicationOptions nel client Java, quindi segui il modo in cui le opzioni costruite vengono inviate al driver xcuitest. Confronta il percorso iOS con gli esempi funzionanti Android e wda descritti nell’issue. Il lavoro è completato quando il comportamento è spiegato e il parametro personalizzato configEnv viene passato correttamente oppure la limitazione è documentata.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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 ),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
  • npm version (output of npm --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

Lingua principale
Java
Stelle
1.3k
Fork
755
Merge medio
5g 14h
PR unite (30g)
8

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di appium/java-client

Tutte le issue di appium/java-client

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.