当前位置:网站首页>jmeter中csv参数化
jmeter中csv参数化
2022-06-25 08:08:00 【fish_study_csdn】
Jmeter参数化的方式大概有4种用户定义的变量、用户参数、函数助手、csv文件配置。用户定义的变量与用户参数,两者的用法相似,但用户定义的变量一般作用于脚本全局,用户参数一般用于局部请求;函数助手与CSV文件配置适合大批量参数化,在性能测试中比较常用。
jmeter中csv参数化,先创建一个csv文件(参数与参数之间用逗号隔开,英文逗号)。
中文逗号是无法将参数分割开的,就会默认 为一个参数来处理。
内容编辑完成后写成保存csv文档,当然其他扩展名也可以,比如txt
1 创建csv文件

2、进入jmeter中,在线程组中右键添加--配置元件--csv数据文件设置

3、将设置的变量配置到运行脚本中
配置变量是:美元$符号+大括号{变量名} 。比如:${username}
这儿的变量名要与步骤2设置的变量名称一致

4、添加查看结果输和http默认请求值
5、 进入线程组中设置线程数,设置为6(因为除了首行外,有6条数据)

6 、 运行并察看结果树
正确的:
错误的:

每个线程读文件中的一行数据执行请求
边栏推荐
- Cazy eight trigrams maze of Chang'an campaign
- Nips 2014 | two stream revolutionary networks for action recognition in videos reading notes
- Trendmicro:apex one server tools folder
- C language "recursive series": recursive implementation of 1+2+3++ n
- 四、卷积神经网络(Convolution Neural Networks)
- What does openid mean? What does "token" mean?
- flutter 多语言的intl: ^0.17.0导不进去
- What do various optimizers SGD, adagrad, Adam and lbfgs do?
- QSS 不同风格的按钮
- Discrimination of configuration, software configuration items and software configuration management items
猜你喜欢

Data preprocessing: discrete feature coding method

C#程序终止问题CLR20R3解决方法

cazy长安战役八卦迷宫

WebGL谷歌提示内存不够(RuntimeError:memory access out of bounds,火狐提示索引超出界限(RuntimeError:index out of bounds)

¥3000 | 录「TBtools」视频,交个朋友&拿现金奖!

Find the nearest common ancestor (Sword finger offer) of two nodes in the binary tree (search tree)

Unity--configurable joint -- a simple tutorial to get you started with configurable joints

View all listening events on the current page by browser

Summary of NLP data enhancement methods

紧急行政中止令下达 Juul暂时可以继续在美国销售电子烟产品
随机推荐
Unity addressable batch management
Beam search and five optimization methods
打新债真的安全吗? 风险大吗
Retrieval model rough hnsw
C#启动程序传递参数丢失双引号,如何解决?
如何实现一个系统调用
WebGL谷歌提示内存不够(RuntimeError:memory access out of bounds,火狐提示索引超出界限(RuntimeError:index out of bounds)
Unity--configurable joint -- a simple tutorial to get you started with configurable joints
How to solve the 10061 error of MySQL in Linux
关掉一个线程
Unity发布webGL的时候JsonConvert.SerializeObject()转换失败
Sharepoint:sharepoint server 2013 and adrms Integration Guide
[operation tutorial] how does the tsingsee Qingxi video platform import the old database into the new database?
Wechat applet_ 7. Project practice, local life
mysql之Unknown table ‘COLUMN_STATISTICS‘ in information_schema (1109)
WebGL发布之后不可以输入中文解决方案
What do various optimizers SGD, adagrad, Adam and lbfgs do?
城鏈科技平臺,正在實現真正意義上的價值互聯網重構!
如何设计测试用例
OpenFOAM:底层