cancel
Showing results for 
Search instead for 
Did you mean: 

How to run test cases for selected rows in datasource

SOLVED
New Contributor

How to run test cases for selected rows in datasource

For each test in a test suite, i have multiple rows. But now i want to build a feature that will allow me to select the desired iterations ( Ex: run only for row 1,2,& 4) during run time and not run the test for all the rows specified in my test data. How can i achieve this?

1 ACCEPTED SOLUTION

Accepted Solutions
Super Contributor

Re: How to run test cases for selected rows in datasource

In datasource hopefully you are using excel sheet. And in that case add one column named ExecutionFlag in the sheet. And set it as Y or N. Based on that write 2-3 lines o java/groovy code using if-else statement to manipulate this.

2 REPLIES 2
Super Contributor

Re: How to run test cases for selected rows in datasource

In datasource hopefully you are using excel sheet. And in that case add one column named ExecutionFlag in the sheet. And set it as Y or N. Based on that write 2-3 lines o java/groovy code using if-else statement to manipulate this.

Moderator

Re: How to run test cases for selected rows in datasource

Thanks for the suggestion, @avidCoder !
@zareen , have you had a chance to try the above instructions?

 


Olga Terentieva
SmartBear Assistant Community Manager

New Here?
Join us and watch the welcome video:
API Testing Mistake #2
APITestingMistake#2
Top Kudoed Authors