Quantcast
Channel: OR Condition in Postman assertion - Stack Overflow
Viewing all articles
Browse latest Browse all 2

OR Condition in Postman assertion

$
0
0

Hi I have the following assertion in postman but it is failing

pm.test("Body matches string", function() {    pm.expect(pm.response.text()).to.include('Success')         || pm.expect(pm.response.text()).to.include('Request already submitted');});

My Response contains text success or Request already submitted. Please help.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images