Allow to restart app without resetting the app data
See original GitHub issueThis 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 to false
because each test scenario should start with a clean state. I do this with the reset
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.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:2
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Allow to restart app without resetting the app data[Android]
Could I use the action “Reset App” without resetting the app data? I have to login every time when creating a new test...
Read more >Quit and reopen an app on iPhone - Apple Support
To reopen the app, go to the Home Screen (or App Library), then tap the app. If quitting and reopening the app doesn't...
Read more >How do I programmatically "restart" an Android app?
My best way to restart application is to use finishAffinity(); Since, finishAffinity(); can be ...
Read more >How to reset an app on Android without "deleting it"
How to reset an app to its initial state on Android devices ... First, open the Settings app on your Android smartphone or...
Read more >How to Reset Your Android Phone Without Losing Your Data
Restarting your phone closes all the processes and apps running on ... data let us check out the steps to factory reset your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A year later, still looking for this functionality in iOS.
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.