Perform the following steps for executing
testng.xml using Eclipse:
testng.xmlfile, right-click on it, and select Run As | TestNG suite.
The preceding window may not be shown by default in Eclipse after execution and you may have to click on the window to see the results.
You can also use the Run Configuration option provided by Eclipse to customize your TestNG tests in Eclipse. Let's learn how to configure Eclipse ...