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
Allow to restart app without resetting the app data #4955
Comments
Interesting yes. What about a single test, where you first start a driver with |
I use Sauce Labs. So I think that I cannot start a new session and use the state of the previous session. |
Ah yes, that would certainly be a limitation. |
@sanjo can you just use otherwise i'm wondering how we would restart the app with adb? |
You could also press the home button. Then use startApp. |
@sanjo does it answer your question? Or should we put this in new feature? |
This feature would be handy. I often write tests that need a quick way to reset the force quit the app on iOS and re-launch it, without clearing the session. When noReset is set to true, the old session is preserved in simulator. I experimented with various settings and commands including driver.update_settings (I'm using the Ruby lib) but nothing seemed to enable me to create a setup where the session is cleared on initializing the tests while allowing the app to be quit/re-launched during the tests. Essentially, I need a clean slate at the start of a test run every single time, but the ability to quit and re-launch the app without clearing the session or restarting the simulator. This doesn't seem possible with iOS simulator at the moment. |
how would you do this outside of appium? |
Not sure if actionable, but moving to feature. |
+1. exactly what @kenkrzeminski said. In response to @jlipps - I'm not sure how to do it for ios, but for android, you quit the app (list open apps with the squarish icon, swipe your app off the screen), then go into the app menu and re-open your app. |
A year later, still looking for this functionality in iOS. |
Is this fixed in android? I would exactly want what @sanjo mentioned in the first comment. Currently, I will have to have this sign up process each time I am running the scenario. I tried, removing the I am running the tests with ruby with |
Noticing the same that @reach2jeyan described in Android. |
@mayukataoka somehow fixed it with a workaround for now that I got from the appium community.. Force stopping the application with
So, mentioning this in the |
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. |
This is a feature request / suggestion to add a
restart app
command.Use case:
I want to test that a user, who already has logged in before, sees a specific page when he reopens the app later.
I'm aware of the
noReset
capability. But I want to have this set tofalse
because each test scenario should start with a clean state. I do this with thereset
command.I already have read the similar issues:
Let me know if this is something that could be added. I can try to implement it.
The text was updated successfully, but these errors were encountered: