How to prepare POST data from a previous HTTP response?

200 views Asked by At

I've used Fiddler to capture these HTTP calls. Here's the problem:

I have a HTTP-POST data that looks like below:

enter image description here

Notice how it has many 'employeeIds' and also 'shiftSumIds'.

Now, these Ids are from a previous HTTP response that looks like below:

enter image description here

Is there an easy way to extract those Ids and prepare the POST data? Thanks in advance.

--Ishti

1

There are 1 answers

3
Dmitri T On BEST ANSWER

Short answer is JSON Path Extractor available via JMeter Plugins which is designed for getting "interesting" values from JSON data. See Using the XPath Extractor in JMeter guide (look for "Parsing JSON" chapter) for installation instructions and some form of JSON Path language reference.

If it is not enough and you will need some assistance in constructing JSON Path query and building HTTP Request from it - please include text version of response and request using i.e. http://paste.org service as reading large amount of text from small screenshot isn't very handy and chance of getting the answer is minimal