用于将Robot框架文件转换为RestructedText(.rst)文件的Python脚本
mlx.robot2rst的Python项目详细描述
文件编制机器人
此脚本可以将.robot文件从robot框架转换为具有可跟踪项的RestructedText(.rst)文件。在
Goal
这个脚本允许您通过mlx.traceabilitySphinx扩展将需求连接到测试用例。 测试用例被转换成可追踪的项目。每个测试的文档用于生成项的主体。 测试用例名称转换为带有可配置前缀的项ID。标记可用于链接到其他可跟踪项目。在
Usage
robot2rst -i example.robot -o test_plan.rst --prefix ITEST_MY_LIB- --tags SWRQT- SYSRQT- --relationships validates ext_toolname $ robot2rst --help usage: robot2rst [-h] -i ROBOT_FILE -o RST_FILE [-p PREFIX] [-r [RELATIONSHIPS [RELATIONSHIPS ...]]] [-t [TAGS [TAGS ...]]] [--trim-suffix] Convert robot test cases to reStructuredText with traceable items. optional arguments: -h, --help show this help message and exit -i ROBOT_FILE, --robot ROBOT_FILE Input robot file -o RST_FILE, --rst RST_FILE Output RST file -p PREFIX, --prefix PREFIX Overrides the default 'ITEST-' prefix. -r [RELATIONSHIPS [RELATIONSHIPS ...]], --relationships [RELATIONSHIPS [RELATIONSHIPS ...]] Name(s) of the relationship(s) used to link to items in Tags section. The default value is 'validates'. -t [TAGS [TAGS ...]], --tags [TAGS [TAGS ...]] Regex(es) for matching tags to add a relationship link for. All tags get matched by default. --trim-suffix If the suffix of any prefix or --tags argument ends with '_-' it gets trimmed to '-'.
Configuration
要在文档中包含脚本的输出,您需要将上述扩展添加到 extensions列表在您的{em1}中$配置文件像这样:
^{pr2}$有关其他配置步骤,请阅读documentation of mlx.traceability。在
- 项目
标签: