当前位置:网站首页>几种方式可以实现 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 」得到大田整理的命令详解一份。
边栏推荐
- Adding, deleting, modifying and querying databases with JDBC
- Leetcode 2293. Minimax game (yes. One pass)
- 1
- Gorm设置外键
- odoo 权限管理(访问权限及记录规则)结合实用,升级角色管理
- Flutter Icon Stack LIsttitle... Learning summary 3
- [discrete mathematics review series] i. propositional logic
- 微信小程序 关闭当前页面
- Kotlin practises. Take login as an example. Anko simply uses it
- C multithreading learning note 2
猜你喜欢

【大咖秀】博睿数据眼中的AIOps,选择正确的赛道正确的人

这些难搞的内存问题你都懂了吗?

Binary tree and Figure 2
![[note] the environment for setting up get injectedthread script supplemented by shellcode in Windows Security III and its use](/img/b4/f7838a7e12379190e2bc9b869839f0.png)
[note] the environment for setting up get injectedthread script supplemented by shellcode in Windows Security III and its use

短文本重复率快速检测

Microsoft Word tutorial, how to change margins and create a newsletter column in word?

Flutter Icon Stack LIsttitle... Learning summary 3

2022广东省安全员A证第三批(主要负责人)考试练习题及在线模拟考试

What can the graph of training and verification indicators tell us in machine learning?

Do you understand all these difficult memory problems?
随机推荐
Markdown Title centered
[Chongqing University] information sharing of preliminary and second examinations (with postgraduate entrance examination group)
Recyclerview multi layout writing method, "my" and "personal center" page classic writing method demonstration
C#多线程学习笔记四
如何写一个全局的 Notice 组件?
For the first time, the Pentagon admitted to funding 46 biological facilities in Ukraine. Russia once revealed that only three were safe
[note] the environment for setting up get injectedthread script supplemented by shellcode in Windows Security III and its use
LeetCode_21(合并两个有序链表)
22.6.7成功使用doc2vec模型生成嵌入向量
BigDecimal 去除末尾多余的0
【离散数学期复习系列】二、一阶逻辑(谓词逻辑)
这些难搞的内存问题你都懂了吗?
Mutual transformation among lists, arrays and tensors
【离散数学期复习系列】五、一些特殊的图
[advanced MySQL] optimize SQL by using the execution plan explain (2)
erp odoo 权限管理5年系统设置经验小结 真经验分享
单例模式和特殊类设计
[discrete mathematics review series] i. propositional logic
利用 GDB 快速阅读 postgresql 的内核代码
How to build Haojing technology when the computing power network is brought into reality?