Turn from the insect master: http://www.cnblogs.com/fnng/archive/2011/07/26/2117600.html My environment: Mysql:mysql-essential-5.1.51-win32 JDBC Driver: I have uploaded to Csdn previous: http://download.csdn.net/source/3451945 jmeter:jmeter-2.4 any version of the line. 1. First we have a database that can be tested, of course, there must be data, or how to measure it? In my previous article, Eclipse connects to MySQL database (fool's article), which teaches you how to bulk insert data through a program. Take a look at my data: I may be a bit verbose: no matter how you use it, there's a bit of data in your database. 2. Open JMeter, click Test Plan, click "Browse ..." button to add your JDBC driver. 3. Add a thread group, right-click on "Thread Group" and add a "JDBC Connection configuration" below to configure the JDBC Connection config page. 4. Right click on "Thread Group" and add a "JDBC request" below 5. Add an assertion. Right-click the thread group----> Add---> Assert----> Response assertion. 6. Let's add some listeners to the line to view the add an assertion result: Right-click on the thread group----> Add---> Listener----> Result assertion. Add a graphical result: Right-click the thread group----> Add---> Listener----> Graphical results. Add a View results tree: Right-click the thread group----> Add---> Listener----> View the results tree. Here is a list of all the things to add: 7. Thread Group page set number of users, start time, number of cycles click the menu bar "Run"----"Start" below is the result:
Creating a Database (Mysql) test using JMeter