xyb/robotframework-debuglibrary

Debug when test/keyword fails (DebugLibrary as a Listener?)

Opened this issue · 1 comments

Whenever a test or perhaps even a keyword fails I would like to enter the debug CLI.
I have very long running tests that are very hard to triage and I think this would be an amazing tool.

Is there an easy way to wrap the DebugLibrary in a way I can use it as a RobotListener (to fire debug when a keyword or test fails)?

I'll look into this @MitchellMahan. It should be possible, but what it won't do is pause the test and continue - it would only fail the test and go to debug CLI with the failure still being the final outputted result. When Robot Listener version 3 is finished it would be able to manipulate the test run and possible stop a test dynamically on failure and start back up, changing the output. However, there is no way to do that with current version 3 and from the issues I read in Robot Framework repository it would be a huge internal code change to make it work - so it is backlogged for now.