Skip to content

Instantly share code, notes, and snippets.

@umairshahid436
Created November 12, 2019 08:02
Show Gist options
  • Save umairshahid436/35b8c04135c414e2b5add967b27a259b to your computer and use it in GitHub Desktop.
Save umairshahid436/35b8c04135c414e2b5add967b27a259b to your computer and use it in GitHub Desktop.
var resp=pm.response.json()
if(resp.success){
pm.test("logged in successfully", function(){
pm.expect(resp.success).equal(true)
})
}
else{
pm.test("logged in failed",function(){
pm.expect(resp.success).equal(false)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment