-
Notifications
You must be signed in to change notification settings - Fork 2.4k
possibility to get return value and fail keyword at the same time #4851
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
Comments
Hi @saifjarboui, The Check that keyword has continue on failure by default and accepts other keywords as input for the checks. |
Thank i will try it.
The problem here is that i use continue on failure explicitly from builtin
yet it has no effect. I doubt that it will do something special. The bog
issue here is that I am using RED editor. Which make me stuck in an old
version of RF due to end of development of that project. I am looking for
something that could help me in that version. Even changing or prompting
the keyword to fail.
|
Sorry, I misunderstood the issue. Although the real issue could be, as you mention, that RED editor isn't being maintained anymore. There have been so many improvements to Robot Framework since then, and also to alternatives for RED, that it is difficult to still defend RED for any project. |
Hi, yes you are correct although RED if it is still maintained would be on
to of the Robot IDEs also can't do much thing about that since too much
effort and money were invested on RED plugin and the eclipse editor in
general to add specific features and waste of expertise of our java
developers who no alternative other than that in this scope since pycharm
is closed source and vs code is mainly cpp.
In any case one of robot maintainers or someone dug inside the source code
could give a workaround or slight modification regarding this issue.
|
Can you confirm if this behavior is still the same in Robot Framework 6.1? Thinking about a workaround, there might be something you could already do yourself. Instead of using |
From static analysis I am quite sure the current behavior is the designed behavior, but I do see your point @saifjarboui |
The code in the issue description looks pretty complicated. Could you @saifjarboui explain why you are calling your own functions via It seems that you expect |
No updates, closing. |
I am running the robot test in the context of continue on failure. It seems that it doesn't go with the python implemented keywords where I use nested keywords as a workaround to achieve what I need (we have restrictions from using resource files, so we need pure python implementation).
Python Script:
` @Keyword
def raise_fail(self):
raise ExecutionFailed("nooo")
testcase:
`*** Variables ***
${var} ${1}
*** Test Cases ***
test
[Tags] robot:recursive-continue-on-failure
`
output:
The text was updated successfully, but these errors were encountered: