So far in this chapter, we have talked about using Postman locally to test the APIs that we develop or consume. But, what is important in unit, acceptance, and integration tests is that they are automated in order that they are able to be executed within a CI/CD pipeline.
Postman, as such, is a graphical tool that does not automate itself, but there is another tool called Newman that automates tests that are written in Postman.
Newman is a free command-line tool that has the great advantage of automating tests that are already written in Postman. It allows us to integrate API test execution into CI/CD scripts or processes.
In addition, it offers the possibility of generating the results of the tests of reports of different formats (HTML, JUnit, and JSON).
Nevertheless, Newman does not allow us to do the following:
- To create or configure Postman...