使用Python简化为Robot Framework创建大型测试库的工具。
项目描述
使用Python简化为Robot Framework创建大型测试库的工具。
代码稳定,版本1.0已被SeleniumLibrary使用。更好的文档和打包工作仍在进行中。
示例
"""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
项目详情
关闭
robotlibcore-temp-1.0.2.tar.gz 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | d6aa982d2bf7084cf6db0b969df2ad7e9c7e980d466e180ebd9d7dfaba1d2bfb |
|
MD5 | 2e313c2a3c94e85d1f724c9313fb1053 |
|
BLAKE2b-256 | 35c0ab375fe4b3857908030bd278f3a6fb6b0e7fd6c729565a9700e9e41c7cc0 |