How can I auto-generate test cases from a Postman collection?

Hey @siteloren :waving_hand:

Welcome to the Postman Community! :postman:

There are a few options in the platform that would allow you to auto-generate tests, based on the requests you have in the Collection. Postbot being the main option, there are several entry points in the platform and a number of different ways that tests can be created.

We recently highlighted some of these new ways in our monthly postman-drop - The latest being creating tests using Postbot inline, on the response section.

More information about Postbot can be found here:


You can also use the Generate tests option in the Collection actions menu:

This option will use Postbot to run your requests and they generate a set of tests based on the response details.


As much as we provide that automatic methods to create tests, it will always take a human to know if those tests are actually providing the value that you want.

  • Are they the correct tests for your context?
  • Are they too static and not testing your business logic or workflows?
  • Are they going to fail when the item’s that are important to you, start showing unexpected results?