Run the tests that belong to a group

Learn how to execute tests in the pipeline based on their groups.

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).
  • You can run the tests that are related to a specific feature (registration page, for example).

Each of our tests belongs to a group:

Get hands-on with 1200+ tech skills courses.