My question: After onboarding Postman with Newman our collection has grown considerably. We have places where we have to duplicate setup requests to be able to bring the test scenario to the expected state. Is there a way to reuse some of the requests inside the postman collection if we want to test a scenario that requires setup? In the Java world, I would simply reuse the Class method inside another test, and not sure if there is similar functionality in postman to avoid duplication.
Example:
Test Scenario1:
Setup request
Test request1
Cleanup request
Test Scenario2:
Setup request
Test request 2
Cleanup request
I’ve already tried: searching forum for similar questions