Tags in Robot Framework

Introduction

Tags are needed so that you can run only a certain part of the tests.

The simplest example: critical tests are run every day, the less important ones have their own tag and are run once a week.

Example

Let us look at a test in the file system.robot

Note that between Tags and the tag name there are two spaces

Something Critical Is Tested [Tags] critical Do Something Something Else Is Tested [Tags] weekly Do Something Else

To run only the tests with the tag critical

robot --include critical system.robot

Article author: Andrei Olegovich