Skip to content
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

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

Open
MitchellMahan opened this issue Oct 15, 2021 · 1 comment
Open
Labels

Comments

@MitchellMahan
Copy link

MitchellMahan commented Oct 15, 2021

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)?

@MitchellMahan MitchellMahan changed the title Debug when test fails (DebugLibrary as a Listener?) Debug when test/keyword fails (DebugLibrary as a Listener?) Oct 15, 2021
@kalyncoose
Copy link

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.

@xyb xyb added the feature label Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants