-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Fail section #397
Comments
I can do the following, but I would like to display the appropriate message steps:
-
req:
desc: Some kind of error occurs. Errors are not evaluated here.
/fail-end-point:
get:
body: null
-
desc: Handling errors
if: previous.res.status == 500
exec:
command: tail -10 /var/log/error.log
test: false |
I probably understand what you want to do. u-m... |
Would it be better to have fine control like the error functions in the testing package?
Or maybe extend the test section so that it can be handled by onError. |
What is this?
Fail section that always fails when described.
Use Cases
This is when you want to make a scenario fail after some operation in a later step when you already know that the previous step failed.
A more concrete example would be an API call that results in a 500 error and you want to display the application log.
The text was updated successfully, but these errors were encountered: