Testing is a critical part of the API development process. You can create a collection that has your API tests and link it to your API. You can also integrate your API with supported continuous integration (CI) tools.
API testing using the API Builder is available on Postman team plans. If you are on a Free individual plan, create a new team to run and automate tests from the API Builder. Learn more about what's included with each plan.
Want to take your API testing further? Learn more about essential API testing techniques, adding test logic with scripts, and more at Test APIs and write scripts in Postman.
You can connect a test collection (a collection containing API tests) to an API you've defined in the Postman API Builder.
To add a test collection to an API, do the following:
Select APIs in the sidebar and select an API.
Select Test and Automation.
Next to Collections, select + and select an option:
For more information on how to write API tests, see Use scripts to add logic and tests to Postman requests.
After adding a test collection, you can run the collection to test your API and view test results.
To run a test collection for an API, do the following:
To remove a test collection from an API, select the delete icon next to the collection.
Postman integrates with some of the most widely used continuous integration and continuous delivery (CI/CD) tools. After you set up CI integration for your API, you can view the status of builds or start a new build, all from within Postman. You can also run API tests created in Postman as part of your CI pipeline.
To set up a CI integration for an API, do the following:
To learn more about how CI integrations work, and for detailed configuration steps, see CI integrations.
Last modified: 2024/07/09
Additional resources
Videos
Blog posts
Public workspaces