views:

29

answers:

1

TestNG doc says create an xml as below.

<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >

<suite name="Suite1" verbose="1" >
   <test name="Regression1"   >
     <packages>
     <package name="test.sample" />
     </packages>
   </test>
</suite>

Where should this file be?

+2  A: 

It depends on how you run it. If you're running from the command line, try this: java org.testng.TestNG testng.xml

If you're using ant, try this. http://testng.org/doc/ant.html

I don't think it matters a lot where you put the file as long as your IDE can find it, you run ant from that directory, etc. We put all this stuff in a directory called 'build.'

Tony Ennis