I have a Json collection for generate token(post) -> Create New Item (Post) ->Get(itemid)
Already running via newman with html report. the need is to save the body in CSV file for (Create New Item)
I need to create 50 new items and save all those newly-generated items in CSV file? Can some one tell me how to do capture two values itemGeneratedBy and
itemNumber from json Response and save it in csv?
@danny-dainton
1 . How can i use only the Body of one request for 20 iteration? That is for 2nd (Create Item)
2. Can i extract itemid and itemGeneratedby from responsebody of 2nd request and save it in csv report ?
let itemOne = "<location of value in the response>",
itemTwo = "<location of value in the response>";
console.log(`\n${itemTwo},${itemOne}`)
This will save the console statements to a csv file, it has multiple limitations and you could do the same thing to get the dat via the request event and narrow it down to just a specific request but this was a quick hack
Likewise I B’cally have jenkins Ci machine that run my newman collection, and need is to save the Itemid from of response into csv. hope this works ? and have installed npm C:\mymachine\myname\AppData\Roaming\npm
I was looking for ways to extract this type of responses (in csv file) when running a collection. Do you mind if I ask how you do this?
I am new to postman and to API Testing world, I would greatly appreciate your help.