I am trying to run TestNG from the command line, but this gives me an error. Can someone tell me where I am going wrong?
java -cp C: / TestNG directory / testng-6.2.jar; C: \ project directory \ src \ com \ suites \ suite \ shop org.testng.TestNG testng.xml
Error : could not find or load the main class org.testng.TestNG
My scripts work fine when I run them from the eclipse testng plugin .
source share