E:\Git\restapi-test1>java -classpath ".\lib\case.jar;.\lib\jcommander.jar;.\lib\testng.jar;.\lib\apirunner-1.0.0.jar" org.testng.TestNG testng.xml -d ".\reports" [TestNG] Running: E:\Git\restapi-test1\testng.xml
=============================================== Suite1 Total tests run: 0, Failures: 0, Skips: 0 =============================================== E:\Git\restapi-test1>
用例文件打包在case.jar中。
testng.xml文件里检查下Suite配置