且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Robot Framework中向数据驱动测试添加标记?

更新时间:2023-01-15 18:41:11

有多种添加标记的方法。

仅特定于测试的内容如下:

*** Test cases ***
Test A
  [tags] tagA tagB
  Log  This is test A

可以通过在您的设置中放置Force Tags将标签添加到文件中的所有测试用例:

*** Settings ***
Force Tags  NewTag

有关详细信息,请查看用户指南:http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#tagging-test-cases