Solution: Testing APIs
Explore how to create and run API tests using Postman by building collections for both expected success and failure cases. Understand test scripting, executing requests, and leveraging tools like Newman for enhanced API test automation.
For this challenge, the task was to create a Postman test collection for the Credit-Check API project and write two tests: a happy-path test for the home resource (http://localhost:8181/) and a sad-path test for the form resource (http://localhost:8181/form/).
Create the “Credit-Check” collection in Postman
First, we need to create a new test collection in Postman. Let’s name it ...