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 !!!!

5 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
  3. Thanks for this i was wondering about it but atm busy learning bdd so i didnt get enough time to look it up on web then my mentor suggested me this site to get my concepts with appium cleared and i am glad and thankful to you and my mentor that i visited your site

    ReplyDelete
  4. The number of engineers coming out of college every year is growing, and though one may debate the quality of talent churned out by the engineering colleges, the huge volume of the available employable resources itself makes it a profitable market for any IT organization Salesforce Training in Hyderabad

    ReplyDelete
  5. Using both, fullreset: false and noreset : true,,, does this clean cache before running another test?? or i have to use another capabilities for cache handling??

    ReplyDelete