Adding a global script above Collection scope?

I’ve created a couple of basic test functions that I’m adding to the global scope in the Tests tab of the Collection property window and have Tests on requests do an eval on those functions. This works really great.

I now need to have the same set of Test functions on multiple Collections and that may turn into a maintenance hell as I now need multiple copies of the working code and it can become hard to trace bugs if two versions of the script becomes incompatible but are run on the same requests. My requests are moved between Collections and requests utilize these functions and pass parameters to them.

Is there a way to add this generic script a place above Collection Level to make sure I only ever have 1 version of this script to maintain?

Hey there!

So I think I understand your question. You want something like a workspace level tests/pre-request scripts area?

I can certainly see how that would be helpful and I see there is a feature request currently being tracked here.

In the meantime, perhaps there is a creative workaround that you could use that mocks a similar functionality?
I hope this helps! :smile: