Maven+testNG+idea

Maven+testNG+idea 

1、新建项目,选择Maven框架

2、在src -> test -> java 中新建测试类:TestDemo.java

3、在项目下新建目录 res,新建文件 testNG.xml

 

 4、修改POM.xml文件内容

5、点击 test 执行testDemo脚本

 

 6、查看执行结果:

 

 

posted @ 2018-11-07 17:58  拟好,妖妖灵  阅读(117)  评论(0编辑  收藏  举报