TestNG使用总结

时间:2024-12-07 10:33:02

1、Eclipse中安装TestNG的方法

打开Eclipse   Help ->Install New Software ,   然后Add   "http://beust.com/eclipse"

TestNG使用总结

选中TestNG进行安装即可

2、选中测试文件,右键,点Run As ->TestNG Test报错:
Couldn't contact the Remote TestNg client, Uncheck the 'Use Project testng.jar' option from your Project Properties and try again.

需要去掉Use Project testng.jar前面的勾选

TestNG使用总结

该问题参考:https://github.com/cbeust/testng-eclipse/issues/144