Forum Discussion
gilugopi
Contributor
There are many ways to do it. But the easiest I think is to just create a JDBC test step and put your SQL query to retrun count form DB ( something like 'select count(*) count from table where ..... ' )
and then under your Json path assertion give Expected result as.
${#<jdbc_test_step_name#ResponseAsXml#//count}
Regards,
Gilu Gopi
strim355z
8 years agoOccasional Contributor
Thank you Gilu I have much to learn. I created my jdbc teststep and my query returned 8, my jpath assertion looks a little different but it seems to be working!
Related Content
- 7 months agoḼari
- 2 years agoDesktopapptesti
- 11 months agoIrinaManea
- 6 months agonado