I have some scripts that I have written myself that perform parsing and assertions on responses and I reuse these in multiple requests. Currently I am copying and pasting each of these scripts into each test. It would be nice to have the functions declared in a central library so I don’t have to manually update each collection/folder/request where they are declared.
I figured that maybe declaring a function on the collection level would make it available for a request within that folder, but no such luck. From the Postman Console:
ReferenceError | parseResponse is not defined
Is it possible to reference in a user-defined collection of functions?