Am newly trying postman test scripts for testing the API.
One thing which i am finding challenging is the expected and actual test result when a test fails. 
How should I achieve it.
I tried with console.log but it wont print if the test case failed.
How to achieve a more generic solution with a single function for all the tests.

```
pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
    console.log("TestCase: Status Code should be 200"+", 
        Expected: "+"Response code should be 200"+", Actual: "+pm.response.code);
});

```