You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am newbie to insomnia and previously used postman so trying to write test suite but unable to figure out how we can write multiple test without sending multiple request.
In postman, we can write multiple test as below
pm.test("status is healthy", function() {
pm.expect(responseJson).to.have.property("status");
})
pm.test("Verify response headers are present", () => {
pm.response.to.have.header("api-name");
});
if we do this with insomnia we need to write two test which will execute two request so wanted to check if we can use pm.test or similar alternative.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello
I am newbie to insomnia and previously used postman so trying to write test suite but unable to figure out how we can write multiple test without sending multiple request.
In postman, we can write multiple test as below
if we do this with insomnia we need to write two test which will execute two request so wanted to check if we can use pm.test or similar alternative.
Please advise ?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions