[Help] How to check for invalid URL #8366
Unanswered
tho-gru-38
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I just switched to Bruno version 3.5.0
I often have requests where the URL came from a (environment) variable.
You can take this example request for testing (for simplicity I used a usual Bruno variable, which is set in the pre request script):
If the code line containing
error-in-url.orgis commented out, the request works fine. But whenerror-in-url.orgis used, neither post request nor tests are executed. Therefore I cannot check if a URL is valid or not by using a test-command.In former versions of Bruno (e.g. version 2.15.1) all the sections were executed so I was able to detect errors in variables.
Any ideas to check for bad URL to terminate collection run?
Kind Regards
Thomas
Beta Was this translation helpful? Give feedback.
All reactions