当前位置:网站首页>Jmeter-参数化
Jmeter-参数化
2022-08-03 23:31:00 【Kiraxqc】
一、 用户定义变量
1. 访问百度页面
测试计划-线程组(添加-配置元件-用户定义的变量)

${}引用用户定义的变量

或者在测试计划中添加
二、用户参数
1. 批量添加多个不同的参数(登录)
测试计划-线程组(添加-前置处理器-用户参数)


以下两种方式等价:
1)HTTP请求发送参数时引用

2)写在路径中:

三、csv函数助手(随机、不一样)

生成的表达式粘贴到变量中

四、CSV
1. CSV文件准备

添加-配置元件-CSV Data Set Config


HTTP变量中引用

场景:
1. 用户登录
2. 接口返回值测试,比如访问某个页面,输入多个参数会返回什么响应码或HTTP请求(接口测试)
边栏推荐
- libnet
- BMN: Boundary-Matching Network for Temporal Action Proposal Generation阅读笔记
- Walk the Maze BFS
- Deep integration of OPC UA and IEC61499 (1)
- Unity 截取3D图像 与 画中画PIP的实现
- Unity2021 releases WebGL fog effect disappearing problem
- 超级完美版布局有快捷键,有背景置换
- Why do we need callbacks
- override learning (parent and child)
- 689. 三个无重叠子数组的最大和
猜你喜欢
随机推荐
The "interaction design" battle of the smart cockpit
响应式织梦模板餐饮酒店类网站
libnet
ML之yellowbrick:基于titanic泰坦尼克是否获救二分类预测数据集利用yellowbrick对LoR逻辑回归模型实现可解释性(阈值图)案例
rosbridge-WSL2 && carla-win11
log4j-slf4j-impl cannot be present with log4j-to-slf4j
MiniAPI of .NET6 (14): Cross-domain CORS (Part 1)
Take an example of a web worker
MCS-51单片机,定时1分钟,汇编程序
rosbridge-WSL2 && carla-win11
Internship: Upload method for writing excel sheet (import)
utlis thread pool
The Chinese Valentine's Day event is romantically launched, don't let the Internet slow down and miss the dark time
直播预告 | 构建业务智联,快速拥抱财务数字化转型
utils 定时器
Another MySQL masterpiece published by Glacier (send the book at the end of the article)!!
RSS订阅微信公众号初探-feed43
【深度学习】基于tensorflow的服装图像分类训练(数据集:Fashion-MNIST)
射频芯片ATE测试从入门到放弃之参数测试
2022/8/3 Exam Summary









![[Paper Reading] TRO 2021: Fail-Safe Motion Planning for Online Verification of Autonomous Vehicles Using Conve](/img/17/342676e20fc04ce9083c5ed443bc1d.png)