你能告诉我如何循环返回多个值的
Regex Post Processor的结果吗?
例:
JSON响应消息:
{ "reply": { "code": "111","status": "SUCCESS","customerID": [ "222-a","b-333","44-4","s-555","666","777","88-8" ] } }
links_1=222-a links_2=b-333
我可以使用some.url / ${links_1}.
这正是我想要实现的目标,但这似乎不起作用.
你能帮我么?
使用计数器循环通过Regex提取的单个变量,并将每个变量附加到另一个HTTP请求采样器中:
WhileController(${__javaScript(${C} < ${links_matchNr})}) HTTPSampler use ${__V(links_${C})} Counter (start=1,increment=1,maximum=${links_matchNr},referenceName=C)