Rajul
Rajul

Reputation: 71

Unable to pass json value in jmeter POST request

I have 2 http requests that return different json responses. Used the JSON Path PostProcessor to retrieve the values (Value A and Value B) from the 2 json responses. When i tried to pass the values A and B in the request body of another http request, only value B is passed. http://screencast.com/t/Y3e9pZe2om5 http://screencast.com/t/TfUwM2kKqE

Upvotes: 0

Views: 441

Answers (2)

Rajul
Rajul

Reputation: 71

Thank you ppl. Moving the Json Path PostProcessor inside the http sampler request solved the issue.

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168002

If you're trying to build a composite variable like:

  • you have ${A} variable with the value of foo
  • you have ${B} variable with the value of bar
  • you need to build ${AB} variable

This can be done using __V() function like:

${__V(A${B})}

See Here’s What to Do to Combine Multiple JMeter Variables article for more detailed information

Upvotes: 1

Related Questions