SlideShare a Scribd company logo
1 of 7
Database Testing
with JMeter
by Canberk Akduygu
Product Owner @Loadium.com
Database Testing with JMeter
• Most of the applications’ performance can be tested by triggering HTTP, FTP
or some other protocols.
• There are some cases where we want to directly test the database system
without interfering the HTTP calls.
• Apache JMeter has a built-in JDBC Request module.
• Let’s see how we can do database testing with Jmeter!
– JMeter can connect to any database and run SQL queries concurrently. In
order to do so, it’s mandatory to have necessary JDBC drivers in the lib
folder of your installation.
– Most important part of the Database performance testing is to have valid
connection strings in JDBC Connection Configuration.
JDBC Connection Configuration
• Add a JDBC Connection Configuration by using Add-> Config Element
menu. There are some fields that should be filled out.
JDBC Connection Configuration
• Variable Name: This value will be used in our JDBC Sampler. In case there is
more than one SQL connection, JDBC request will use the right DB
Connection by using this value.
• Connection Pool Configuration: Leave it as it is. These values are good
enough for a performance test. In case it’s needed, increasing or decreasing
the values is a possibility.
• Database URL: It’s obvious isn’t it?
• JDBC Driver Class: It’s different for every Database vendor
– Mysql uses com.mysql.jdbc.Driver
– Oracle uses oracle.jdbc.driver.OracleDriver
– Microsoft uses com.microsoft.sqlserver.jdbc.SQLServerDriver
• Username & Password: Another obvious configuration, isn’t it?
• Lastly, add a JDBC Sampler using Add->Sampler menu. Just fill out 
the Variable Name property you defined in the configuration. It must be 
exactly the same. Every request should be bound to a JDBC Configuration. 
If it’s not, the statement will not be executed by JMeter.
JDBC Connection Configuration
Ready Set Go!
• Now you are ready to go! Just run your 
JMeter plan and execute performance test 
into your database directly.
Happy Load Testing!
Ready Set Go!
• Now you are ready to go! Just run your
JMeter plan and execute performance test
into your database directly.
Happy Load Testing!

More Related Content

What's hot

WSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and AdoptionWSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and Adoption
WSO2
 
Java.sql package
Java.sql packageJava.sql package
Java.sql package
myrajendra
 

What's hot (20)

JMeter Post-Processors
JMeter Post-ProcessorsJMeter Post-Processors
JMeter Post-Processors
 
Introduction to performance testing
Introduction to performance testingIntroduction to performance testing
Introduction to performance testing
 
WSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and AdoptionWSO2 Test Automation Framework : Approach and Adoption
WSO2 Test Automation Framework : Approach and Adoption
 
Performance testing using jmeter
Performance testing using jmeterPerformance testing using jmeter
Performance testing using jmeter
 
ETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparisonETL Validator: Flat File to Table comparison
ETL Validator: Flat File to Table comparison
 
Query parameterization in ETL Validator
Query parameterization in ETL ValidatorQuery parameterization in ETL Validator
Query parameterization in ETL Validator
 
Perofrmance testing and apache jmeter
Perofrmance testing and apache jmeterPerofrmance testing and apache jmeter
Perofrmance testing and apache jmeter
 
Introduction to Performance Testing
Introduction to Performance TestingIntroduction to Performance Testing
Introduction to Performance Testing
 
Weblogic plug in
Weblogic plug inWeblogic plug in
Weblogic plug in
 
Apache Jmeter 3.2 Performance & Load Testing 2017
Apache Jmeter 3.2 Performance & Load Testing 2017Apache Jmeter 3.2 Performance & Load Testing 2017
Apache Jmeter 3.2 Performance & Load Testing 2017
 
Mule database connector
Mule database connectorMule database connector
Mule database connector
 
ETL Validator: Referential integrity Testing
ETL Validator: Referential integrity TestingETL Validator: Referential integrity Testing
ETL Validator: Referential integrity Testing
 
Weblogic performance tuning1
Weblogic performance tuning1Weblogic performance tuning1
Weblogic performance tuning1
 
