Wednesday, 17 May 2017

How to Run appium test cases sequentially without re-installing app ?

Many times we face this that we want to run the test cases sequentially without re-installing app each time it started executing new test . This saves time and this is proper way to execute appium test cases sequentially.

This is going to be very short and simple blog post which will address this issue in appium. As we know when we launch appium driver it works as per desired capabilities setting we have done  and hence we can address this issue by making proper setting in our desired capabilities code,

In appium desired Capabilities we need to use two options fullReset and noReset as per or needs so that appium driver will work as per our.

To Run appium test cases sequentially without re-installing app - add below code where you have specified your Desired Capabilities



private DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability("fullReset", false);
capabilities.setCapability("noReset", true);


If you find this usefull and you have some more questions or blog post request do comments in the comment section below.
KEEP TESTING !!!! KEEP AUTOMATING !!!!

2 comments:

  1. So this code will not uninstall & install my app each time I run my script?

    ReplyDelete
  2. Yes youbarebright. It will not uninstall and install app each time

    ReplyDelete