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
Start an activity using a specific intent #2026
Comments
Can you give me an example of what you'd like to do? Seems like a useful feature. |
The application is an Android app. As you probably know, the emulator is quite slow. We already have methods for testing navigation and wish bypass it as much as possible in other tests. We believe this will save a lot of time when confronted with hundreds of tests to run. To bypass navigation, we want to start the activity under test when creating the remote web driver and use an intent to pass user credentials in order to avoid logging in with the UI. |
Please let me know if you can think of an alternative to intents :) |
I get the use case, it's more that I was looking for a specific example so I can make sure the interface is designed correctly. I.e., what would you be doing with adb to get to the intent you want pre- or mid-test |
I have a service with members that allow me to navigate to specific screens mid-test. If the service had access to adb, it would execute the following command to bypass the log on screen: adb shell am start -n |activity_name| -a |action_name| --es server |server_string_value| --es username |username_string_value| --es password |password_string_value| --ez usesecurecomm |usesecurecomm_boolean_value| The extras are the values the app needs to perform a log on before rendering the user interface I was thinking that Appium could expose an additional mobile method to start a new activity Sorry for the late reply! |
Ha, this was not an intentional feature |
let's go ahead and add a |
@paymand can you please elaborate on |
this might help |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I would like to be able to specify an intent when starting an activity upon launching an Android app
The information that I would like to set in the intent is:
I would also like to be allowed to set this information in the implementation of test methods as desired capabilities
The text was updated successfully, but these errors were encountered: