I have a response with the following format
{
"records": [
{
"timeStamp": "xxxxxx",
"spaceName": "xxxxxxx",
"spaceId": "xxxxxx",
"type": "xxxxx",
"message": "xxxxx",
"user": "xxxxx"
},
I want to extract a list of the users to use in another get request.
In my Tests script, I’ve got the following
let responseData=pm.response.json();
console.log(responseData);
pm.environment.set("user", responseData.records[0].user);
However when I hit send and run the request, i’m not getting any output in my ‘Test Results’ however it isn’t throwing an error either, any ideas?