在JMeter中使用HTTP请求发送动态参数值

时间:2019-06-03 23:48:59

标签: json jmeter

我知道在Jmeter中通过JMeter传递动态值的相关性,我通常为其创建Regex表达式/ CSS选择器提取器并将值传递为$ {variable_name}。这很好。现在最近我想出了一个方案,其中我必须传递的价值如下所示-

{"path":"Test123","sortExpression":"","startIndex":0,"maxRowNumber":10,"filterKeyWord":""}

我创建了一个CSS选择器提取器并获取值,但是当我这样传递时,它无法识别并失败。如何传递此值?

{"path":${createFolder},"sortExpression":"","startIndex":0,"maxRowNumber":10,"filterKeyWord":""}

enter image description here

1 个答案:

答案 0 :(得分:0)

别忘了在JSON中用双引号括住字符串值

 {"path":"${createFolder}","sortExpression":"","startIndex":0,