Postman Collections
Import and Export Collections
We can also export the existing collection into our system. Click on the three-dot on the collection, and then click on “Export”.
To import the collection into the postman, Click on the “Import” option on the left top corner. Click on “Upload files”. Once the file is selected, click on the Import option.
Tests for the requests
We can also write our own test cases or take the snippet code from the “Tests” area which will give the results for the requests, it got passed or failed.
- Click on the “Tests” section and check the snippets.
- Click on any of the test cases from snippets that we want to check. After clicking on the snippet, code will automatically get reflected in the Test area.
- Now send or run any of the requests and check the “Test Results”
Collection runner
We can run all requests together at once, present in the collection. Click on the Arrow button on the collection, there is an option to “Run” the collection.
After clicking on the run button, the user will navigate to the new window where all the requests and other details are visible. We will get the option to run the collection.
Once the collection is executed, we will get the Test Results page the same as below.