简体   繁体   中英

Automate Database Load Testing

I write plugin for JMeter to automate database load testing. The main idea of plugin is create automate database load test when provided a minimum of information (connection string, quantity of users, throughput, schemas of tables that is tested, etc). I understand that such random test doesn't match to real behavior of user but purpose is to launch test in few minutes and get statistic of DB work such as select or DML queries time of response.

What aspect of database can be tested automaticly? How can I automaticly test this aspects? For example tables, index, trigers, functions... What statistic I can get in such way? Are there similar software? Do You have any idea? :)

At first I get metadata from DB for all tables and create queries(DML and all posible select for 1 table) from existing data in DB and put them to queue. Then sampler get the query from queue and execute it.

A couple of questions to help you need to get to where you are going first.

1) What are the exact metrics you are looking to test? 2) Is this for comparing different database servers / end products, or is it for a specific database to measure how well your indexes are set up? 3) Will it be creating multiple concurrent connections to test record locking, etc?

I believe that you should start with official documentation such as Building a Database Test Plan .

Once you're comfortable with JDBC Connection Configuration details, have ojdbc6.jar in JMeter classpath (usually /lib folder) and will be able to execute sample query like select sysdate from dual;

you can start looking into ie Using JDBC Sampler in JMeter 2.6 guide for advanced information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM