Test iteration - current iteration during runtime

While iterating the test with test data, can we skip few lines of code after the first iteration is complete?

eg. if the test has a login step, i would like to execute the login step only once in the first iteration and from the next iteration onward the script execution should skip the login step.

Could there be a possibility to know the current iteration during the runtime ?

While iterating the test with test data, can we skip few lines of code after the first iteration is complete?

eg. if the test has a login step, i would like to execute the login step only once in the first iteration and from the next iteration onward the script execution should skip the login step.

Could there be a possibility to know the current iteration during the runtime ?

Hi Shoueb Sakvai,

Unfortunately, you can’t know the current iteration during runtime and you can’t skip them as well.

In your case, I suggest executing login test case only one time and doesn’t need to have any iteration settings into it. The next test cases will do so.

Thanks

____________________
Thank you for choosing Katalon Studio as your automation solution.
Your feedback is needed to make Katalon Studio a better tool, take the survey at: https://goo.gl/S25NVO

The topic is closed due to inactiveness. Feel free to open a new one if you have any concerns.