Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: BaseActivateApplicationOptions setting does not take effect #2141

Open
3 tasks done
jjqi92 opened this issue Mar 27, 2024 · 1 comment
Open
3 tasks done

bug: BaseActivateApplicationOptions setting does not take effect #2141

jjqi92 opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@jjqi92
Copy link

jjqi92 commented Mar 27, 2024

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

@jjqi92 jjqi92 added the bug label Mar 27, 2024
@mykola-mokhnach mykola-mokhnach transferred this issue from appium/appium Mar 27, 2024
@jjqi92
Copy link
Author

jjqi92 commented Apr 2, 2024

Can you help me take a look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant