Include variable in pm.test

@Col Welcome to the community :partying_face:

You can try this way:

pm.test("Status code is 202 " + pm.environment.get("OUTPUT"), function () {

    pm.response.to.have.status(202);
});

Change the scope of the variable you have used, if its not environmental variable. Please let me know if you have any issues :slight_smile:

2 Likes