kunalmalviya
9 years agoOccasional Contributor
Execute test cases from excel based on Yes/No flag?
First step in my test cases is a excel data source which has different combination of parameters that get supplied to my REST request. I want to execute my test only for those rows which are marked as "Yes" in excel. How do I do that?
I have tried conditional goto and property transfer but that doesn't help.
Add a groovy script after DataSource
Right click > Get Data> DataSource > Execute
if (valueOfExecute == 'Yes'){
testRunner.gotoStepByName(
"next step name"
)
}
else
{
testRunner.gotoStepByName(
"DataSource Loop"
)
}
Thanks