Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

bug: BaseActivateApplicationOptions setting does not take effect

Abierto
#2,149 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
30/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
java
Área
mobile

Línea de trabajo

Comienza por IOSDriver.activateApp y BaseActivateApplicationOptions en el cliente Java y, a continuación, sigue cómo se envían las opciones construidas al controlador xcuitest. Compara el flujo de iOS con los ejemplos funcionales de Android y wda descritos en el issue. Se considera terminado cuando el comportamiento está explicado y el parámetro personalizado configEnv se pasa correctamente o se documenta la limitación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
Java
Estrellas
1.3k
Forks
755
Merge medio
5 d 14 h
PR fusionados (30 d)
8

Preparar el entorno

  • Sin Dockerfile ni archivo de Docker Compose
  • Tiene una plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de appium/java-client

Todos los issues de appium/java-client

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.