user3511026
user3511026

Reputation: 159

How to extract a value from the request in jmeter

GET https://test.dnrhosted.com/profile/user?userid=66

I need this value 66 to pass across the script.

Anyone ,kindly tell me how to extract this value in jmeter..

refer the screen for more info

Upvotes: 0

Views: 342

Answers (1)

Dmitri T
Dmitri T

Reputation: 168217

This is not a Header, it is an URL

You can extract the value as follows:

  1. Add Regular Expression Extractor as a child of the HTTP Request sampler which has or is redirected to this URL
  2. Configure it as follows:

    enter image description here

  3. That's it, you should be able to access the extracted value as ${userid} where required:

    enter image description here

More information:

Upvotes: 1

Related Questions