Forum Discussion
SmartBear_Suppo
Alumni
16 years agoHi Michael,
What you're looking for you can achieve by using the soapUI assertion mechanism and property expansion. More precisely, after you load your reference data from database, you could set a property that is used in assertion. You may add this snippet at the end of your Groovy script:
After that you would reference ${#propertyToAssert} in your assertions of your request. Start with Contains assertion that is least restrictive and is easiest to use and proceed with others if you need more control.
I hope this helps...
Cheers!
/Nenad Nikolic a.k.a. Shonzilla
What you're looking for you can achieve by using the soapUI assertion mechanism and property expansion. More precisely, after you load your reference data from database, you could set a property that is used in assertion. You may add this snippet at the end of your Groovy script:
someData = 'some data loaded from DB';
context.setProperty('propertyToAssert ', someData)
After that you would reference ${#propertyToAssert} in your assertions of your request. Start with Contains assertion that is least restrictive and is easiest to use and proceed with others if you need more control.
I hope this helps...
Cheers!
/Nenad Nikolic a.k.a. Shonzilla