Skip to content

Tools to ease creating larger test libraries for Robot Framework using Python

Notifications You must be signed in to change notification settings

SteveHarrison82/PythonLibCore

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Library Core

Tools to ease creating larger test libraries for Robot Framework using Python.

At the moment work-in-progress. Planned to be used with Selenium2Library.

Example

"""Main library."""

from robotlibcore import HybridCore

from mystuff import Library1, Library2


class MyLibrary(HybridCore):
    """General library documentation."""

    def __init__(self):
        libraries = [Library1(), Library2()]
        HybridCore.__init__(self, libraries)
"""Library components."""

from robotlibcore import keyword


class Library1(object):

    @keyword
    def example(self):
        """Keyword documentation."""
        pass

    @keyword
    def another_example(self, arg1, arg2='default'):
        pass

    def not_keyword(self):
        pass


class Library2(object):

    @keyword('Custom name')
    def this_name_is_not_used(self):
        pass

    @keyword(tags=['tag', 'another'])
    def tags(self):
        pass

About

Tools to ease creating larger test libraries for Robot Framework using Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 88.2%
  • RobotFramework 11.8%