O'Reilly logo

TestNg Beginner's Guide by Varun Menon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using regular expressions

While configuring your tests for including or excluding groups, TestNG allows the user to use regular expressions. This is similar to including and excluding the test methods that we covered earlier. This helps users to include and exclude groups based on a name search.

Let's create a sample program and learn how to use regular expressions while including and excluding groups.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required