Selenium RC Question:
Download Questions PDF

How to execute the test cases in an XML format using TestNG in Selenium?

Answer:

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> ??

Download Selenium Remote Control Interview Questions And Answers PDF

Previous QuestionNext Question
How to run the test cases in group in Selenium using TestNG?How to incude or exclude the selenium rc test cases using xml in TestNG?