Reputation: 1
I have API request for which I am getting the response in JSON & for the same data I need to verify /compare it with database as well .
Http request response :-
[ { "name": "TRANSLATOR_MERGE_SIMILAR_STUDIES_ENABLED", "value": "false" } ]
JDBC response
PARAM_VALUE false
NOw I want to assert the "False" from both the responses & make the case passed/failed.
Can anyone suggest something. I have 100 + similar requests for which I have to compare the data with DB vaules.
Upvotes: -1
Views: 30
Reputation: 2872
Extract value from HTTP response using JSON Extractor configured like this:
Extract value from the database using JDBC PostProcessor like this:
Compare the values using Response Assertion like this:
Enjoy
Upvotes: 0