I am new to TestNG and Selenium Webdriver and trying to create a testng.xml using eclipse.
Done some research in www and understand that this file can be created by doing Right Click on the Java class >> TestNG >> Convert to TestNG
However this Convert Refactoring wizard is not opening.
Whether this wizard will not open, if the Java class already contains @Test annotations (!?)
Can you help me to create testng.xml using eclipse please.
(I am using Eclipse Luna)
Change the names according to your program and run that testng.xml Run as Testng it will run your program with Testng
*********************************if you have to run using multiple suite********
let me give you an example if you have three suites that have multiple cases then create the tree .xml file and write the code as above for all the three suite
then create a testng.xml file that will include the code as below
Then run the testng.xml Run as Testng then it will run all the program of those are part of these three suites
Praveen, please right click on the project and then go to convert to testNG,
now it will create testng.xml in which you will have all your classes, you can select the classes which u want and then execute this testng.xml as testng suite.
Created testng suite file manually as below: