Eclipse安装TestNG【附加转载:TestNG使用教程详解】

Eclipse有几种方式安装TestNG,我是直接在Eclipse MarketPlace 搜索安装的,步骤如下:

  1. 打开Eclipse Help -> Eclipse MarketPlace,搜索“TestNG”,选择install
    Eclipse安装TestNG【附加转载:TestNG使用教程详解】
  2. 选择install之后,确认安装即可。这个过程可能需要一段时间,下载比较慢。
    Eclipse安装TestNG【附加转载:TestNG使用教程详解】
  3. 安装完成后,重启Eclipse。
  4. 右键即可新建一个TestNG class 或者 运行一个 TestNG的file

Eclipse安装TestNG【附加转载:TestNG使用教程详解】
Eclipse安装TestNG【附加转载:TestNG使用教程详解】
TestNG使用教程详解[转载] 详见:https://blog.****.net/df0128/article/details/83243822