All Collections
Test
[Xamarin.UITest] Using AppDataMode to control how your app is reset between individual test cases
[Xamarin.UITest] Using AppDataMode to control how your app is reset between individual test cases

Describes the behavior of this method

Jihye E avatar
Written by Jihye E
Updated over a week ago

AppDataMode.Auto and AppDataMode.Clear (they work in the same way)

  • Locally the app is never reinstalled.

  • On Android the app is installed the first time you call StartApp(). Every time after that the data is cleared from the device. The same is true for iOS simulators.

  • For iOS devices, no data is ever cleared. In the cloud your app is reinstalled before each test so the data is cleared. It’s worth noting that the app can persist data in the iOS keychain between installs, which can sometimes be an issue.

AppDataMode.DoNotClear

  • Locally the app is never reinstalled and the data is not cleared. It will still get terminated and restarted every time you call StartApp() though.

  • In the cloud your app won't get reinstalled and its data won't get cleared (just as it works locally).

Did this answer your question?