Search code examples
javatestingwebtestngtestng-eclipse

Where to put testNG xml file in ANT java web project


I am using testNG in a java web project. When I run the test with gui eclipse on Linux machine it creates a .xml file in my /tmp/ folder. My concern is If I create a custom xml file then where to put that file in project and how we can run that test with eclipse gui.


Solution

  • you can put your testng xml file under your project on the workspace. and you can run it simply by right clicking on it, then select "Run as -> TestNG Test", please see more in the official doc: http://testng.org/doc/eclipse.html#eclipse-create-method