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
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:\
No comments:
Post a Comment