Anonymous
Anonymous

Reputation: 888

JMeter: How to know why my regular expression extractor in JMeter is not extracting the data

I would like to know why regular expression extractor in JMeter is not extracting the data after parameterization. Response message: Internal Server Error

Expression added are:

  1. name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="(.+?)"

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

POST data:
__VIEWSTATE=%24%7BviewState%7D&__EVENTVALIDATION=%24%7BeventValidation%7D&txtUserID=1001201&txtPWD=CFL&BtnSubmit=Submit&hdnE=5&hdnN=323&hdnD=173

Upvotes: 1

Views: 1231

Answers (1)

UBIK LOAD PACK
UBIK LOAD PACK

Reputation: 34566

Your regexp is probably wrong.

To debug it, run your test then use View Results Tree and select Regexp Tester:

enter image description here

You can then test your regexps and see what happens.

As I don't have the response content that contains the 2 tokens, I can only guess that regexp should be :

Upvotes: 2

Related Questions