Checkout our demo site to practice selenium https://magento.softwaretestingboard.com/

0 like 0 dislike
192 views
by The go-to Tester (262 points)
In selenium automation, how to DB validate the result . I am automating the /store api call and getting '200' response with response body.

I have to valiadate the stored data in DB. we are using Mongo DB. Any approches to automate the DB validation

1 Answer

0 like 0 dislike
by Master (1.2k points)
 
Best answer
Selenium is just a browser automation tool. You can use the programming language(PL) of your choice to use its library say Java or python, combine it with any testing framework to do your testing.

To test the DB, you have to go to the official site of DB and use the driver and the library available for the PL of your choice.

You can write your DB commands in between your Selenium code.

That's how it integrates.


This site is for software testing professionals, where you can ask all your questions and get answers from 1300+ masters of the profession. Click here to submit yours now!

1.4k questions

1.6k answers

866 comments

1.9k users

...