我有一个像波纹管一样的样本请求
{
"schema": "urn:com.xyx9723.syodhnc:bulk.v1",
"version": "7-06-26201",
"msg": [
{
"topic": "tags/kdhud/${ID}/sadknnf",
"ids": [
{
"_time": "2107-09-09 13:13:12",
"id": "TID-2153656--00089312121"
},
{
"_time": "2107-09-09 13:13:12",
"id": "TID-2153656-00089312122"
},
{
"_time": "2107-09-09 13:13:12",
"id": "TID-2153656-00089312123"
},
{
"_time": "2107-09-09 13:13:12",
"id": "TID-2153656-00089312124"
}
]
}
]
}
当谈到真正的测试时,我必须发送带有100 IDS的请求,其增量值如(TID-2153656--00089312121,TID-2153656--00089312122,TID-2153656--00089312123 ......等)
如何在JMeter中发送请求时在请求中提供增量值。
答案 0 :(得分:3)
初始化somewhere变量id,然后在请求中多次使用它,它会随着每次发生而增加值:
${__intSum(${id},1,id)}
答案 1 :(得分:0)