Saturday, December 31, 2011

Invoking TestNG with testng.xml file

//testng.xml
  1. <suite name="My Suite">
  2.   <test name="My testNG test">
  3.     <classes>
  4.        <class name="example.test.TestNGSimpleTest" />
  5.     </classes>
  6.   </test>
  7. </suite>
You can specify package names instead of class names:
  1. <suite name="My Suite">
  2.   <test name="My testNG test">
  3.     <packages>
  4.       <package name="example.test" />
  5.    </packages>
  6.  </test>
  7. </suite>

No comments:

Post a Comment