说明:classpath是jvm执行class时所加载的路径;--个人理解,如有不同:QQ:316567803
1.先下载插件
2.安装插件gavroche插件 只需将zip包导入即可;


3.先把项目打成jar包,然后将classpath的路径设置为jar包所在的位置;

4.cmdExecJar_Testng.bat 文件内容如下:

@echo off
set lib=D:\softerWare\IDEA\IdeaWorkSpace2\simpleInterfaceTest\out\artifacts\simpleInterfaceTest_jar
set CLASSPATH =%lib%\simpleInterfaceTest.jar;
java org.testng.TestNG D:/softerWare/IDEA/IdeaWorkSpace2/simpleInterfaceTest/testng.xml
pause
5.双击cmdExecJar_Testng.bat 即可 ;
