Re-usable JavaScript code, but not using eval()

Hi,

I have a good amount of re-usable JS code that I have been placing in Global variables and accessed in Test Scripts via “eval()”. Unfortunatley, the “eval()” call does NOT work within Monitors or the CLI Runner.

Please tell me there is some functionality coming that allows us to re-use JS code throughout a Collection? Or, even better, where we can re-use JS code over many Collections?

Thanks,
Todd

1 Like

Sorry we didn’t get to this sooner. This isn’t the experience we want for our users.

I believe this is what you’re looking for and was added as part of the major version 11 release last year.