Status: Accepted
Owner: ----
Labels: Type-Enhancement Priority-Medium Target-2.6.2

New issue 962 by pekka.klarck: Possibility to know in suite teardown has teardown itself failed
http://code.google.com/p/robotframework/issues/detail?id=962

A team at NSN has suite teardown that does all kind of cleanup. At the end of the teardown they would like to know the status of the teardown itself so that they can collect more information only upon failure.

Similar need could arise with any user keyword that uses the keyword teardown functionality. In the teardown you could want to do some action only if the keyword has failed.

The cleanest way to implement this would be "On Failure" functionality described in issue 720 (assuming it is implemented both for keywords and for tests). That is probably too big for 2.6.x release so we should think could we implement something else now.

In test teardown you should be able to do this using `Run Keyword If Test Failed` keyword or based on `${TEST STATUS}` variable. This is something we should test, though.



Reply via email to