Suppose in Integration Test, I need to check the values returned in my Test against the result that is stored in DB. I am using Rest-Assured for Integration Testing. So any help on how to do it? Reference :-
Asked
Active
Viewed 1,991 times
0
-
Do you have problems with extracting data from DB? There is no difference between checking response vs any data source. – RocketRaccoon Jun 23 '16 at 04:45
-
Suppose a Post request to http://localhost:8080/gethelp/response gives me a json response.Now I need to check this response against the data what I have in Db.Used Dbunit but getting xml file.So any other better option. – Riddhik_debugger Jun 23 '16 at 05:28
-
In our project we are using a simple DbClient over JDBC. But as for me using DB check in integration tests is the last option, we are avoiding it when ever is possible. See this [answer](http://stackoverflow.com/questions/3950002/is-there-a-dbunit-like-framework-that-doesnt-suck-for-java-scala) and this [link](http://www.unitils.org/tutorial-database.html) probably they would be useful for you. – RocketRaccoon Jun 23 '16 at 05:50