I am calling 2 different endpoints in my jmeter test.
The first endpoint should provide me with a single number (for instance 568959) in its response body and then I must pass it to my second endpoint.
Here is the response of my first endpoint:
please notice the response contains a single number, and it is not a json response as you see in image.
and then I used a Regular Expression Extractor to extract this number from the body using a variable called newsId and regular expression as (.*) as below:
But, when I run my second request, I noticed it is sending an empty ${newsId} such as:
https://www.example.com/blabla/rest/news//publish
Source: Read More