I want to delete a file in a test. I don't want to do it via any UI action. Is there a way to do it ? If not, is there a way to uninstall the app in a test ?
This would be specific for each platform. You could use a "backdoor" method to achieve this if it's possible on a platform. https://developer.xamarin.com/guides/testcloud/uitest/working-with/backdoors/
You can use AppDataMode to configure if the data in the app is removed or not when you start a test. https://developer.xamarin.com/api/type/Xamarin.UITest.Configuration.AppDataMode/
I already checked the backdoor and done the data cleanup using it. Just that, it increases the time of every test. So thought of checking simpler option.
AppDataMode doesn't help because we are caching our data outside AppData folder.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies