'Appium Android driver is un installing for second time even full reset is false
Appium Android driver is un installing for second time even full reset is false. Below are cases i am attaching.
** First time installing as expected **
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** Here also uninstalling even fullReset= true and noReset=false**
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** for third time and next onwards, it is not uninstalling **
capabilities.setCapability("noReset", true);
capabilities.setCapability("fullReset", false);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
** When i change capabilities fullrest=true then reinstalling as expected.but again same as above scenarios **
capabilities.setCapability("noReset", false);
capabilities.setCapability("fullReset", true);
androidDriver = makeAndroidDriver(serverUrl, capabilities);
The problem here AndroidDrviver not initializing second time properlly after fullRset=false. This one is happening only in android. In IOS its is working properlly Please help. Tq in advance.
Solution 1:[1]
This will work fine . Since I am guessing that AUT(Application Under Test) is getting fresh installation and moreover appium is started with new session
** Here also uninstalling even fullReset= true and noReset=false**
For this
fullReset=true : Reset app state by uninstalling app. This will also remove the app after the session is complete.
noReset=false : In your case it will not matter . Since if you start again your app .It will be a fresh installation so by default noReset=true.
** for third time and next onwards, it is not uninstalling ** [Which is correct only] For this
fullReset:false : So App will not get removed or its gonna clear its state
noReset:true : It will not re-install your AUT but it will reset app state before this session
** When i change capabilities fullrest=true then reinstalling as expected.but again same as above scenarios **
For this: Not able to identify your issue .
For more info on this capabilities . Please go and visit once appium java docs . Appium Capabilities Docs
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |