Select the Run Collection button, and you are ready to go. Then the next confirmation window will pop up. The RUN button will appear once you hit the arrow on the collection. Then select the right arrow on the right side of the collection name, and you should be able to see the RUN button. Now, you may open the collection folder to see what are the requests inside it. Now, navigate to the collection tab and select the collection you want to run. This is done just to arrange things in a proper way. Now, create a new folder named GET, inside the Collection - Collection01, and drag and drop the two create requests- GET Response and GET_user_list into the build folder. Now, navigate to the NEW button in the POSTMAN again to open the dialog box and select Request. Now, as seen above, the response from the server is received successfully. Now paste the same URL, into the URL bar of a new tab in your browser and check whether you get the response as below: And so the URL is copied along with the Request end-point of the Request - /api/users?page=2, as shown in the picture. And search for a different API Request.Īs you can see, this time we have selected the LIST USERS. To add more API Requests, we shall navigate the website(as we did earlier). Now, before we start to run the collection, we shall try to add some more requests inside the collection, so that, we can get a more comprehensive view of how a collection is run. To run the collection, we shall take the example of our earlier collection - Collection01, and the API request inside it. Then click on the create button to create the folder. Once the Add Folder option is selected, you will be navigated to a pop-up window to enter the folder name. Select the option called- Add Folder to create a folder. To create folders inside the collection, right-click on the collection name and a dropdown menu will appear for the collection. Now click on the Create Collection Button to generate the collection. In the Collection window, there are different tabs such as the- Description, Authorization, Pre-request Scripts, Tests, and Variables. In my case, the name for my Collection is Collection02. Here, you can create your collection, by merely entering the collection name. Īs shown above, select the Collection and the collection window will open. To create a collection, open the dialog box by clicking the New button and select Collections.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |