QAble Testlab Private Limited

What is TestNG.xml and How to use it?

What is TestNG

What is TestNG.xml ?

Method 1:

Method 2:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "">
<suite name="Suite">
<test name="Test">
<class name="testng.TestNGTestOne"/>
</test> <!-- Test -->
</suite> <!-- Suite -->
<?xml version = "1.0" encoding = "UTF-8"?>
<!DOCTYPE suite SYSTEM "" >
<suite name = "Cycle1">
<test name = "Tutorialspoint">
<class name = "Test1" />
<exclude name= “Login.*”/>

The testng.xml file has the numerous uses as listed below

How to use TestNG

QAble: A leading software testing company. We offer various software testing services to help you to achieve the best quality of your web & mobile application.