Asubbiah
9 years agoContributor
validating REST response against JDBC response
Hi,
I have to compare the Rest response with JDBC result set.
I am following the below steps.
1. Datasource - JDBC - Run the query and get the values
2. Rest Step - Execute and get the response; Added assertion to get the first (datasource row number) row values and validate it with the datasource values
3. Data loop
My Datasource has 30 records and the Rest step is getting executed 30 times to validate the results one by one.
Is there any way I can get the complete datasource results as list and compare it with the Rest response?
Can you please help me the groovy script? (I am newbie)
- Please check this link for reference and implement as you needed
http://stackoverflow.com/questions/31472381/dynamically-compare-rest-xml-json-response-and-jdbc-using-groovy-array-in-soapui/35706976#35706976