如何在 RobotFramework 中排除动态设置标签

How to exclude dynamic set tags in RobotFramework

大家好。我尝试排除动态标签,但无法达到我的目标。我做错了什么?

waidw.robot:

# -*- coding=utf-8 -*-
# -*- coding=robot -*-

*** Settings ***
Test Template  My Awesome Keyword
*** Test Cases ***
Case 1  hello  hello  Smoke  Manual
Case 2  world  world  Auto

*** Keywords ***
My Awesome Keyword 
    [Arguments]  ${Alpha}  ${Betta}  @{Tags}
    Set tags  @{Tags}
    Should be equal  ${Alpha}  ${Betta}

来自shell:

$ pybot -d ./result --non-critical Auto --exclude Auto wiadw.robot

您不能包含或排除动态标签的测试。当 pybot(或等价物)启动时,它会解析所有代码并在 运行 进行任何测试之前建立一个 运行 的测试列表。此测试列表不会更改,因为测试是 运行。另外,为了设置动态标签,测试必须开始 运行ning。那时排除它已经太晚了。

在其他世界中,--include--exclude 只能在测试 运行.

之前的测试中的静态标签上工作