I am a novice to both javascript and Postman I have written a conditional class for test execution of tests but it’s not giving expected results. Can some help me here
pm.test("Check the status code",function(){
if(pm.response.status !== 200)
{
postman.setNextRequest("GetItem")
}
else
{
console.log("Check authentication")
}
});