Quantcast
Channel: How to Compare Response with value in postman Test cases - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Suichi for How to Compare Response with value in postman Test cases

In the test section you can use the assert nodeJS module: var assert = require('assert');pm.test("The default ID > 10", function () { assert(jsonData.default_project_id > 10);});keep in mind that...

View Article



How to Compare Response with value in postman Test cases

I have made a get request in postman which will return some response. I would like to compare that response has the value > 0 in test cases. My current code is pm.test("Your test name", function ()...

View Article
Browsing all 2 articles
Browse latest View live


Latest Images