0
votes

View Results tree is showing green 302 and saying there is a response, but jmeter isn't displaying it. I don't have follow redirects or save response as MD5 hash enabled. I've followed another example of a basic query and that seems to be working, so I'm guessing there is something potentially wrong with my query.

enter image description here

{"query":"lookup(lookupId:""TH53158""){data}"}

I've read that the escape key for quotes in jmeter is "" for queries, but haven't seen any other examples of it. How can I fix up jmeter to get a good json response?

1

1 Answers

0
votes

What method? GET or POST?

  1. In case of GET you need to pass your request using query URL parameter like:

    enter image description here

  2. In case of POST you need to pass your request using "Body Data" tab of the HTTP Request sampler

    enter image description here

    in addition you will need to add a HTTP Header Manager to send the relevant Content-Type header:

    enter image description here

More information: GraphQL - Serving over HTTP