Robotframework 为测试用例生成Robot框架文档
是否有方法为测试用例生成Robot框架文档 我可以使用Robotframework 为测试用例生成Robot框架文档,robotframework,Robotframework,是否有方法为测试用例生成Robot框架文档 我可以使用libdoc成功地为关键字和库生成文档,但是当我尝试对只包含测试用例的.robot文件执行相同操作时,我会出现以下错误 测试用例文件: *** Settings *** Documentation Suite documentation to appear on top of the html doc. Resource ../Root.robot Suite Setup Create Data Suite Tea
libdoc
成功地为关键字和库生成文档,但是当我尝试对只包含测试用例的.robot
文件执行相同操作时,我会出现以下错误
测试用例文件:
*** Settings ***
Documentation Suite documentation to appear on top of the html doc.
Resource ../Root.robot
Suite Setup Create Data
Suite Teardown Delete Data
Test Setup Go To Homepage
Test Teardown Close All Browsers
*** Test Cases ***
Test A
[Documentation] The test case documentation.
Do Something
在此文件上使用libdoc
时出错:
Try --help for usage information.
[ ERROR ] Error in file '/<path>Test.robot': Non-existing setting 'Test Setup'.
[ ERROR ] Error in file '/<path>Test.robot': Non-existing setting 'Test Teardown'.
[ ERROR ] Error in file '/<path>Test.robot': Non-existing setting 'Suite Setup'.
[ ERROR ] Error in file '/<path>Test.robot': Non-existing setting 'Suite Teardown'.
Resource file '/<path>Test.robot' contains a test case table which is not allowed.
Try--有关用法信息的帮助。
文件“/Test.robot”中的[ERROR]错误:不存在设置“Test Setup”。
文件“/Test.robot”中的[ERROR]错误:不存在设置“Test Teardown”。
[错误]文件“/Test.robot”中有错误:不存在设置“套件设置”。
[错误]文件“/Test.robot”中出现错误:不存在设置“套件拆卸”。
资源文件“/Test.robot”包含不允许的测试用例表。
是因为libdoc不支持设置和拆卸吗?应该使用
TestDoc
而不是libdoc
来编写测试用例文档
这里的两个工具:
应该使用
TestDoc
而不是LibDoc
来编写测试用例文档
这里的两个工具:
Duh,我应该使用TestDoc而不是LibDoc。谢谢@BryanOakley.Duh,我应该使用TestDoc而不是LibDoc。谢谢@BryanOakley。