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.
"""Main library."""fromrobotlibcoreimportHybridCorefrommystuffimportLibrary1, Library2classMyLibrary(HybridCore):
"""General library documentation."""def__init__(self):
libraries= [Library1(), Library2()]
HybridCore.__init__(self, libraries)"""Library components."""fromrobotlibcoreimportkeywordclassLibrary1(object):
@keyworddefexample(self):
"""Keyword documentation."""pass@keyworddefanother_example(self, arg1, arg2='default'):
passdefnot_keyword(self):
passclassLibrary2(object):
@keyword('Custom name')defthis_name_is_not_used(self):
pass@keyword(tags=['tag', 'another'])deftags(self):
pass