I am very sorry if this has already been covered. I have found conflicting information online and just want to know if this is an actual available feature or not.
I want to know if it’s possible to have global functions at the Collection level folder (either in the pre-request or tests section) where I can store any functions I use for nearly every test.
For example say for every request I do the following:
console.log(‘hello!’);
could I instead create a function in say the pre-request section at the Collection level:
function hello() {
console.log(‘hello!’)
}
and they for all my requests I could just call hello(); (I know this isn’t a very practical example) but you know what I mean.
I have also tried this via postman.setGlobalVariable but it did not seem to work either.