Execute test only when the data source row value matches
I have a test with data source having multiple rows. In one of the columns I have YES & NO values where I need to execute the test for that particular row only when the row value matches with YES and skip the row where the value is NO
Is there a way that I can achieve this ?
Comments
-
Unfortunately there is not a built-in way to handle this. I would writing a script outside of SOAtest to dynamically create the data source (for example a .csv file) that only has the rows with the YES values. Then when SOAtest reads the data source it will only get the values that were put into the dynamically-created file.
0 -
This is possible. I recently explained how to do this in another post:
Use data conditionally in a SOAP Client ToolI described a case where the test is a SOAP client and the value in the data source column is empty string, but really the same steps apply to any tool and you can test the data source column against any value you want.
0 -
Wow that's great. I think I could try this and see how this helps in my case. Thank you so much benken.
0 -
Thanks Joe - I learned something!
0 -
I have tried implementing the same benken but didn't work.
I have only two rows in Table where the column name is Check which is holding YES and NO values
I have mapped the test suite variable and provided condition check at test flow logic when Check == YES
So usually it should trigger only one row which is having YES
0 -
Got it. Now, its working with the condition match.
Actually I was triggering test case alone. My bad, I have to trigger test suite once the condition is set.
This is awsome. This saves lot of time. Thanks benken.0