我是机器人框架的新手。我有一个 .robot 文件,其中包含 5 个测试用例,我为每个测试用例定义了标签。即 3 个测试用例有[tags] debug,两个测试用例有[tags] preprod
现在我有一个套件设置和套件拆解,对于那些具有标签调试的测试用例将执行某些步骤,而对于标签 preprod 不需要执行相同的步骤
例如:
*** Settings ***
Suite Setup Run Keywords
... Connect To DB AND
... Create An Employee
Suite Teardown Run Keywords
... Delete DB entries AND
... Disconnect From DB
*** Test Cases ***
TC1
[Tags] Debug
log to console Test1
TC2
[Tags] Debug
log to console Test2
TC3
[Tags] Debug
log to console Test3
TC4
[Tags] preprod
log to console Test4
TC5
[Tags] preprod
log to console Test4
现在 TC4 和 TC5 不需要Create An Employee在套件设置和Delete DB entries套件拆解中执行
如果测试用例tag=Debug在套件设置和套件拆解中有执行步骤,如何实现