I would like to declare a function once in a preliminary request script for my first postman request, and then use it in every request after that. I set a lot of variables for the postman object and environment variables, but I did not find a way to do the same with functions.
In a preliminary script request:
function wrapTest(param1, param2, param3) { ... }
Then i tried
In the request, I try to use this function:
postman.wrap(one,two,three);
resulting in "postman.wrap is not a function" in all cases.
source share