New to JMeter. Running into an issue; every tutorial, video and questions surrounding it haven't seemed to point me in the right direction yet. Hoping to find some help to get over this hump.

Trying to build a test plan to be used for load testing. The site uses dynamically generated URLs and I'm having trouble getting these URLs used in the requests.

After login we encounter the first dynamically generated URL. I've inserted a Regular Expression Post Processor on the thread.

Apply to: Main sample and sub-samples
Field to check: Response Message
Reference Name: baseURL
Regular Expression: V.baseURL = "(.+?)"
Template: $1$

When I test the expression in RegExp Tester I'm receiving results:

Match count: 1

    Match[1][0]=V.baseURL = "/site_name/servlet/site_nameb/action/Dispatcher/nocacheid/1463414114154/hsid/b316686f3e47f40e3f2abfc5ee3d4e5e"  

In the subsequent thread HTTP Request I've entered the variable ${baseURL} in Path

When I run the test plan I'm getting a syntax exception b/c it's not resolving the variable. The Path is using ${baseURL} in place of the returned value from the Regular Expression.

1 Answer 1


Here is the problem:

Field to check: Response Message

Response Message for successful request will be just OK

Response Message

Change "Field to Check" to Body and it should start working as expected.


  • Thanks @dmitri-t - Body (unescaped) was the ticket punch for my situation. I was focused on Response data. Thanks for the help.
    – Jon Foley
    Commented May 16, 2016 at 18:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.