I'd like to prefix this question with the fact that i'm a novice when it comes to Jmeter and Regex.
I have created a test plan for an ASP .Net application, which consists of a GET request, with a Regular expression extractor to grab a token, then a POST request, with a RegEx User Parameter to take the extracted token and use it in the request:
In the get request's respnse, there is a value of __RequestVerificationToken, which i am capturing with the following Regex (tested in tree Listner and is Validated):
So, it looks for "__RequestVerificationToken=" then gets the 108 characters after it.
Regular expression extractor:
Parameters in POST Request:
The RegEx user parameter i'm using is:
But when i run the test, the request post data returns:
I've used https://www.regextester.com/ for testing my RegEx and it correctly gets the token, so i'm wondering if JMeter just doesn't accept this?
Note: apologies for using images rather than text, i couldn't think of a good way to show the data.