2
错误:无法找到或加载主类org.testng.TestNG错误:无法找到或加载主类org.testng.TestNG
我用下面的步骤/命令通过命令提示符下运行我的TestNG的脚本:
1. in my project folder, create a lib folder and copy all the jar files
2. open cmd --> cd myProjectDirectoryPath
3. set classpath=myProjectDirectoryPath/bin
4. set classpath=myProjectDirectoryPath/lib/*
5. java org.testNG.TestNG testng.xml
但在那之后我收到无法找到或加载主类org.testng.TestNG 错误。试图调试但仍不成功。有人能帮我吗。
非常感谢..添加testng jar工作! – nsd