Postman is an API Development Environment that helps people to build, test, document, monitor and publish documentation for their APIs.
Postman is used by 6 million developers and more than 200,000 companies to access 130 million APIs every month. API testing is likely to grow further in 2019 so knowing how to use Postman effectively will be a powerful asset.
Imgur & HarperDB published their API documentation using postman.
Testing APIs is often slow, error-prone and annoying. Instead of manually checking an endpoint’s response, we can write integration tests with Postman to examine and validate the response. We also want to automate running these tests with our deployment process. One approach you can take is to have your integration tests run every time a developer checks in code to your repo.
Rapid feedback!
Automate your QA and Testing processes! While this is in the right direction, this doesn’t fool proof. This adds another layer of quality control but we need to ensure our tests are thorough and up to date.
The idea is to ensure existing functionality still works as expected when we add new features to our API. Having this process automated, will identify unexpected issues early in the development life cycle and will help the developers evaluate their code.
Newman is Postman’s collection runner engine that sends API requests, receives the response and then runs your test against the response. It is extensible and so can be integrated into continuous integration servers and build systems.
Postman’s Collection Runner lets you run all the requests inside a collection locally in the Postman app. It also generates reports so that you can measure the performance of your tests.
Two main types of variables – global and environment. Global variables are for all Collections, whereas the environment variables are defined for a specific set of collections
Click on Manage Environment Setting & You can create a new environment
Click on Manage Environment Setting -> Click on Global Button & You can create a new global variable.
Postman allows users to perform specific JavaScript coding to manipulate the data being sent along with the request. We can write these scripts in Tests section and prerequisite section. We can set Global and Environment Variable dynamically as well.
postman.setGlobalVariable(“Token”, “xyzToken”); postman.setEnvironmentVariable(“Username”, “myUserName”); postman.getGlobalVariable(“Username”);
Postman Console is analogous to a browser’s developer console, except that it’s tuned for API development. If an API or API test is not behaving as you expect, this would be the place where you will go to deep dive while debugging.
API documentation
Postman’s API Documentation feature lets you view private API documentation or share public API documentation in a beautifully formatted web page.
Documentation for your API includes:
Finally click ellipses (…) in the sidebar and select ‘Publish Docs’, as illustrated below:
Please feel free to reach out if you have any questions. In case you need any help with development, installation, integration, up-gradation and customization of your Business Solutions. We have expertise in Enterprise Application Development Solutions. Connect with us for more information. [email protected]
USA408 365 4638
1301 Shoreway Road, Suite 160,
Belmont, CA 94002
Whether you are a large enterprise looking to augment your teams with experts resources or an SME looking to scale your business or a startup looking to build something.
We are your digital growth partner.
Tel:
+1 408 365 4638
Support:
+1 (408) 512 1812
COMMENTS ()
Tweet