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.
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.
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:
We would like to use Google Analytics to get a better understanding of how
you use the website.
By agreeing to this, your usage data will be stored in the USA and processed
by Google LLC. Both Google as well as federal US agencies can access this data
and combine it with any other data about you, such as your search history,
personal accounts or any other data known to Google.