Hey everyone
We are currently using Postman for our API tests, managing thousands of requests with tests running against them. Our collection is stored in our repository, and we use Newman to run the tests in our CI/CD pipeline: develop runs against staging and main runs against production.
We need advice on the best way to enable multiple engineers to work on the collection, allowing tests to be run in multiple environments and across different Git branches. We see two options:
-
Postman Licenses for Shared Workspace/Collections:
- Advantage: Allows many people to contribute to collections easily.
- Concern: Managing branches and different environments can be problematic. For example, tests created for staging may not run on production until later in the development cycle, potentially causing failing tests when the collection is run on production.
-
Manual Import and Export:
- Process: Engineers import the collection from their feature branch, add tests, and then export it back into the repository. The collection is then pushed up the branches (Feature > Develop > Main).
- Concern: When merging the Git branch into develop, it could potentially break the JSON file.
We donβt want to have a collection for each environment as we feel that would require a large amount of manual effort moving tests as they get pushed up the environments.
Are there any tools or strategies that can assist with this process? How have others managed large Postman collections effectively?
Thanks in advance for your insights!