Hey @babalisingh90
Welcome to the community!
Would you be able to share the full code snippet of what you have in place / what you’re tried so far please?
If you just wanted something quick that would stop the script execution for a certain condition, you could something like this:
if (pm.response.code !== 200) {
return
}
pm.test("test", () => {
pm.expect(1).to.equal(1)
})
So if the response code in not 200, it will stop the execution of the test below it. This is just a basic and very simple example and doesn’t account for any context based information.