通过命令提示符执行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