madhav g
madhav g

Reputation: 83

Postman - How to run javascript utility as a pre-step before running the collection

My requirement As a pre-step before running the Postman Collection,

Looking for solution on how to call my javascript utilities everytime before running the collection

This will enable my POSTMAN tests to run seamlessly and will void data dependency

Any views on the above thought are also welcome

Upvotes: 0

Views: 169

Answers (1)

madhav g
madhav g

Reputation: 83

Solution suggested by a colleague

  • This can be achieved through pre-request script to generate data and store in environment variables.
  • Read those variables to build expected data and use in tests for assertion

Upvotes: 1

Related Questions