JMeter connecting DB database via Org.sqlite.JDBC Drive

Source: Internet
Author: User
Tags sqlite

Recently encountered a project, the default business library is built-in DB database, in the performance script editing process to obtain the corresponding ID number through the Regular Expression Extractor (association), through the ID number to the DB database to find the corresponding data Source Name field content, Make the parameters (parameter) variable for the next post request.

Due to the lack of access to the DB database, official Help documents are not introduced, the following combination of Niang content and personal experience summarized as follows:

1, the required driver: Org.sqlite.JDBC (sqlite-jdbc-x.xx.x.jar), driver download can click "Original path"

Analyze the driver file to see the required driver's class as shown in (source path)

  

2, the database path settings, the Internet generally refers to the db file placed in the Jmeter/bin folder, set the database Url=jdbc:sqlite:test.db way, but I did not succeed/(ㄒoㄒ)/~~, simply change directly to the database URL =jdbc:sqlite:d:\java_software\apache-jmeter-3.0\apache-jmeter-3.0ly\bin\ime.db, i.e. (Database URL=jdbc:sqlite: DB data absolute path), try OK.

3, Configuration display:

  JDBC Connection Configuration

  

JDBC Request Configuration

  

  The execution results show:

Other database configuration can be referenced (I did not verify): http://m.blog.csdn.net/amoscn/article/details/74991924

JMeter connecting DB database via Org.sqlite.JDBC Drive

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.