0
votes

I am stuck in jmeter. I want an value extracted from the Response body and use that in the next request url path in jmeter. I tried using "Regular expressions" but it is not working. Response body SS

From "Response body SS" i want to extract the locationID value(341735)

Request URL PATH

Use the extracted value in the url path at highlighted section. Any help would be appreciated.

1

1 Answers

0
votes
  1. Add XPath Extractor as a child of the request which returns this "Response body SS"
  2. Configure it as follows:

    • Name of created variable: anything meaningful, i.e. locationID
    • XPath query: /response/locationID
    • Match No: 1

      enter image description here

  3. That's it, the XPath Extractor will get the value and you will be able to use it as ${locationID} where required

    enter image description here

More information: