Your Privacy
We use cookies to give you a better experience in Alchemy Help Center
You can learn more about what kind of cookies we use, why, and how from our Privacy Policy. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings in our cookie banner to change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer. For more details, check out our Privacy Policy link below.
View Privacy Policy
Strictly Necessary Cookies
These cookies are necessary for the website to function and cannot be switched off in our systems, but do not store any person information. They are usually set in response to your actions that triggers a request for services, such as setting your privacy preferences, logging in or filling forms. You can change your browser settings to alert you about these cookies, but some parts of the Website may not work.
View Cookies
Hi,
I have added a function and kept as the error handler in one of my test.
i have executed the test and it failed and the error handler invoked well and the execution continued well.
My question here is : what if i face the new error again after few more steps in the same testcase?
But this error handler(function) is no more the same which i wanted now. means the second error is different. How can i handle the second error.?
similarly, after few more steps again, how can i handle the third error?
I noticed that in the Test setting i have to give only 1 error handler input. What about my 2nd, 3rd and so on.. errors?
Please help me in this regard and clarify this in details.
Thanks in Advance!
UB.
Attachments (1)
Error Handle....png
110 KB
0 Votes
2 Comments
Ub posted 2 days ago
Hi Michael,
Thankyou.
I appreciate your reply!
Can you add some steps on: how to add "multiple error handling steps" in a single function?
After adding them, how they are going to invoke at the failed error steps. like example: at error step5, at error step10,at error step15.
I am unable to reproduce the steps which you have mentioned.
I know that in a normal function we can add reusable steps and use them at different tests. or we can call different functions at different places in a Test.
But handling multiple errors with a single function is impossible, i Guess!. Do you have any steps on how to add multiple error handlers steps in a single function? or where can i get those steps link? and i will try from my end.
Thanks in Advance!
Ub
0 Votes
Michael posted 6 days ago Admin
There is a single error handler function assigned to a test that can contain multiple error handling steps.
Alchemy will try each step in the function till it finds the one that recovers the error and then it will retry the step that failed.
So you just record the steps that need to be taken to recover from each error and Alchemy will find the one that it needs to handle the recovery.
Error handling
0 Votes
Login or Sign up to post a comment