Debug output in tests
Reference for the people who just want to use Chrome’s Developer Tools (which will let you see console output and give you many more features)
To enable it
- Type
chrome://flags
inside your Chrome URL window - Search for "Debugging for packed apps" setting
- Enable the setting
- Restart Chrome
You can access the Developer Tools window by right clicking anywhere inside Postman and selecting "inspect element".
You can also go to
chrome://inspect/#apps
and then click "inspect"
Reference
Just make a fake test that passes:
var jsonData = JSON.parse(responseBody);
tests["id = " + jsonData.id] = true; // debug message
tests["name = " + jsonData.name] = true; // debug message