I know that fullReset removes the app post-test. But I’m looking for the opposite (I usually want the app on the phone at the end of the test to potentially manually reproduce an issue starting at the state at the end of the test). Is there a capability to always uninstall the app at driver create time? I’ve added the following to every driver creation, but it’s (obviously) adding more time. I figured if adb / xcuitest could handle this phone-side it would eliminate any other appium overhead that these commands may create (iOS and Android are seeing an additional 70-90 seconds added to the setup from these commands)
driver.closeApp();
driver.removeApp(appPackageType.getPackage(appPackage));
String usePath = appPath.getProtocol().equals("file") ? appPath.getPath() : appPath.toString();
driver.installApp(usePath);
driver.launchApp();