使用 JMETER 中的正则表达式从 HTML 响应中提取值? [英] Extracting value from HTML Responce using Regular expression in JMETER?
本文介绍了使用 JMETER 中的正则表达式从 HTML 响应中提取值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我从 Jmeter 收到这样的回复:
I am getting response from Jmeter like this:
<input type="hidden" id="queueItemId" name="queueItemId" value="3256"/>
<input type="hidden" id="queueItemId" name="queueItemId" value="3256"/>
我想从中获取值 3256 并将其存储在一个变量中.然后我可以使用这个变量进一步使用 ${variable}
.为此,我在采样器的范围内使用 RegularExpressionExtractor
.
I wanted to get value 3256 from this and store it in a variable. Then i can use this variable further use like ${variable}
.
For this i am using RegularExpressionExtractor
in scope of the Sampler.
请给我提取这个值的正则表达式.
Please give me the regular expression to extract this value.
推荐答案
尝试类似:
encounterId=([0-9]+)
并使用第 1 组作为结果.
and use group 1 as the result.
这篇关于使用 JMETER 中的正则表达式从 HTML 响应中提取值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文