question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to restart app without resetting the app data

See original GitHub issue

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 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:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
michaelz-slalomcommented, Jun 24, 2016

A year later, still looking for this functionality in iOS.

1reaction
kenkrzeminskicommented, Jun 8, 2015

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found