-
-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Postman use case:
You can use pre-request scripts in Postman to run JavaScript before a request runs. By including code in the Pre-request tab for a request, collection, or folder, you can carry out pre-processing such as setting variable values, parameters, headers, and body data. You can also use pre-request scripts for debugging code, for example by logging output to the Postman Console.
Currently dothttp users can use requests library in to make pre-requests, but by using this method, we will loose all battaries of provided by dothttp like (parent/base, variable substitution, history) easy-debugging.
I feel we have to two options.
option1:
in test script, like pre request can return dothttp request name. those will be executed first then current.
option2:
add one more flag, with list of dothttp reqeust names to execute.