Skip to main content

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

Project description

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

Code is stable and version 1.0 is already used by SeleniumLibrary. Better documentation and packaging still to do.

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

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

robotlibcore-temp-1.0.2.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

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