I\'m trying to run TestNG from command line, but it\'s giving me error. Can someone tell me where am I going wrong?
TestNG
java -cp C:/TestNG directory
Copy the below commands in a text file.
Edit the location.
Save it as yourtext.bat
yourtext.bat
Now, double click on the batch file created.
cd C:\Workspace\projectname java -cp C:\Workspace\projectname\lib*;C:\Workspace\projectname\bin org.testng.TestNG testng.xml
cd C:\Workspace\projectname
java -cp C:\Workspace\projectname\lib*;C:\Workspace\projectname\bin org.testng.TestNG testng.xml