当前位置:网站首页>JMeter 学习心得
JMeter 学习心得
2022-06-11 12:05:00 【乌托邦为什么被占用了】
1、下载地址:http://jmeter.apache.org/download_jmeter.cgi (暂时为4.0版本,推荐用此版本)
2、更改语言:
临时性更改-Options-Choose Language
永久性更改-/bin/jmeter.properties 配置文件中 #language=en 更改为 比如 language=zh_CN
3、命令执行参数含义(非gui下测试可以大大减少所需系统资源):
-h 帮助 -> 打印出有用的信息并退出
-n 非 GUI 模式 -> 在非 GUI 模式下运行 JMeter
-t 测试文件 -> 要运行的 JMeter 测试脚本文件
-l 日志文件 -> 记录结果的文件
-r 远程执行 -> 在Jmter.properties文件中指定的所有远程服务器
-H 代理主机 -> 设置 JMeter 使用的代理主机
-P 代理端口 -> 设置 JMeter 使用的代理主机的端口号
例子:/home/zheren/JMeter/bin/jmeter -n -t /home/zheren/JMeter/jmxdir/test.jmx -l /home/zheren/JMeter/log/logfile.jtl
4、Jmeter Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
解决方法:
原因是确实连接mysql的驱动,下载mysql-connector-java-5.1.44-bin.jar,哪个版本都可以,按自己的mysql版本来,将jar包放到jmeter安装路径下的 apache-jmeter-3.2\lib\ext 中,然后重启JMeter即可。
5、连接数据库配置(配置元件--JDBC Connection Configuration):

6、正则表达式提取器(后置处理器--正则表达式提取器)
正则表达式:
():括起来的部分就是要提取的。
.:匹配任何字符串。
+:一次或多次。
?:在找到第一个匹配项后停止。

边栏推荐
- Guangdong municipal safety construction data management software 2022 new forms are coming
- 深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)
- JS 加法乘法错误解决 number-precision
- 吊打面试官,涨姿势
- C# 设置或验证 PDF中的文本域格式
- C# 读取txt文件生成Word文档
- 大数相加(C语言)
- PS does not display text cursor, text box, and does not highlight after selection
- Notes on brushing questions (13) -- binary tree: traversal of the first, middle and last order (review)
- Elk - elastalert largest pit
猜你喜欢

Streaking? Baa!

苹果MobileOne: 移动端仅需1ms的高性能骨干

(推荐)splunk 多少数量search head 才合适

Read geo expression matrix

Splunk最佳实践之workload managment

Intl.numberformat set number format

Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)

Software project management 7.1 Basic concept of project schedule

【LeetCode】1049. Weight of the last stone II (wrong question 2)

.net core 抛异常对性能影响的求证之路
随机推荐
采用快慢指针法来解决有关数组的问题(C语言)
JEST 单元测试说明 config.json
How to solve the problem that high-precision positioning technologies such as ultra wideband UWB, Bluetooth AOA and RTK cannot be widely used due to their high cost? Adopt the idea of integrated deplo
CentOS installation mysql5.7
Thread five states (thread life cycle)
When I saw the sudden death of a 28 year old employee, I wanted to moisten
软件项目管理 7.1.项目进度基本概念
Four ways to create threads
Elk - x-pack set user password
Linux changes the MySQL password after forgetting it
Jest unit test description config json
Live app development to determine whether the user is logging in to the platform for the first time
Adjust the array order so that odd numbers precede even numbers (C language)
Addition of large numbers (C language)
Streaking? Baa!
UnicodeDecodeError: ‘utf-8‘ codec can‘t decode byte 0xc5 in position 13: invalid continuation byte
JS to realize the rotation chart (riding light). Pictures can be switched left and right. Moving the mouse will stop the rotation
Command symbols commonly used by programmers
Let you understand bubble sorting (C language)
中间人攻击之ettercap嗅探