Forum Discussion

kunalmalviya's avatar
kunalmalviya
Occasional Contributor
9 years ago

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 a...
  • JKambli's avatar
    JKambli
    9 years ago

    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