java - How to enable --no-reset if appium server is started by AppiumServiceBuilder -
i have started appium server using appiumserverbuilder
service = appiumdriverlocalservice .buildservice(new appiumservicebuilder() .usingdriverexecutable(new file(nodejsexecutable)) .withappiumjs(new file(appiumjsexecutable)) .withipaddress(appiumserveraddress) .usingport(appiumserverport));
now appium server gets started default --full-reset capability, causing app reset every time on each run. need set --no-reset appium server appium doesn't re install app everytime . how can here?
you can explicitly set "noresetvalue" appium capability accepts boolean value, true/false
when set true , prevents app re-installing each time, java example:
capabilities = new desiredcapabilities(); capabilities.setcapability("noresetvalue","true");
Comments
Post a Comment