Saturday, July 20, 2019

How to run TestNGXML file from command prompt in windows

Open Command prompt.
Go to workspace ( project workspace)
D:\Workspace\testProject>
Project workspace should have lib folder which contain all libraries ( which you have added in the project referenced libraries  in the project build path)

Create a testng.xml file which you want to run through testng

use the below command to execute testngXML file
java -cp D:\\\bin; D:\\\lib-314159\* org.testng.TestNG testng.xml

No comments:

Post a Comment