cancel
Showing results for 
Search instead for 
Did you mean: 

Conditional Assertion based on DataSource (grid) value

Frequent Contributor

Conditional Assertion based on DataSource (grid) value

Hello,

 

I have a small problem, I have a DataSource which I loop through, with an indicator, which shows me which assertion has to be done, either one or another. Is there a way to make this in Soapui somehow?

 

so my DataSource is like:

 

ID //////////  TESTNAME //////// BaseAssertion

1  /////////// Testname1 /////////// True

2 ///////////// Testname2 ////////// False

 

Depending on BaseAssertion True or False I make a different json schema compliance. Still havent found a way to make this work. Is there a way to make groovy scripts where I can get the current DataSource value and make a json schema compliance in the groovy script?

New Here?
Join us and watch the welcome video:
Watch the new Interview