jmeter参数化
1.用户参数

响应断言,断言也要记得变量替换
添加变量

添加用户变量值到http请求中

选中http请求,再点击运行

同请求发送的参数已经生效

2.CSV数据配置
先要有设置好的文件参数

然后在文件选项器下添加配置元件---->CSV data set config

filename:参数项文件
file encoding:文件的编译方法,一般为空
vaiable names:文件中各列所表示的参数项;各参数想之间利用逗号分隔;参数项的名称应该与http request中的参数项一致
delimiter:如文件中使用的是逗号分隔,则填写逗号;如使用的是TAB,则填写\t:
recycle on EOF?:true=当读取文件到结尾时,再重头读取文件,false=当读取文件到结尾时,停止读取文件
stop thread on EOF?:当Recycle on EOF?-项为false时起效;ture=读取文件到结尾时,停止进程

在http请求中添加参数

在线程组中设置循环4次,然后点击运行

运行成功

3,随机参数化

选择_Random,输入参数值,然后点击生成函数字符串

将生成的函数放入http请求的参数值中,然后点击运行

然后查看结果树
