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
Installation is done just as for any other Python library. Using the pip or easy_install command from setuptools is the easiest.
To install using pip:
pip install robotframework-debuglibrary
To install using easy_install:
easy_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:
$ rfshell [...snap...] >>>>> Enter interactive shell, only accepted plain text format keyword. > 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} = [u'hello', u'world'] > Log to console ${list} [u'hello', u'world'] > &{dict} = Create Dictionary name=admin email=admin@test.local < &{dict} = {u'name': u'admin', u'email': u'admin@test.local'} > Log ${dict.name} > help selenium Start a selenium 2 webdriver and open google.com or other url in firefox or other browser you expect. selenium [<url>] [<browser>] > selenium http://www.google.com/ chrome import library Selenium2Library open browser http://www.google.com/ chrome > close all browsers > Ctrl-D >>>>> Exit shell.
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-0.8.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2973f574d2df45e0b14fbbdab746c577c9c395271263854c8a1b08a78ffcf936 |
|
MD5 | 1a422a6bc5a18a2d14b64ed80732f744 |
|
BLAKE2b-256 | 32186a3bbfdb0dff6458a88e6079d605749ccbc1ad6ab82b15e44383b119f0f6 |
Hashes for robotframework_debuglibrary-0.8.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31ca658925abcc8648a7d08eeac83849a65e5476e3d566907198b7b5a4367e9e |
|
MD5 | 0277376cbef35a1ddff41b7da4f12287 |
|
BLAKE2b-256 | 077ae5477a79f11e282e6f02c06df820586ed061421fdf6f08369d125a76815c |