In my current project the application passes an authentication token id after login. So, I have used below.

Regular Expression Extractor. to extract the token id from Response Data and i applied the token in Http Header Manager.under Authorization After executing i am getting response like ."Filed to authenticate token". Further, I have also used CSV file config for passing dynamic values.

I don't know what i am missing. Could anyone help me on this??

  • try using json responce extractor Commented Jan 9, 2018 at 12:42
  • 1
    Did you check (with something like a Debug Sampler or jp@gc - Dummy Sampler) if you extract the token correctly?
    – Camarde
    Commented Jan 9, 2018 at 12:49

1 Answer 1


First of all check your ${token} variable value using Debug Sampler and View Results Tree listener combination (see How to Debug your Apache JMeter Script guide for details on how to do this).

It might be the case your regular expression extractor fails to fetch the token due to i.e. extra space.

Another assumption is that you need to add Authentication Scheme identifier before the ${token} like:

Authorization: Basic ${token}


Authorization: Bearer ${token}

Check out what is being sent by the real browser and JMeter, the requests must be identical (apart from dynamic values)

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