I have a ui test project which runs on ios simulators.
The app is started as follows:
return ConfigureApp .iOS .InstalledApp(installedApp) .DeviceIdentifier(GetDeviceIdentifier()) .PreferIdeSettings() .EnableLocalScreenshots() .WaitTimes(new WaitTimes()) .Debug() .StartApp(AppDataMode.Clear);
AppDataMode.Clear should ensure that each test begins in the login/initial screen.
But sometimes the app seems to ignore this setting and starts at the last used screen. Hence the test fails.
The only way to change the behaviour back to what it should be is to restart the simulator. Then everything works ok again (until it doesn't).
I am using xamarin.uitest 2.2.7. I could deinstall and reinstall the app before each test but this is not what I want. It shouldnt be necessary.
Can anyone explain this and suggest a solution.