Looking for how other teams perform cleanup between tests. I currently create a driver per thread and reset app between tests, keeping the driver live throughtou the life of the test run, however with the removal of resetApp, Iām thinking that I shoudl create a deriver per test? create in before hook, .quit in the after hook. I feel this would add time to the tests, but at least it would be a fully clean driver instance. And my custom resetApp method is against what I believe is the advice from the appium team (based on them removing the resetApp method altogether).
oh hey good idea. I have a few cases where I need to configure the driver, usually do this in a before step, but would probably be a bettter idea to create the driver afresh with teh correct configs.
Map<String, Object> newSettings = new HashMap<>();
newSettings.put("autoGrantPermissions", false);
driver.setSettings(newSettings);