Updates:
Summary: Remote interface does not support reporting continuable and fatal
errors
Labels: -Priority-Medium Priority-High
Comment #2 on issue 1628 by pekka.klarck: Remote interface does not support
reporting continuable and fatal errors
http://code.google.com/p/robotframework/issues/detail?id=1628
Remote servers report the status of an executed keyword using a result
dictionary that currently can have keys 'status'
(mandatory), 'output', 'return', 'error', and 'traceback' [1]. The
requested functionality can be implemented by adding one ore more new
optional keys to the result dict.
[1]
http://robotframework.googlecode.com/hg/doc/userguide/RobotFrameworkUserGuide.html#executing-remote-keywords
A simple approach would be adding separate keys like 'continue' and 'fatal'
that, when having a true value, would indicate that the error was
continuable or fatal, respectively. Remote library should look at these
values if 'status' is 'FAIL', and report them back to the core framework
appropriately. It could be decided at implementation time is it an error to
set these values when execution passed and what should happen if they are
both set.
When I started to think about this, I didn't like the idea that we'd add
separate keys for both of these special cases (and for possible future
cases like them). Instead I thought about adding one new key
like 'error-type' that then could have different values like 'continue'
or 'fatal'. Now that I think about this, I consider that somewhat harder to
use and also less flexible. Same exception cannot really be both
continuable and fatal, but it is possible that some future special
exceptions are added that can be combined with either of them. Adding such
combined values would make the usage even more complex.
What do others think about this? Is adding separate keys for these special
cases the best solution? Are names 'continue' and 'fatal' good? Other
possibilities include 'continuable' and 'exit', as well as more
explicit 'continue-on-failure', 'exit-on-failure', and their variations
like 'continue_on_failure' and 'EXIT_ON_FAILURE'.
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
---
You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.