How to extract viewstate and eventvalidation using regular expression parsing partial renders with JMeter ASP.net

蹲街弑〆低调 提交于 2019-12-24 20:59:06

问题


In my case, I am able to extract viewstate and eventvalidation from response, when the response is like:

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="UGflz/O67VPwTmNdi......"

by giving expression as:

name="__VIEWSTATE" id="__VIEWSTATE" value="(.+?)"

but what is the expression i need to use, when the response is like:

 |hiddenfield|__viewstate|koflrijcjafaygr......|

How can I extract this type of response.


回答1:


use "\" to escape | as

for example to extract viewstate value from

|hiddenfield|__viewstate|koflrijcjafaygr......|

You can use this regular expression __viewstate\|(.+?)\|

You can follow this blogs for such information



来源:https://stackoverflow.com/questions/50173376/how-to-extract-viewstate-and-eventvalidation-using-regular-expression-parsing-pa

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!