Search code examples
postmanpostman-collection-runnerpostman-testcase

How to have multi-flow for automated testing in postman?


As mentioned in the title, How to have multi-flow for automated testing in postman?

For example, I have these end-points:

  • Create a user
  • Delete a user
  • Create a post (needs a user)

I need automated tests like:

  • Flow 1: Create a user > Delete a user
  • Flow 2: Create a user > Create a post (needs a user)

I mean that I need to run multi test-flow.


Solution

  • Try to add one folder for one use case, Each use case might have multiple testcases, create subfolders accordingly

    enter image description here

    Do not worry about duplicate request created in the subfolders, each testcases(folder/subfolder) should be independent. so that we can execute folders independently

    like,

    enter image description here