bug: BaseActivateApplicationOptions setting does not take effect
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
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
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
- 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
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de appium/java-client
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
appium/java-client#2426 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
appium/java-client#2372 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
appium/java-client#2368 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 30/100
appium/java-client#2341 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
appium/java-client#2323 ·
Los mantenedores suelen responder en 1 día
Todos los issues de appium/java-client
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
-
Black theme and viewing mode.Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
oracle/javavscode#652 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
OpenAPITools/openapi-generator#25014 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
AloisSeckar/demos-java#380 ·