1

I'm attempting to use the regex extractor to parse the VIEWSTATE and EVENTVALIDATION variables. This works quite well for simple GET requests, however, there are some forms that use ajax postbacks and as a result return partial renders

The issue is the formatting of the VIEWSTATE and EVENTVALIDATION in these renders:

       |hiddenField|__VIEWSTATE|/wEPDwUKMT..... long string continues here

       |hiddenField|__EVENTVALIDATION|/wEdAEj... long string 

How can I modify my regex extractor to fit this format?

aurinko
  • 35
  • 4

1 Answers1

0

I would suggest switching from regex extractor to one of below:

  1. XPath Extractor
  2. CSS/JQuery Extractor

Both of them are not so fragile as Regular Expression Extractor and designed to work with HTML. Using Regular Expressions to parse HTML isn't a very good option as it evidenced by Stackoverflow epic thread so consider switching to XPath/CSS approach.

See ASP.NET Login Testing with JMeter guide for more details.

Community
  • 1
  • 1
Dmitri T
  • 159,985
  • 5
  • 83
  • 133