命令行执行: java -Dtestng.test.classpath="c:/build;c:/java/classes;" org.testng.TestNG testng.xml 转载于:https://www.cnblogs.com/zipon/p/5773569.html