Hello,
I would like to see some of my response body values in test result. Example response:
{
"Id": 10861,
"Name": "RC_API_45",
"TypeId": 1
}
I can parse ID in Tests tab:
var jsonData = JSON.parse(responseBody);
pm.environment.set("CustomerId", jsonData["Id"]);
Now I`d like to use that value in Test Results log, I already have confirmation of the status code:
pm.test("Status code is 200", function () {
pm.response.to.have.status(200);
});
And below that I`d like to have sth like this:
“Customer ID is ____”
How can I make just extracted variable to be visible in TestsResults?