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

Add 'robotframework-debuglibrary' -package to QA test environment #220

Merged
merged 1 commit into from
Jan 30, 2025

Conversation

msaarine
Copy link
Collaborator

@msaarine msaarine commented Jan 29, 2025

Configured the 'robotframework-debuglibrary' -package in to the system.

Usage: One can set a ' break point' into the robot framework code and stop the test into some interesting phase.
When test case stopped a debugging command shell opens and one can give robot framework keywords into that & see the results. This is usable feature when developing new tests/debugging the old ones.

This is not set on by default for all the files but one needs to set 2 lines described below if one want to use the feature.

Usage:

  1. Add 'Library DebugLibrary' into the 'robot file' you want to set 'debug break point'
*** Settings ***
...
Library            DebugLibrary
  1. Add 'Debug' into the same 'robot-file' to line you want execution to stop
...
Do something
Log to console  Debug set to next line
Debug

And that opens the debug shell

>>>> Enter interactive shell
Only accepted plain text format keyword separated with two or more spaces.
Type "help" for more information.
> 

If you want to fail test after debug you can set something like this here after 'Debug':
FAIL Fail the test after debugging.

  1. When you want to leave from debugging shell, just type 'exit'

After one is done with debugging remove the 2 lines 'Library DebugLibrary' & 'Debug' from the file

@msaarine msaarine merged commit 90b0175 into main Jan 30, 2025
1 check passed
@msaarine msaarine deleted the add_rfw_debuglibrary branch January 31, 2025 11:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants