How to add an external javascript file postman environment? I want to use some external javascript for Pre-request Script.
Asked
Active
Viewed 665 times
1 Answers
3
You can store your JS code into an (environment) variable.
Then use eval()
to execute that code.
It's explained here in detail: https://blog.postman.com/api-testing-tips-from-a-postman-professional/#tip-5-reuse-code

Christian Baumann
- 3,188
- 3
- 20
- 37