Database Testing using Selenium WebDriver

Database Test Operations (Data Manipulations, Data Integrity, Data Comparisons and Data Backup & Recovery) Database Testing Manually and Database Testing using Test Tools (Selenium,UFT etc,)
Post Reply
Gowtham Ramesh
Posts: 66
Joined: Thu Nov 22, 2018 5:23 am

Database Testing using Selenium WebDriver

Post by Gowtham Ramesh » Wed Nov 28, 2018 11:14 am

How to conduct Database Testing using Selenium WebDriver with Java Programming?

Imran
Posts: 23
Joined: Thu Dec 06, 2018 11:50 am

Re: Database Testing using Selenium WebDriver

Post by Imran » Sun Dec 09, 2018 9:10 am

Connecting to a Database using Selenium WebDriver with Java:

Step 1: Create Connection between Java and Database

> Download the jar file of Database (MySQL / Oracle /MS SQL Server) Connector from here, then unzip the zip file,

> Add the reference of this jar to your project,

> Register JDBC driver and create connection between JDBC and Database (MySQL / Oracle /MS SQL Server).

Step 2: Execute SQL Query
(After creating a connection between JDBC and Database, we have to create 2 more objects)

Step 3: Closing DB Connection
(Closing the connection after getting the results from Database is a must otherwise issues like memory leakage is seen.)

Post Reply

Return to “Database Testing”