Run the tests that belong to a group
Explore how to run Selenium Java TestNG tests filtered by groups using Maven commands in Azure DevOps pipelines. This lesson helps you manage test execution by priority or feature, enabling more flexible and focused automation runs.
We'll cover the following...
We'll cover the following...
Sometimes, you want to execute all tests from the project. Running all tests may take some time. You might also want to only execute some of the tests, in which case, you should filter the tests to be executed using TestNG groups.
By filtering the tests, you get a lot of flexibility:
- You can run only the tests that are part of the automated smoke test.
- You can run the tests by priority (only high priority ones, for example).