This blog is for Automation Test Engineers

Thursday 15 March 2018

TestNG Suite


Inorder to execute multiple TestNG classes automatically one after the another you can use TestNG Suite.
TestNG suite is an xml file which contains list of TestNG classes which are to be executed. In order to create TestNG suite, right click on the package or on the java project go to TestNG---->Select convert to TestNG and click on finish which creates TestNG.xml inside the java project as shown below:


?xml version="1.0" encoding="UTF-8"?>
<suite name="Suite" parallel="false">
<test name="Testone">
<classes>
<class name="com.Firstpackage.Test "/>
</classes>
</test> <!-- Test -->
</suite> <!-- Suite -->

0

0 comments:

Post a Comment