Eval() in Monitors

Hi.

I have a collection with “tests” that use “eval()” to pull in modular javascript that I keep in “globals”. Everything works great with the Postman UI and via Runner (also within the PM UI). However, when I setup a Monitor on the same collection, the “eval()'s” do not work. The console says “TypeError: eval(…) is not a function”.

I have spent a lot of time creating this collection to have lean tests by pulling in core JS from the globals. I would hate to revert and have bloated tests. Any ideas on getting “eval()” to work in Monitors?

Thanks,
Todd

Hi Todd, were you able to resolve the issue?
Thank You, Tomi

Hi there! I have the exact same problem as described by @toddbarnes

“I have a collection with “tests” that use “eval()” to pull in modular javascript that I keep in “globals”. Everything works great with the Postman UI and via Runner (also within the PM UI). However, when I setup a Monitor on the same collection, the “eval()'s” do not work. The console says “TypeError: eval(…) is not a function”.”

Anybody with the same issue? Any solutions?