views:

211

answers:

3

Does Selenium supports Database testing? If yes, how to do it?

+4  A: 

A browser testing tool is not the right tool for database testing. For that you use a regular unit testing framework, as all database access is within your serverside code.

Unless of course your database access is browser based, in which case you have bigger problems than choosing a test framework.

Tom Clarkson
I am using Junit database is MYSQl.
sujata
+1  A: 

If you want to connect to a database, use DB connection APIs, for example JDBC for Java.

Rajasankar
A: 

Consider using TestPlan which allows you to combine Web UI testing with custom Java test units. Those test units can then access your DB and use it in the UI scripts.

edA-qa mort-ora-y