jeudi 18 février 2016

I have to test a rest service in Soap UI for and which i need to do a property transfer from a testcase response to a request in different testcase

JsonResponse in the first testcase is as follows:

     '{
         "items":[{
         "id": "1234",
         "state": "XYZ",
         "type" : "ABCD"
     },
     {
         "id": "12345",
         "state": "XYZV",
         "type" : "ABCDF"
     }
  ]}'

The id(just one) from the response has to be directed to the Json request of the second testcase via property transfer

    '{
         workItemsId: ["1234"],
        field: "ABCD"
    }'

i have tried using items[0].id but that transfer only the value. I need it as an array in the response. Any help would be deeply appreciated. I am so new to SOAP-UI.

Aucun commentaire:

Enregistrer un commentaire