Beyond EBR, Quantum Columns, Spook Joins and Virtual Integrity for ZDT Data V...
Beyond EBR, Quantum Columns, Spook Joins and Virtual Integrity for ZDT Data V...Beyond EBR, Quantum Columns, Spook Joins and Virtual Integrity for ZDT Data V...
Beyond EBR, Quantum Columns, Spook Joins and Virtual Integrity for ZDT Data V...
 
Java.sql package
Java.sql packageJava.sql package
Java.sql package
 
Perfromane Test Tool jmeter
Perfromane Test Tool jmeterPerfromane Test Tool jmeter
Perfromane Test Tool jmeter
 
JMeter
JMeterJMeter
JMeter
 
Executing oracle ebs stored
Executing oracle ebs storedExecuting oracle ebs stored
Executing oracle ebs stored
 
Introduction to JMeter
Introduction to JMeterIntroduction to JMeter
Introduction to JMeter
 
Brightcove presentation on Automated Testing
Brightcove presentation on Automated TestingBrightcove presentation on Automated Testing
Brightcove presentation on Automated Testing
 

Similar to Database testing with JMeter

Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
Bhojan Rajan
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
PARAG KHEDIKAR
 

Similar to Database testing with JMeter (20)

Unit 5.pdf
Unit 5.pdfUnit 5.pdf
Unit 5.pdf
 
J meter
J meterJ meter
J meter
 
Weblogic Cluster advanced performance tuning
Weblogic Cluster advanced performance tuningWeblogic Cluster advanced performance tuning
Weblogic Cluster advanced performance tuning
 
Weblogic performance tuning2
Weblogic performance tuning2Weblogic performance tuning2
Weblogic performance tuning2
 
JMeter
JMeterJMeter
JMeter
 
Muleesbcomponents1 160625154208
Muleesbcomponents1 160625154208Muleesbcomponents1 160625154208
Muleesbcomponents1 160625154208
 
Jdbc
JdbcJdbc
Jdbc
 
JMeter Intro
JMeter IntroJMeter Intro
JMeter Intro
 
J Meter Intro
J Meter IntroJ Meter Intro
J Meter Intro
 
The Magic of Tuning in PostgreSQL
The Magic of Tuning in PostgreSQLThe Magic of Tuning in PostgreSQL
The Magic of Tuning in PostgreSQL
 
java.pptx
java.pptxjava.pptx
java.pptx
 
J meter introduction
J meter introductionJ meter introduction
J meter introduction
 
Jdbc connectivity
Jdbc connectivityJdbc connectivity
Jdbc connectivity
 
Weblogic Cluster performance tuning
Weblogic Cluster performance tuningWeblogic Cluster performance tuning
Weblogic Cluster performance tuning
 
Performance testing jmeter
Performance testing jmeterPerformance testing jmeter
Performance testing jmeter
 
jdbc
jdbcjdbc
jdbc
 
Jmeter_Presentaion_Parag
Jmeter_Presentaion_ParagJmeter_Presentaion_Parag
Jmeter_Presentaion_Parag
 
Database Testing
Database TestingDatabase Testing
Database Testing
 
IRJET- Review on Java Database Connectivity
IRJET- Review on Java Database ConnectivityIRJET- Review on Java Database Connectivity
IRJET- Review on Java Database Connectivity
 
Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02Performancetestingjmeter 121109061704-phpapp02
Performancetestingjmeter 121109061704-phpapp02
 

Recently uploaded

Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
drm1699
 

Recently uploaded (20)

Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
Workshop -  Architecting Innovative Graph Applications- GraphSummit MilanWorkshop -  Architecting Innovative Graph Applications- GraphSummit Milan
Workshop - Architecting Innovative Graph Applications- GraphSummit Milan
 
From Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST APIFrom Theory to Practice: Utilizing SpiraPlan's REST API
From Theory to Practice: Utilizing SpiraPlan's REST API
 
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with GraphGraphSummit Milan - Neo4j: The Art of the Possible with Graph
GraphSummit Milan - Neo4j: The Art of the Possible with Graph
 
A Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdfA Deep Dive into Secure Product Development Frameworks.pdf
A Deep Dive into Secure Product Development Frameworks.pdf
 
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
Abortion Pill Prices Jane Furse ](+27832195400*)[ 🏥 Women's Abortion Clinic i...
 
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
Wired_2.0_CREATE YOUR ULTIMATE LEARNING ENVIRONMENT_JCON_16052024
 
Weeding your micro service landscape.pdf
Weeding your micro service landscape.pdfWeeding your micro service landscape.pdf
Weeding your micro service landscape.pdf
 
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
Abortion Pills For Sale WhatsApp[[+27737758557]] In Birch Acres, Abortion Pil...
 
Community is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea GouletCommunity is Just as Important as Code by Andrea Goulet
Community is Just as Important as Code by Andrea Goulet
 
Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024Food Delivery Business App Development Guide 2024
Food Delivery Business App Development Guide 2024
 
Your Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | EvmuxYour Ultimate Web Studio for Streaming Anywhere | Evmux
Your Ultimate Web Studio for Streaming Anywhere | Evmux
 
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
Anypoint Code Builder - Munich MuleSoft Meetup - 16th May 2024
 
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
Abortion Clinic In Pretoria ](+27832195400*)[ 🏥 Safe Abortion Pills in Pretor...
 
Effective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeConEffective Strategies for Wix's Scaling challenges - GeeCon
Effective Strategies for Wix's Scaling challenges - GeeCon
 
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
[GeeCON2024] How I learned to stop worrying and love the dark silicon apocalypse
 
Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024Modern binary build systems - PyCon 2024
Modern binary build systems - PyCon 2024
 
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
Abortion Pill Prices Mthatha (@](+27832195400*)[ 🏥 Women's Abortion Clinic In...
 
Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?Prompt Engineering - an Art, a Science, or your next Job Title?
Prompt Engineering - an Art, a Science, or your next Job Title?
 
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
Abortion Clinic In Johannesburg ](+27832195400*)[ 🏥 Safe Abortion Pills in Jo...
 
BusinessGPT - Security and Governance for Generative AI
BusinessGPT  - Security and Governance for Generative AIBusinessGPT  - Security and Governance for Generative AI
BusinessGPT - Security and Governance for Generative AI
 

Database testing with JMeter

  • 1. Database Testing with JMeter by Canberk Akduygu Product Owner @Loadium.com
  • 2. Database Testing with JMeter • Most of the applications’ performance can be tested by triggering HTTP, FTP or some other protocols. • There are some cases where we want to directly test the database system without interfering the HTTP calls. • Apache JMeter has a built-in JDBC Request module. • Let’s see how we can do database testing with Jmeter! – JMeter can connect to any database and run SQL queries concurrently. In order to do so, it’s mandatory to have necessary JDBC drivers in the lib folder of your installation. – Most important part of the Database performance testing is to have valid connection strings in JDBC Connection Configuration.
  • 3. JDBC Connection Configuration • Add a JDBC Connection Configuration by using Add-> Config Element menu. There are some fields that should be filled out.
  • 4. JDBC Connection Configuration • Variable Name: This value will be used in our JDBC Sampler. In case there is more than one SQL connection, JDBC request will use the right DB Connection by using this value. • Connection Pool Configuration: Leave it as it is. These values are good enough for a performance test. In case it’s needed, increasing or decreasing the values is a possibility. • Database URL: It’s obvious isn’t it? • JDBC Driver Class: It’s different for every Database vendor – Mysql uses com.mysql.jdbc.Driver – Oracle uses oracle.jdbc.driver.OracleDriver – Microsoft uses com.microsoft.sqlserver.jdbc.SQLServerDriver
  • 5. • Username & Password: Another obvious configuration, isn’t it? • Lastly, add a JDBC Sampler using Add->Sampler menu. Just fill out  the Variable Name property you defined in the configuration. It must be  exactly the same. Every request should be bound to a JDBC Configuration.  If it’s not, the statement will not be executed by JMeter. JDBC Connection Configuration
  • 7. Ready Set Go! • Now you are ready to go! Just run your JMeter plan and execute performance test into your database directly. Happy Load Testing!