Hi all, i trying to reinstall te iOS app after run each test, but im getting an issue:
io.testproject.sdk.internal.exceptions.AgentConnectException: Agent responded with status 500: [org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: The ‘noReset’ and ‘fullReset’ capabilities are mutually exclusive and should not both be set to true. You probably meant to just use ‘fullReset’ on its own
This is my code:
public static DesiredCapabilities getIOSaps() {
LOG.info("Setting Capabilities for iOS");
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("app", PropertyUtils.getProperty("ios.app"));
capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, PropertyUtils.getProperty("ios.automation.name"));
capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
capabilities.setCapability(MobileCapabilityType.UDID, PropertyUtils.getProperty("ios.udid"));
capabilities.setCapability(MobileCapabilityType.NO_RESET, Boolean.parseBoolean(PropertyUtils.getProperty("ios.no.reset")));
capabilities.setCapability(MobileCapabilityType.FULL_RESET, Boolean.parseBoolean(PropertyUtils.getProperty("ios.full.reset")));
capabilities.setCapability("useNewWDA", Boolean.parseBoolean(PropertyUtils.getProperty("ios.use.new.wda")));
capabilities.setCapability("autoAcceptAlerts", PropertyUtils.getProperty("ios.auto.accept.alerts"));
capabilities.setCapability("xcodeOrgId", PropertyUtils.getProperty("ios.xcode.org.id"));
capabilities.setCapability(IOSMobileCapabilityType.BUNDLE_ID, PropertyUtils.getProperty("ios.bundle.id"));
return capabilities;
}
Im passing FULL_RESET: true and NO_RESET: false, but the console keep showing that error. Also tried passing only FULL_RESET but the same situation. Also i tried to use driver.installApp to install the app on the code but im getting this error: Original error: this.opts.device.installApp is not a function
. This happens to this person too:
Thanks!