GithubHelp home page GithubHelp logo

datoucrop / robotframework-debuglibrary Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xyb/robotframework-debuglibrary

0.0 1.0 0.0 26 KB

A debug library for RobotFramework, which can be used as an interactive shell(REPL) also.

License: Other

Python 100.00%

robotframework-debuglibrary's Introduction

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 protected]
<  &{dict} = {u'name': u'admin', u'email': u'[email protected]'}
> 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.

robotframework-debuglibrary's People

Contributors

xyb avatar jollychang avatar jokimaki avatar silviot avatar vivainio avatar vincentfretin avatar serhatbolsu avatar swt-jnpr avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.