cancel
Showing results for 
Search instead for 
Did you mean: 

How to run test cases for selected rows in datasource

SOLVED
Highlighted
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
Highlighted
Super Contributor

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.

View solution in original post

2 REPLIES 2
Highlighted
Super Contributor

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.

View solution in original post

Highlighted
Moderator

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:
Announcements
TechCorner Leaderboard
Want a fun and easy way to learn ReadyAPI and show off your skills? Try solving weekly TechCorner challenges and get into the Leaderboard!


Challenge Status

Get a full Raw JMS request

Participate!

Compare an expected JSON value and actual response in Events

Participate!

Fetch value/data from JSON response using Groovy Script

See replies!

Get data from Petstore and add it to Excel sheets

Participate!
Top Kudoed Authors