I am using following command on command line:
C:\Users\MyScriptDirectory>java -classpath ".;Lib\selenium-2.45.0\libs\testng-6.8.5.jar" org.testng.TestNG testng.xml
Getting error message:
[TestNG] [Error]
Cannot find class in classpath: com.companyname.SSProject.LaunchSSProject
I have made following entry in testng.xml:
<class name="com.companyname.SSProject.LaunchSSProject" />
"com.companyname.SSProject" is my package having LaunchSSProject.java file inside it
When I am running the same testng.xml from eclipse, it's working fine.
Does anyone know how to fix this problem? Thanks in advance