10/11/2023 0 Comments Postman newman png![]() Set GET as your HTTP request method and paste the following URL to the URL input field.Enter the name of the request, let's name this request "GET Pokemons".Once the collection is created you need to add a request to it so let's begin. Note: Further in this article PokeAPI will be used as an example. Great, the collection is created and now you can add requests. Enter the collection name and press Enter.Click the New button right from the name of chosen Workspace.Also, having a collection is helpful if you need to monitor requests, and it is easy to export and share them. Each collection can test different modules or related APIs. CollectionsĬollections are folders that help you organize your requests. Also, the name of the currently chosen Workspace is displayed under the Workspaces drop-down. This is a list of all of your Workspaces and from here you can edit and switch in-between them. If you click on the Workspaces drop-down again you will see your newly created Workspace in a list. Enter the name of the Workspace, Summary and choose whether this Workspace will be shared with your team, public or it will be personal (only for you).Click the Workspaces drop-down in the top left corner.Also, it is possible to invite people to join your workspace and in that way, you can collaborate with your teammates. One workspace could contain all the collections needed for one project. Workspaces act as working areas that help you organize your collections and requests. Here is a graphical representation of a single request flow: The code in both pre-request scripts and tests is written in JavaScript, but do not worry - it is really simple and easy to understand. The pre-request script is executed before request execution and tests are executed after the response. Postman has a really simple workflow that is repeated for every request. Make sure to read up on API - Basics before starting with this article. When you want to set up your test environment quickly.When something is not testable via the frontend app.When you want to check if the API is returning the appropriate data.When you want to verify the API abides by the spec.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |