Forum Discussion

Asubbiah's avatar
Asubbiah
Contributor
8 years ago
Solved

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)

 

 

9 Replies