I'm trying to run testng.xml from command line. My project is maven project and mapped to git repository. I'm using below command to run from command line but facing [TestNG] [ERROR] Cannot find class in classpath:"filename" error
java -cp C:\Softwares\TestngJars\testng-6.9.6.jar;C:\Users\praveen.ps\git\qawebautomationwoohoo\QCMainWoohoo\target\classes;C:\Softwares\TestngJars\jcommander-1.7.jar;C:\Softwares\TestngJars\bsh-1.3.0.jar org.testng.TestNG testing-prav.xml
Please help me to resolve this issue.
Note: I'm able to run the same from my eclipse without any issue and able to invoke the same from jenkins