Jmeter_ implementation of the PostgreSQL database

Source: Internet
Author: User
Tags postgresql

Environment

①jmeter version: 3.2,jdk:1.8;

②postgresql The driver package postgresql-9.3-1103.jdbc4, place the jar package in the. Under \apache-jmeter-3.2\lib\ file;

Download Link:https://pan.baidu.com/s/1c2q94La extract Password: cb5h

"JMeter Configuration"

(1) Add configuration element "JDBC Connection Configuration";

Function: Used to configure the JDBC connection PG database;

Configuration:

①validation query Custom input, here I enter: pgsql;

②DATABASEURL:JDBC:POSTGRESQL://192.168.1.33:11921/GDW (IP: port: Initial library)

③JDBC Driver Class:org.postgresql.Driver

Example:

(2) Add Sampler "JDBC Request"

Role: Used to initiate SQL requests;

Configuration:

① Sampler in variable name bound to pool in variable name and JDBC Connection configuration in variable name bound to pool variable name remains Consistent

②query the type of SQL statement in Type:query, select the type of SQL operation you need;

③query:sql statement;

④ parameterization: With the CSV Data Set Config, you can directly use the "${parameter name}" for parameterization, see update example;

⑤update Example:

Jmeter_ implementation of the PostgreSQL database

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.