Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-High Target-2.5.2 bwic
New issue 612 by pekka.klarck: Non-existing variable should not be
considered syntax error (e.g. preventing executing rest of teardown )
http://code.google.com/p/robotframework/issues/detail?id=612
Currently non-existing cause failures that are considered syntax errors by
the framework. This means that the error goes through `Run Keyword And
Expect/Ignore Error` and `Wait Until Keyword Succeeds` keywords and it also
prevents rest of the steps in teardowns from being executed. Especially the
latter consequence is annoying because the variable may not exist simply
because it wasn't created yet when the test case failed.
The simplest fix for this problem is changing the error type from a syntax
error (DataError internally) to normal error (e.g. RuntimeError). Variable
not existing isn't really a syntax error -- the syntax itself is correct --
so this change makes sense otherwise too.
The change may be backwards incompatible in certain rare cases. How likely
it is to cause problems can probably be evaluated when this problem is
fixed.