Hello,
I am sending the following request for the Skills Check:
var jsonData = JSON.parse(responseBody);
pm.test(‘Skills Check’, function () {
pm.environment.set(‘responseData’, jsonData.rand);
console.log(jsonData.rand)
})
I have also set the following Pre-Req script:
if(!pm.collectionVariables.get(“ResponseBody”)) pm.collectionVariables.set(“responseData”);
The test is passing but I am getting 400 error code.
Please could somebody point me in the right direction on how to resolve this? Any help with this will be very much appreciated.
Thanks,
Dan