Search code examples
postmanpostman-testcase

Validate response in Postman test script


I am inserting data in postman. I want to apply validation from post method in test script. I am new to postman, I am not able to understand.

Here is the JSON.

{
  "firstname": "pradeep",
  "lastname": "tiwari",
  "mobile_no": 9911844349,
  "email": "[email protected]",
  "user_type": 4,
  "password": "pradeep1",
  "confirmPassword":"pradeep1",
  "dob":"nanana",
  "u_org":25,
  "isfoundingpartner":"undifine",
  "gender":1
}

Solution

  • You can use built in snippets for starters to validate your basic response messages. https://learning.getpostman.com/docs/postman/scripts/test_examples/