Re: Response from a particular URL

Dmitri T <[email protected]> Thu, 8 Feb 2024 11:11:36 +0100
Newsgroups gmane.comp.jakarta.jmeter.user
Message-ID <PH7PR12MB7139FA778D2D5C402D52455AC0442@PH7PR12MB7139.namprd12.prod.outlook.com>
Deepak Goel wrote:
> Hello
>
> I would like to record the response from a particular URL1 and then use it
> in URL2 in JMeter. Any idea how do I go about doing this?
>
> Deepak
> "The greatness of a nation can be judged by the way its animals are treated
> - Mahatma Gandhi"
>
> +91 73500 12833
> [email protected]
>
> LinkedIn: www.linkedin.com/in/deicool
> Upwork: https://www.upwork.com/freelancers/~0150257dd6dfd15b4b
>
> "Plant a Tree, Go Green"
>
> Make In India : http://www.makeinindia.com/home
>
Full response? You can save it into a JMeter Variable 
<https://jmeter.apache.org/usermanual/functions.html> by adding a 
Boundary Extractor 
<https://www.blazemeter.com/blog/jmeter-boundary-extractor> as a child 
of the request to the URL1 and provide desired variable name, i.e. 
*response*. Left and right boundaries can be left blank.

Then in 2nd request you can refer it as *${response}

*If you need some part of response - either provide left and right 
boundaries and JMeter will extract everything in-between or go for a 
more suitable Post-Processor. 
<https://jmeter.apache.org/usermanual/component_reference.html#postprocessors> 
In this case you will need to provide the relevant 
regular/XPath/JSONPath/whatever expression
**