Page 1 of 1
Database Testing using Selenium WebDriver
Posted: Wed Nov 28, 2018 11:14 am
How to conduct Database Testing using Selenium WebDriver with Java Programming?
Re: Database Testing using Selenium WebDriver
Posted: 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.)