Using tag filters

Skip to end of metadata
Go to start of metadata

Apache Maven is a popular build automation tool for Java Projects. Squish Maven integrations allows to execute Squish GUI Automated Tests as a part of build process. Squish GUI Tester 6.2 offers functionality to tag Test Cases. Our Squish Maven integration allows to execute just those test scripts or BDD secnarios which match a given tag filter settings. This article demonstrated how to assign tags to Test Cases or BDD Scenarios and later on, how to configure Maven project build to run only selected tests.

Adding tags to Test Cases

Tags can be assigned to a Test Case using Squish IDE. In Test Management perspective click on the Test Description tab, then click pencil icon next to tabs. Now, for each Test Case you can provide Summary, Tags and Description.

Squish IDE

Adding tags to BDD Scenarios

Tags can be assigned to Scenario inside a Feature file. Example below shows that tag foo was assigned to Scenario State after adding one entry

Executing tagged Test Cases on BDD Scenarios in Maven

In order to execute only selected Test Cases you need to use tagFilters tag in POM file. Inside it you can add multiple tags elements. Below are some examples:

  • Execute Test Cases with foo tag
  • Execute Test Cases with foo AND bar tag
  • Execute Test Cases with foo OR bar tag
  • Do NOT execute Test Cases with foo tag

Related Information:

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.