Run and automate API tests in Postman

Testing is a critical part of the API development lifecycle. Postman provides a variety of ways you can run your API tests. After setting up your tests in Postman, you can run tests manually as needed, or you can automate your tests to save time and increase test coverage.

Here are the different ways you can run your API tests in Postman:

  • Run tests manually - To run a single test, open a request and send it. You can view the test results in the workbench. To run an entire test suite, use the Collection Runner. As the collection runs, Postman displays the test results in real time. Learn more at Run API tests manually in Postman.

  • Automate tests on a schedule - You can run test suites automatically on a schedule using the Collection Runner. Get notifications when tests fail, and view test results in Postman. Learn more at Run API tests on a schedule in Postman.

  • Run tests in your CI/CD pipeline - You can run tests as part of your regular application build process using the Postman CLI. Execute your test suites after every code push and view test reports in Postman. Learn more at Run API tests in your CI/CD pipeline using Postman.

You can also run tests with Postman Monitors. This is useful if you want to add test logic to a monitor to ensure your APIs are working as expected in a production environment. Learn more at Run API tests using Postman Monitors.

Last modified: 2024/05/01