Forum Discussion

Lagencie's avatar
Lagencie
Frequent Contributor
6 years ago

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?

No RepliesBe the first to reply