当前位置:网站首页>几种方式可以实现 JMeter 参数化?
几种方式可以实现 JMeter 参数化?
2022-06-10 14:21:00 【大田测试录】
大家好啊,我是大田。
今天给大家分享大田平常使用 JMeter做接口测试时,常用的 3 种实现参数化方式。
1) 用户定义的变量元件
可以在本线程组内创建,说明只在本线程组生效;也可以在线程组外创建,说明可以跨线程组被其他请求引用。
创建位置:新增线程组后 -> 右键添加 -> 选择配置元件 -> 选择用户定义的变量。

2) 函数助手
对话框中可以选择比如随机字符串、随机日期、随机数字作为参数化。
创建位置:Tools -> 函数助手对话框。

3) CSV 文件作为参数化
通过配置元件中的 CSV Data Set Config ( CSV 数据文件设置)元件进行设置即可。需要注意的是,使用 CSV 文件时,需修改当前线程数为引入 CSV 文件中脚本数据条数。

创建位置:线程组右键添加 -> 选择配置元件 -> 选择 CSV Data Set Config ( CSV 数据文件设置)。

以上就是大田今天的分享了,如果你觉得有用可以给大田点个赞哦。
推荐文章:
2022.06.08,是大田日更第 123 / 365 天。每篇文章解决某个具体问题,关注公众号,后台私信「 电子书 」送你1.5G 测试资料,私信「 Linux 」得到大田整理的命令详解一份。
边栏推荐
- c#浅拷贝与深拷贝自定义的类的List<>
- 超强实操!手把手教学Kinect深度图与RGB摄像头的标定与配准
- [original] poi 5 X xssf and HSSF use custom font colors
- 2022 practice questions and online simulation test for the third batch of Guangdong Provincial Safety Officer a certificate (principal)
- .NET C#基础(7):接口 - 人如何和猫互动
- Microsoft Word tutorial, how to change margins and create a newsletter column in word?
- 还在说大学排名是笑话?最新规定:世界top50大学可以直接落户上海!
- 数仓的基本概念
- LeetCode_21(合并两个有序链表)
- What can the graph of training and verification indicators tell us in machine learning?
猜你喜欢

22.6.7 successfully use doc2vec model to generate embedded vectors

Simulated 100 questions and online simulated examination for safety production management personnel of hazardous chemical production units in 2022

利用 GDB 快速阅读 postgresql 的内核代码

C multithreading learning note 2

初学者自己搭建博客的设计工具和技巧

二叉树和图2

架构实战营 第 6 期 模块八课后作业

Mutual transformation among lists, arrays and tensors

Allan方差与随机误差辨识
![[big guy show] aiops in the eyes of Borui data, choosing the right track and the right people](/img/ea/740b877b5330a42065b5c5df0d9888.jpg)
[big guy show] aiops in the eyes of Borui data, choosing the right track and the right people
随机推荐
【离散数学期复习系列】六、树
如何写一个全局的 Notice 组件?
How to write a global notice component?
CVPR 2022 Oral | SCI:实现快速、灵活与稳健的低光照图像增强
[solution] each time the trained model is loaded, the generated vector will be different
Binary tree and Figure 2
Cell asynchronously invokes method change records
Kotlin 冒泡算法 ,高德地图 过滤掉两点之间距离小于50的数据,不重复显示
【离散数学期复习系列】五、一些特殊的图
Flutter 页面跳转 传参,TabBar学习总结5
【Vue/js】通过localStorage浏览器实现变量和对象的本地缓存(图文+完整源代码)
什么是CAS 以及 CAS 中的 ABA 问题
架构实战营 第 6 期 模块八课后作业
在启牛开户安全么
【大咖秀】博睿数据眼中的AIOps,选择正确的赛道正确的人
[note] the environment for setting up get injectedthread script supplemented by shellcode in Windows Security III and its use
IIC总线的主要特点/通信过程/读写过程
初学者自己搭建博客的设计工具和技巧
ScrollView 初始化的时候不在最顶部?
Shutter wrap button bottomnavigationbar learning summary 4