bbk
bbk

Reputation: 229

Robot Framework:: How to Exclude Test Suites

We have our Test Suites growing like anything. We are able to run TC's with include and exclude TAGS in Argument files. But I wonder is there a way to exclude Test Suites so we can save some execution time. all the command line options work with TC only.

Upvotes: 2

Views: 4121

Answers (1)

Helio
Helio

Reputation: 3747

In RIDE select each of the suites folders and on the Settings editor add at Force Tags unique tags. This is the same as to create in each Suite folder, a file named __init__.robot with the following example content:

*** Settings ***
Force Tags        excluded

You can also choose to use Default Tags in each Test Suite file. This tag will be set for the tests without any specific tag.

Run the tests by checking the "Skip tests with these tags" checkbox and filling with the desired tags. You could also enter --exclude excluded in the Arguments field of the test runner.

Another option is to "View All Tags (F7)" and use the search functions to Include or Exclude by tag. In the below example, I have used "Excluded Tag Search" and then "Add all to selected". I had ran the tests previously, with the excluded tag in the Arguments.

capture of RIDE tag selection tools

Upvotes: 2

Related Questions