In the earlier section we had created a testng.xml
file but haven't yet verified it by running it. In this section we will learn how to run the testng.xml
configuration file. There are multiple ways of running the testng.xml
file as a TestNG suite.
You can execute the testng.xml
file through the command prompt. This also allows the use of multiple testng.xml
files to execute simultaneously through TestNG. Before running a testng.xml
suite through the command prompt, we need to compile our project code. However, compilation of project code using Java is out of the scope of this book and is not covered. Hence, we will use the class files compiled by Eclipse. The code compiled by Eclipse can be found under a folder named bin
inside your Test
Java project folder.
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere...