![]() App information (please complete the following information): Native App 7.2.2 OS: Ubuntu 16.04 Additional context. The display name is shown in user interface pages such as the Console. The response body displayed in the postman console should be displayed in the response body section of the app. Since the double-brace syntax is not valid JavaScript, we use the pm.variables.get() function to access the id variable.įinally, let’s save the changes as we’ve done before. Take advantage of our Cloudinary Postman Collections to experiment with our REST. Pm.expect(pm.response.json().id).to.equal(pm.variables.get("id")) ) Pm.expect(pm.response.json().name).to.equal("Transformers")) ![]() We can use the id variable to do that: pm.test("success status", () => pm.response.to.be.success ) Secondly, we know which id to expect this time, so let’s verify that id. Because the tests are similar, we can copy the tests from the POST request, then make a few changes.įirstly, we don’t need to set the id variable again, so let’s not copy that line. Since there’s no body for a GET request, let’s proceed directly to the Tests tab. Variables, when appearing outside of scripts, are referenced using the double-brace syntax. To open the Postman console, head to View in the application menu, and click on Show Postman Console or use the keyboard shortcut (CMD/CTRL + ALT +. App to manage Google Cloud services from your mobile device. When using HTTPS connections, Postman may show the error above. Thus, the GET request should retrieve the same instance that was created by the POST. Web-based interface for managing and monitoring cloud apps. Postman Console will provide debug information about the proxy server. ![]() In this URL, we’re referencing the id variable that we previously set during the POST request.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |