Skip to content

prerequest dependency  #325

@cedric05

Description

@cedric05

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions