postman-- collection - the order of execution of the script - a collection of execution

In Postman, the script single request execution order is as follows:

  • Associated with the request to perform a pre-script request before sending the request
  • After sending the request, execution of test scripts associated with the request

Single request workflow

 

 

 

=========================================================================================================================

 

For each of the set request , the script execution in the following order:

  • Associated with the pre-set script will run before the request in each request set.
  • Associated with the folder pre-request script will run before each request in a folder.
  • Associated with the collection of test scripts will run after each request in the collection.
  • After a folder request, associated with the folder will run test scripts.

Collection request workflow

                                                                                                             Collection level script execution order

 

For the collection of each request, the script will always run according to the following hierarchy: a collection of level script (if any), folder-level script (if any), request-level script (if any).

Note that this applies to pre-order execution request scripts and test scripts.

 

 

 

 

================================================================================================================================

 

Note: For each request set, the script is always run according to the following hierarchy: a collection-level scripts, text-level scripts, request-level script.

 

          This execution order for pre-request and test scripts.

Guess you like

Origin www.cnblogs.com/xiaobaibailongma/p/12194191.html