Jmeter 提取唯一参数响应
Jmeter Extracting unique parameters response
我只想提取版本参数,但如果找到我 multiple/duplicate 值示例 2-327RC212
,它将 return 我一次,然后继续移动。
那你想要什么?提取没有重复的值?如果是 - 您将需要切换到 JSR223 PostProcessor and write your extraction logic in Groovy.
您可以在 JMeter 变量中使用 JsonSlurper class to fetch the values and store them into a HashSet, then add each value from the HashSet。
演示:
我只想提取版本参数,但如果找到我 multiple/duplicate 值示例 2-327RC212
,它将 return 我一次,然后继续移动。
那你想要什么?提取没有重复的值?如果是 - 您将需要切换到 JSR223 PostProcessor and write your extraction logic in Groovy.
您可以在 JMeter 变量中使用 JsonSlurper class to fetch the values and store them into a HashSet, then add each value from the HashSet。
演示: