Forum Discussion
gilugopi
9 years agoContributor
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
- strim355z9 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!