In testng.xml file we can specify multiple name (s) which needs to be executed.
In a project there may be many classes, but we want to execute only the selected classes.
We can pass class names of multiple packages also. If say suppose, we want to execute two classes in one package and other class from some other package.
The below is the example testng.xml which will execute the class names that are specified.