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

How to Compare Response with value in postman Test cases

$
0
0

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 () {    var jsonData = pm.response.json();    pm.expect(jsonData.default_project_id) > 10  });

Thanks in advance


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images