Jmeter正则表达式提取器提取输入值 [英] Jmeter Regular Expression Extractor to extract an input value

查看:311
本文介绍了Jmeter正则表达式提取器提取输入值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Jmeter正则表达式提取器的新手.对于HTTP请求,我得到了HTML响应.我想提取一个电子邮件地址,该电子邮件地址是该响应中的隐藏值,供以后的请求中使用.

I am new to Jmeter's Regular Expression Extractor. For an HTTP Request, I am getting an HTML Response. I want to extract an e-mail address which is a hidden value in that response for use in the subsequent request.

字符串是:

<input type="hidden" name="login" id="login" value="abs12.test@test.com" >

我该怎么做?

推荐答案

您可能还想更有效地 XPath提取器,使用的方法与RegEx提取器相同. XPath查询将如下所示:

You may also maybe like more effective XPath Extractor, used the same way as RegEx Extractor. XPath query will look like:

//input[@type='hidden'][@name='login']/@value

和提取器本身:

这篇关于Jmeter正则表达式提取器提取输入值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