我该如何解决找不到或加载主类org.testng.Testng

时间:2018-07-20 09:17:33

标签: java selenium-webdriver testng testng-eclipse

通过命令提示符执行testng.xml时遇到错误 错误:找不到或加载主类org.testng.TestNG

D:\>cd D:\Test\20July2018\test_automation\test_Framework\TestAutomation

D:\Test\20July2018\test_automation\test_Framework\TestAutomation>set projectLocation=D:\Test\20July2018\test_automation\test_Framework\TestAutomation

D:\Test\20July2018\test_automation\test_Framework\TestAutomation>cd %projectLocation%

D:\Test\20July2018\test_automation\test_Framework\TestAutomation>set classpath=%projectLocation%\bin;%projectLocation%\Ivy\*

D:\Test\20July2018\test_automation\test_Framework\TestAutomation>java org.testng.TestNG %projectLocation%\config\testrun_config.xml
Error: Could not find or load main class org.testng.TestNG

让我知道我在犯错。

谢谢 Prashant

0 个答案:

没有答案