saurabhsharma09
12 years agoContributor
[Res] How to validate Service Response against JDBC response
Hi,
I am trying to validate REST service response against JDBC response.
The problem I am facing is that the xml response returned by REST Service has no defined order of records.Example-Response is not sorted based on any attribute.
I have used xml datasource for both JDBC Step and Service Response but can't compare as the JDBC data source first record is different from Service Response Data source first record.I have to Iterate both the data sources.
Questions:-
1. Is the approach correct or is there any other better approach apart from xml data sources for JDBC and REST Step Response?
2. Is there any way to sort Data source values before comparison? If yes then provide information regarding same.
I am pretty much new to groovy and soapUI so please ignore my mistakes and let me know in case any other information is required?
Thanks,
I am trying to validate REST service response against JDBC response.
The problem I am facing is that the xml response returned by REST Service has no defined order of records.Example-Response is not sorted based on any attribute.

I have used xml datasource for both JDBC Step and Service Response but can't compare as the JDBC data source first record is different from Service Response Data source first record.I have to Iterate both the data sources.
Questions:-
1. Is the approach correct or is there any other better approach apart from xml data sources for JDBC and REST Step Response?
2. Is there any way to sort Data source values before comparison? If yes then provide information regarding same.
I am pretty much new to groovy and soapUI so please ignore my mistakes and let me know in case any other information is required?
Thanks,