当前位置:网站首页>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 、 运行并察看结果树
正确的:
错误的:

每个线程读文件中的一行数据执行请求
边栏推荐
- Object.defineProperty也能监听数组变化?
- tp6自动执行的文件是哪个?tp6核心类库有什么作用呢?
- C language: count the number of words in a paragraph
- [MySQL] understanding and use of indexes
- 在哪个平台买股票开户安全?求分享
- In Section 5 of bramble pie project practice, Nokia 5110 LCD is used to display Hello World
- C language: bubble sort
- How to increase the monthly salary of software testing from 10K to 30K? Only automated testing can do it
- Lvs-dr mode multi segment case
- What is the file that tp6 automatically executes? What does the tp6 core class library do?
猜你喜欢

城鏈科技平臺,正在實現真正意義上的價值互聯網重構!

Incluxdb time series database

UEFI: repair efi/gpt bootloader

C language "recursive series": recursive implementation of 1+2+3++ n

How to solve the 10061 error of MySQL in Linux

从别人库里拷贝的游戏如何再自己的库里显示

【操作教程】TSINGSEE青犀视频平台如何将旧数据库导入到新数据库?

How to calculate the distance between texts: WMD

二、训练fashion_mnist数据集

声纹技术(六):声纹技术的其他应用
随机推荐
About i/o -- the relationship between memory and CPU and disk
35岁腾讯员工被裁员感叹:北京一套房,存款700多万,失业好焦虑
What is the file that tp6 automatically executes? What does the tp6 core class library do?
How safe is the new bond
某视频网站m3u8非感知加密分析
UEFI:修复 EFI/GPT Bootloader
C language: count the number of characters, numbers and spaces
Sharepoint:sharepoint server 2013 and adrms Integration Guide
Wechat applet_ 7. Project practice, local life
[MySQL] understanding of transactions
在华泰证券上面开户好不好,安不安全?
wav文件(波形文件)格式分析与详解
C language "recursive series": recursive implementation of 1+2+3++ n
106. simple chat room 9: use socket to transfer audio
[515. find the maximum value in each tree row]
How to calculate the distance between texts: WMD
Getting to know the generation confrontation network (12) -- using pytoch to build wgan-gp to generate handwritten digits
Analysis of a video website m3u8 non perceptual encryption
WebGL发布之后不可以输入中文解决方案
GPU calculation