robotframework用例标签的使用

*** Settings ***
Force Tags req-42
Default Tags owner-john smoke

*** Variables ***
${HOST} 10.0.1.42

*** Test Cases ***
No own tags
[Documentation] this test has tags owner-john,smoke and req-42
NO OPERATION
With own tags
[Documentation] this test has tags not_ready,owner-mrx and req-42
[Tags] owner-mrx not_ready
NO OPERATION
Own tags with variables
[Documentation] This test has tags host-10.0.1.42 and req-42
[Tags] host-${HOS]
no operation
Empty own tags
[Documentation] this test has only tag req-42
[Tags]
no operation
Set Tags and Remove Tags Keywords
[Documentation] This test has tags my tag and owner-john
Set Tags mytag
Remove Tags smoke req_*
原文地址:https://www.cnblogs.com/jiyanjiao-702521/p/9255027.html