当前位置:网站首页>CSV data file settings of JMeter configuration components
CSV data file settings of JMeter configuration components
2022-07-26 09:29:00 【The man running the horse doesn't get enough sleep】
One 、CSV Data file settings
effect : Reading data from a file , And store them in variables after splitting , Suitable for dealing with many variables . Data files , General with .csv,.dat ,.txt Wait for the end of the file , Separators between data are available , perhaps tab Space .
JMeter 2.3.4 Later versions , Support CSV Header line in file , If the variable name is empty , Then the first line of the file is read , And interpreted as a list of column names .

1. file name (Filename)
csv File path , It can be absolute path or relative path . It is recommended to fill in the relative path , Directly fill in the name of the parameter file , Include file suffix , And put the file in .jmx In the same directory .
2. File encoding (File encoding)
Coding format , Keep consistent with the document , If you have Chinese , Set to utf-8
3. Variable name (Variable Names)
If there is only one variable in the file , Write the variable name directly , If there are multiple variables , Separated by commas in English ; When testing, it is through the variable name to match this csv File paired
4. Whether quotation marks are allowed ?(Allow quoted data?)
Set to true after , When the parameter file contains quotation marks , The actual data is the data in quotation marks . For example, the data in the parameter file is "1", When using this parameter , The actual obtained value is 1.
Set to false after , When the parameter file contains quotation marks , The actual obtained value is all values . For example, the data in the parameter file is "1", When using this parameter , The actual obtained value is "1".
5. The end of the file is encountered and looped again ?(Recycle on EOF?)
Set to true after , The stop thread option is invalid when encountering the end of file , The data in the parameter file is recycled , The test is performed according to the settings in the thread group . such as :csv The documents are in common 10 Bar record , But the number of threads is 15 individual , loop 10 Next time , Start the cycle again .
Set to false after , The parameter file no longer iterates through the value .
6. Stop thread encountered end of file (Stop thread on EOF?)
When all parameters in the parameter file are executed , Stop the thread directly
7. Thread sharing mode (Sharing mode)
- All threads (All threads): The parameter file is shared by all threads , This includes different thread groups in the same test plan ( All threads under all thread groups under the test plan share parameter files , Parameter values before all threads affect each other , The thread takes the same value in the same iteration )
- Current thread group (Current thread group): Shared only with threads in the current thread group ( All threads under the current thread group share a parameter file , The previous values of threads under the same thread group affect each other , The thread takes the same value in the same iteration )
- Current thread (Current thread): Only the current thread gets ( That is, each thread gets a parameter file , Parameter values between threads do not affect each other , The thread takes the same value in the same iteration )
notes :
1) When the location of the parameter file and the thread group are at the same level , When there is a loop controller under the thread group , The parameter values under the cycle controller are the same
2) When there is a loop controller under the thread group , When the parameter file is under the loop controller , Take a new value at each iteration under the cyclic controller
3) There is only one controller under the thread group , The parameter file is under the controller only once , When the parameter is taken once under the controller only once , After that, no matter which iteration, the parameter value remains unchanged , Be similar to unique once
Parameter reference
Use it directly ginseng Count name call , Such as { Parameter name }, Such as ginseng Count name call , Such as {P_002_search}
边栏推荐
- Cat installation and use
- 模板(三)
- asp.net 使用redis缓存
- uni-app学习总结
- 自定义密码输入框,无圆角
- LeetCode三数之和问题
- Innovus is stuck, prompting x error:
- Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
- a-table中的rowSelection清空问题
- Android implements the caching mechanism and caches multiple data types
猜你喜欢
随机推荐
注册模块用例编写
Ext4 file system opens dir_ After nlink feature, link_ Use link after count exceeds 65000_ Count=1 means the quantity is unknown
Malloc failed to allocate space and did not return null
微信小程序AvatarCropper 头像裁剪
v-premission添加权限
Windows通过命令备份数据库到本地
搜索模块用例编写
解决“NOTE: One or more layouts are missing the layout_width or layout_height attributes.”
WARNING: [pool www] server reached pm.max_children setting (5), consider raising it
2022 mobile crane driver test question simulation test question bank simulation test platform operation
arc-gis的基本使用2
附加到进程之后,断点显示“当前不会命中断点 还没有为该文档加载任何符号”
matlab simulink实现模糊pid对中央空调时延温度控制系统控制
Byte buffer stream & character stream explanation
The difference between thread join and object wait
【Mysql数据库】mysql基本操作集锦-看得会的基础(增删改查)
TableviewCell高度自适应
[Online deadlock analysis] by index_ Deadlock event caused by merge
Sliding window, double pointer, monotone queue, monotone stack
TabbarController的封装








