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, 2019 in Selenium by Joginder
148 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, 2019 by Anvi
• 14,010 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,460 points
2,579 views
+2 votes
1 answer
0 votes
1 answer

How to pass parameter through testng.xml file to a test case in Selenium Webdriver?

Hello Revathi, to pass parameter through testng.xml ...READ MORE

answered Jun 12, 2019 in Selenium by Abha
• 27,720 points
903 views
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,690 points
437 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,510 points
1,514 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,690 points
1,899 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, 2019 in Selenium by anonymous
• 14,010 points
49 views
0 votes
1 answer