⟩ How to execute the test cases in an XML format using TestNG in Selenium?
If you want to execute a java file MercTestNgSuite.java which is there in the package com.src.testng. You can use the belowmentioned code in a xml file. And the test can be run by right clicking the XML and running as TestNG Suite
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite thread-count="5" skipfailedinvocationCounts="false" verbose="1" name="MercPrj" junit="false" parallel="false" annotations="JDK">
<test verbose="2" name="com.src.testng.MercTestNgSuite" junit="false" annotations="JDK">
<classes>
<class name="com.src.testng.MercTestNgSuite"/>
</classes>
</test>
</suite> ??