How to write regular expression In testng.xml file to search for specific keyword.

0 votes
How to write regular expression In testng.xml file to search @Test methods containing specific keyword.
Jun 18 in Selenium by Joginder
47 views

1 answer to this question.

0 votes

Hi Joginder, you can write regular expression to find @Test methods containing specific keyword by using following syntax in testing.xm file:

<methods>
     <include name=".*keyword.*"/>
</methods>

answered Jun 19 by Anvi
• 12,840 points

Related Questions In Selenium

0 votes
1 answer

How to create a executable jar file for TestNG and the runnnig point should be the Xml file

Use Eclipse Export Wizard. While exporting, select "Create ...READ MORE

answered Aug 24, 2018 in Selenium by Meci Matt
• 9,420 points
1,563 views
+2 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

What is the role of TestNG & JUnit frameworks in Selenium?

Well TestNG and JUnit are test frameworks ...READ MORE

answered Apr 18, 2018 in Selenium by king_kenny
• 3,650 points
259 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,090 points
548 views
0 votes
1 answer

Diff between WebDriver listeners and TestNG listeners?

This is not a very important concept ...READ MORE

answered Apr 13, 2018 in Selenium by king_kenny
• 3,650 points
1,621 views
0 votes
1 answer
0 votes
1 answer

How reports can be produced in different ways for TestNG results?

Hey Suraj, TestNG offers two ways to produce ...READ MORE

answered Jun 19 in Selenium by anonymous
• 12,840 points
31 views