RobotFramework debug library and an interactive shell
Project description
Introduction
Robotframework-DebugLibrary is a debug library for RobotFramework, which can be used as an interactive shell(REPL) also.
Installation
To install using pip:
pip install robotframework-debuglibrary
Usage
You can use this as a library, import DebugLibrary and call Debug keyword in your test files like this:
*** Settings *** Library DebugLibrary ** test case ** SOME TEST # some keywords... Debug
Or you can run it standalone as a RobotFramework shell:
$ rfdebug [...snap...] >>>>> Enter interactive shell, only accepted plain text format keyword. > help Input Robotframework keywords, or commands listed below. Use "libs" or "l" to see available libraries, use "keywords" or "k" to see list of library keywords, use the TAB keyboard key to auto complete keywords. Documented commands (type help <topic>): ======================================== EOF exit help k keywords l libs pdb s selenium > log hello > get time < '2011-10-13 18:50:31' > import library String > get substring helloworld 5 8 < 'wor' > ${secs} = Get Time epoch # ${secs} = 1474814470 > Log to console ${secs} 1474814470 > @{list} = Create List hello world # @{list} = ['hello', 'world'] > Log to console ${list} ['hello', 'world'] > &{dict} = Create Dictionary name=admin email=admin@test.local # &{dict} = {'name': 'admin', 'email': 'admin@test.local'} > Log ${dict.name} > help selenium Start a selenium 2 webdriver and open url in browser you expect. s(elenium) [<url>] [<browser>] default url is google.com, default browser is firefox. > selenium google.com chrome # import library Selenium2Library # open browser http://google.com chrome < 1 > close all browsers > Ctrl-D >>>>> Exit shell.
The interactive shell support auto completion for robotframework keywords and commands. The history will save at ~/.rfdebug_history default, or any file defined in environment variable RFDEBUG_HISTORY.
Submitting issues
Bugs and enhancements are tracked in the issue tracker.
Before submitting a new issue, it is always a good idea to check is the same bug or enhancement already reported. If it is, please add your comments to the existing issue instead of creating a new one.
License
This software is licensed under the New BSD License. See the LICENSE file in the top distribution directory for the full license text.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for robotframework-debuglibrary-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c78744b8d6e8326efaea392153af4cd5cf49c403643d95f3f23f9091ad0d18f |
|
MD5 | 1a7ce5f7cf86e8327dd8a8afcda60d96 |
|
BLAKE2b-256 | cd6dbfa4f0bc2ba33bce1ffab223bd37f3f543d414f858c5c2a7e691972d7cd3 |
Hashes for robotframework_debuglibrary-1.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 197ab45074a6984f88917a844e62dd5d94d1f849e3a79d531d9b357f4fb02b60 |
|
MD5 | 9de7ffc178fcc80654318b0a8a04eca9 |
|
BLAKE2b-256 | 3a3ffdfff6ce65ee02b8d48cfced5b90643d40ce71ff29a387f042997e70c999 |