使用python为robot框架轻松创建更大的测试库的工具。
robotlibcore-temp的Python项目详细描述
使用工具轻松地为Robot Framework创建更大的测试库 Python。
代码稳定,SeleniumLibrary已使用版本1.0。 更好的文档和包装仍有待改进
示例
"""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