当前位置:网站首页>Jemter operation
Jemter operation
2022-07-07 09:13:00 【zhangyr0916】
1.jemter Cannot directly link to the database , One needs to be installed first jmeter Connect mysql Database files mysql-connector-java-5.1.7-bin.jar , Put in D:\apache-jmeter-5.4.1\lib Next
2. Download address :MySQL :: Download Connector/J
3. Connect to database
① Create a thread group
② Right click on the thread group to create JDBC Connection Configuration
③ To configure JDBC Connection Configuration
Variable Name for created pool: The name of the database connection pool , In the use of JDBC Request Connect through the connection pool name , So in use JDBC Request The name of the connection pool you enter at the time should be the same as JDBC Connection Configuration In the same ;
Connection Pool Configuration: Basic configuration defined , You can set it to the default value ;
Database Configuratio:
Database URL: For database URL,jdbc:mysql:// Server address : Listening port / Database name
JDBC Driver class:JDBC drive . It's usually com.mysql.jdbc.Driver or ort.gjt.mm.mysql.Driver
Username: The user name of the database
Password: Database password
④ Right click in the thread group , add to JDBC Request
⑤ To configure JDBC Request
Query Type: Query type . for example , Use select Use when querying Select Statement, Use delete Use... When deleting tables Update Statement
Query: Here you can use database operation statements
Parameter Name: Referenced parameter values
Parameter Type: Type of reference parameter value
Variable name: Use sql The variable name returned by the statement
Result Variable name: Define the name of a parameter to save sql The return value of the query result
Query time: Set timer time
Handle Result: Save type when saving parameters
⑥ function
ps: Run time appears Cannot load JDBC driver class 'com.mysql.jdbc.Driver' The error is reported because it is not installed mysql-connector-java-5.1.7-bin.jar package
边栏推荐
- Postman interface test (I. installation and use)
- LED模拟与数字调光
- OpenGL 3D graphics rendering
- Golang etcdv3 reports an error. The attribute in grpc does not exist
- Selenium automation integration, eight years of testing experience, soft test engineer, an article to teach you
- Led analog and digital dimming
- C语言指针(上篇)
- Entity of cesium data visualization (Part 1)
- Locust performance test 3 (high concurrency, parameter correlation, assembly point)
- [chaosblade: node disk filling, killing the specified process on the node, suspending the specified process on the node]
猜你喜欢
Three updates to build applications for different types of devices | 2022 i/o key review
Common short chain design methods
Troublesome problem of image resizing when using typora to edit markdown to upload CSDN
Systick tick timer
PMP certificate preparation experience sharing
Postman interface test (I. installation and use)
Run can start normally, and debug doesn't start or report an error, which seems to be stuck
Upgrade Alibaba cloud RDS (relational database service) instance to com mysql. jdbc. exceptions. Troubleshooting of jdbc4.communicationsexception
Simple use of Xray
MySQL master-slave delay solution
随机推荐
2022-06-30 unity core 8 - model import
Leetcode刷题记录(数组)组合总和、组合总和 II
数据在内存中的存储
2021 year end summary
On December 8th, 2020, the memory of marketing MRC application suddenly increased, resulting in system oom
UnityShader入门精要个人总结--基础篇(一)
Locust performance test 5 (analysis)
硬件大熊原创合集(2022/06更新)
模拟卷Leetcode【普通】1609. 奇偶树
Skills that testers must know: Selenium's three waiting ways are interpreted clearly
What is the use of PMP certificate?
Golang etcdv3 reports an error. The attribute in grpc does not exist
Reading notes of pyramid principle
Panel display technology: LCD and OLED
C语言指针(下篇)
Several stages of PMP preparation study
Interview question: general layout and wiring principles of high-speed PCB
Common short chain design methods
Chaosblade: introduction to chaos Engineering (I)
Pytest+request+allure+excel interface automatic construction from 0 to 1 [five nails / flying Book notice]