Taking parameters from request to use in the next requests

I’m trying to do some basic load testing of a simple rest api. The REST api is three parts:

  • GET - list of all items
  • POST - create an item
  • DELETE - delete an item

After creating some data, i want to do a get followed by a series of deletes. the GET returns data in JSON format. Is there a way I can extract the JSON results and call the deletes repeatedly based on the bodies present?

If you are expecting JSON body, take advantage with JsonPath

http://goessner.net/articles/JsonPath/