Complete the code to assert the response time is less than 200 milliseconds.
pm.test('Response time is less than 200ms', function () { pm.expect(pm.response.responseTime).to.be.[1](200); });
The lessThan assertion checks that the response time is less than the given value.
Complete the code to assert the response time is at most 500 milliseconds.
pm.test('Response time is at most 500ms', function () { pm.expect(pm.response.responseTime).to.be.[1](500); });
The below assertion checks that the response time is less than the given value.
Fix the error in the assertion to correctly check response time is less than 300 milliseconds.
pm.test('Response time check', function () { pm.expect(pm.response.responseTime).to.be.[1](300); });
The correct Chai assertion method is lessThan to check if the value is less than 300.
Fill both blanks to assert response time is between 100 and 400 milliseconds.
pm.test('Response time is between 100 and 400ms', function () { pm.expect(pm.response.responseTime).to.be.[1](400); pm.expect(pm.response.responseTime).to.be.[2](100); });
Use below to check less than 400 and greaterThan to check more than 100.
Fill all three blanks to assert response time is less than 250ms, greater than 50ms, and not equal to 100ms.
pm.test('Complex response time assertions', function () { pm.expect(pm.response.responseTime).to.be.[1](250); pm.expect(pm.response.responseTime).to.be.[2](50); pm.expect(pm.response.responseTime).to.not.be.[3](100); });
Use lessThan for less than 250ms, greaterThan for more than 50ms, and equal with not.be to assert not equal to 100ms.