Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotframework-debuglibrary-0.9.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotframework_debuglibrary-0.9.0-py2.py3-none-any.whl (8.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file robotframework-debuglibrary-0.9.0.tar.gz.

File metadata

File hashes

Hashes for robotframework-debuglibrary-0.9.0.tar.gz
Algorithm Hash digest
SHA256 349bbc558246aa1fe37e506ff8e9bd7ed0de067cb20fb4e378d170a31468318f
MD5 6a047d631d3b2def65334871e98d6570
BLAKE2b-256 2ba811b6f3d949041f4243ad62bd83e2805f6050450575d9897a8d8bbea668bc

See more details on using hashes here.

File details

Details for the file robotframework_debuglibrary-0.9.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for robotframework_debuglibrary-0.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7dac9bd3f743c872ecba524d1e9c0e54df0dad35de1b1ec5f1148b423af7598b
MD5 53c0ab53c3c87b13da4423d60d1e1950
BLAKE2b-256 8371e6ed2b0cdc77e69566506c850f73f9209b8d056437e11fbdac3a2eb9ba8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page