通过JMeter regexp解析HTML [英] Parsing HTML via JMeter regexp
本文介绍了通过JMeter regexp解析HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在JMeter中使用正则表达式时遇到了一些麻烦。
我在HTML中有这个表格
I have some trouble with a regex in JMeter. I have this form in HTML
<form class="UIForm" id="UIComposer" action="/portal/intranet/?portal:componentId=b5914710-6c12-4fa9-9a18-2707d97111b7&interactionstate=JBPNS_rO0ABXcmAAt1aWNvbXBvbmVudAAAAAEAClVJQ29tcG9zZXIAB19fRU9GX18*&portal:type=action" onsubmit="return false;" method="post">
我需要获取 componentId
interactionstate 作为变量。
and I need to get the values of componentId
and interactionstate
in JMeter, as variables.
推荐答案
使用< a href =http://jmeter.apache.org/usermanual/component_reference.html#XPath_Extractor =nofollow> XPath Extractor 。
如果必须使用正则表达式,只需搜索正则表达式标记解析。
If you must use a regex, just search for regex tag parsing.
这篇关于通过JMeter regexp解析HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文