Testing with Postman
For every service and product we develop, a Test suite needs to be setup in our team workspace in Postman.
Testing first
While developing endpoints it is important to start directly with writing tests to be sure your development matches specifications. This ensures also that changes will not break up the requirements.
Workflow testing
With Postman it is possible to test complete workflows where multiple endpoints are consumed. Via the Postman CLI it is possible to integrate these tests in deployment pipelines.
The advantage of these extended tests is that also transaction rules can be tested.
By filling a collection variable with a unique guid before running a test it is possible to use a unique reference through all tests of the run. The next run a new value will be used.
Helper endpoints for testing
It could be usefull to add some extra endpoints to your service for testing. A common use case is deleting all previous test data from the database.