-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect execution order of main request pre-run script when pre-request request(s) are specified #1551
Comments
This is expected behavior.
|
@rangav But currently that's only true for the first request from my observation, look at this tests I've run for example: Above is the main request and it has 1 pre-request (account_sms_login_v22/success) and 1 pre-run script (print logs). Second picture is the pre-request of the first picture and it also has 1 pre-request (request_auth_code/success_register) and 1 pre-run script (print logs). From the Script Log in the first picture, you can see that the pre-run script runs first (you said this is expected), however if you look below it (still in the first picture), it's "request_auth_code/success_register" that gets executed first before the print logs from the "account_sms_login_v22/success" inside it's pre-run script that gets executed (pre-request of the first pre-request gets executed first before pre-run script of the first pre-request). Is this still the expected behavior? |
To summarize my point:
Current workaround that I've found to work:
|
FYI - Request chaining will be a paid feature also from June 3rd. Can you confirm you have read the release notes? |
Okay noted, thank you for the information, however is it still free if I'm only using the version before that? |
Describe the bug
When a request contains BOTH pre-run script and pre-request requests, the pre-run script of the main (first) request would always be executed first and only then would the pre-request request(s) be executed in the order of their subsequent pre-request requests > pre-run scripts (hence the order of execution of their subsequent pre-run and pre-requests are reversed from the main request).
I think this is a bug because I don't think this is the intended behavior(?)
Because of this issue, it renders users unable to reuse the response from pre-requests using env in the main request because the main request's pre-run script would always be the first one executed before anything else (except collection level scripts).
By the way this also affects the collection-level pre-run scripts. It runs in the correct order only after the main (first) request.
To Reproduce
Expected behavior
Platform:
Are you using the free version/paid version/trial:
free
The text was updated successfully, but these errors were encountered: