INTRODUCTION TO JDBC
▪ STEPS TO CREATE JDBC APPLICATION
www.edureka.co/testing-with-selenium-webdriver
WHAT IS SELENIUM?
DATABASE TESTING USING SELENIUM
DEMO
▪ MYSQL COMMANDS
www.edureka.co/testing-with-selenium-webdriver
INTRODUCTION TO JDBC
Connection 01
Create SQL 02
Execute SQL 03
Viewing 04
It is a standard Java API for database-independent connectivity between the Java programming language and a wide range of databases.
www.edureka.co/testing-with-selenium-webdriver
MYSQL COMMANDS
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
Drop table
Create table
Insert data
Create database
Drop database
SQL> CREATE DATABASE DATABASE_NAME;
www.edureka.co/testing-with-selenium-webdriver
Drop table
Create table
Insert data
Create database
Drop database
SQL> DROP DATABASE DATABASE_NAME;
www.edureka.co/testing-with-selenium-webdriver
Drop table
Create table
Insert data
Create database
Drop database
SQL> CREATE TABLE table_name ( column_name
column_data_type, column_name
column_data_type, column_name
column_data_type ... );
www.edureka.co/testing-with-selenium-webdriver
Drop table
Create table
Insert data
Create database
Drop database
SQL> DROP TABLE TABLE_NAME;
www.edureka.co/testing-with-selenium-webdriver
Drop table
Create table
Insert data
Create database
Drop database
SQL> INSERT INTO table_name VALUES
(column1, column2, ...);
STEPS TO CREATE JDBC APPLICATION
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
Import the packages
Register Driver & Open Connection
Execute a Query
Extract data from result set
Clean up the environment
STEPS TO CREATE JDBC APPLICATION
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
Selenium is Open
Source
Supports Cross
Browsing
Automates web
applications
Selenium is an open source
tool which is used for
automating the tests carried
out on web browsers (Web
applications can be tested
using any web browser).
www.edureka.co/testing-with-selenium-webdriver
www.edureka.co/testing-with-selenium-webdriver
To use Selenium
Webdriver for DatabaseVerification
you need to use the JDBC
("Java DataBase Connectivity"). JDBC
is a SQL level API that allows you to
execute SQL
www.edureka.co/testing-with-selenium-webdriver
Copyright © 2017, edureka and/or its affiliates. All rights reserved.
www.edureka.co
www.edureka.co/testing-with-selenium-webdriver

How to Perform Database Testing Using Selenium? Edureka