Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Performance Testing with JMeter  3 - Third Edition

You're reading from  Performance Testing with JMeter 3 - Third Edition

Product type Book
Published in Jul 2017
Publisher Packt
ISBN-13 9781787285774
Pages 166 pages
Edition 3rd Edition
Languages
Author (1):
Bayo Erinle Bayo Erinle
Profile icon Bayo Erinle
Toc

JDBC Request Sampler


Sometimes, it's necessary to test durability and I/O operations against the database directly. How fast are insert, update, and select queries on the tables in question? For such tests, JMeter provides a JDBC Request Sampler to help issue SQL queries against the database. However, to use it, we need to set up a JDBC Connection Configuration component. Setting up this component requires us to point to a database. Therefore, let's go ahead and set up the database. Normally, this will already be set up for you to test against, but for illustrative purposes, we will assume that none has been set up. We will be using H2, an open source, pure Java SQL database. It is lightweight and relatively easy to set up. You can find more details about H2 at http://www.h2database.com/html/main.html.

Setting up the H2 database

To set up the H2 database, execute the following steps:

  1. Download a distribution from http://www.h2database.com/html/download.html.
  2. Extract the archive to a location...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime