Two or more response handler scripts in HTTP Request in Editor
When using response handler scripts it is possible to reference a separate field using the syntax:
> path-to-external.js
But if I have several requests, and all have common assertions, (for example check if the status code is 200), how can I reuse the scripts? for example, I was trying something like:
> common.js
> specific.js
But it seems I cannot call two handler scripts. Is there any other way to call the common script inside the external javascript file?
Please sign in to leave a comment.
I am not sure if we can include/import other JS files within a handler script body ( {% %} ), so let's consider this a feature request;
Please submit it to our tracker: https://youtrack.jetbrains.com/newIssue?project=WI
Thank you, I've added it to the tracker:
https://youtrack.jetbrains.com/issue/WI-44851?project=WI