Forum Discussion
ADucci
16 years agoOccasional Contributor
Hi..
got it working, all i needed to do, was put an if statement into the Groovy Script to check if each child element is applicable for every parent
if ( Parent_SA_ID.equals(Child_SP_ID) )
(then print out data)
Problem is that this takes a long time, as the child table needs to be looped for every parent record?
Is there a way to perform a query in datasource that uses a Groovy Script
got it working, all i needed to do, was put an if statement into the Groovy Script to check if each child element is applicable for every parent
if ( Parent_SA_ID.equals(Child_SP_ID) )
(then print out data)
Problem is that this takes a long time, as the child table needs to be looped for every parent record?
Is there a way to perform a query in datasource that uses a Groovy Script
def gu = new com.eviware.soapui.support.GroovyUtils( context )
def Parent_SA_ID = context.expand( '${PersonDataSource#PerID}' )
* then select all records in the Contacts Table Based on a query *
"Select *
from Contacts
where per_ID = '${PersonDataSource#PerID}'