Last updated on July 30th, 2019 at 07:22 am
We have already seen Creating a collection and storing requests in it.
Let’s perform below steps:-
- Create a Collection.
- Create a request.
- Hit the request and proper response should come.
- Save the request in created collection.
- Close all tabs in request builder.
- Open request from collection.
Observe that “Response” was not saved. By default a Collection saves request only. No Response.
We can save response of request in collection. Once you hit the request, you will see “Save” button. Remember it will be available only if you hit a request in a collection. For normal request, you won’t see that option.
Give name to response and click on “Save Example” button.
Now open the request. You will see a link as “Examples<CountOfSavedExamples>”. Click on it and you can see your saved example.
You can delete, modify or add examples.
More about API Testing in upcoming posts. Stay tuned.
If you have any doubt, feel free to comment below.
If you like my posts, please like, comment, share and subscribe.