【发布时间】:2017-11-03 05:56:09
【问题描述】:
错误:无法找到或加载主类 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 错误。尝试调试但仍不成功。谁能帮帮我。
【问题讨论】:
标签: jenkins selenium-webdriver testng