在Eclipse中安装TestNG单元测试框架的步骤:
1、启动Eclipse,在Help->Software Update->Find and Install, 在弹出的向导中,选择"Search New Features to Install", 点击"New Remote Site",如图所示。在URL中输入 ,点击"OK"。

2、如图所示,点击"Finish",Eclipse会自动完成下面的安装。

3、安装好TestNG后,在Eclipse中单击"Window"->Show View->Other->Java->TestNG, TestNG的视图就打开了。