1、下載Eclipse開發工具,下載地址:http://www.eclipse.org
2、安裝JDK,配置環境變量
3、下載TestNG包,下載地址:http://testng.org/doc/download.html
4、在Eclipse工具中安裝TestNG
點擊Eclipse工具菜單中的Help->Install new software,點擊【Add】按鈕,
Name:TestNG
點擊【OK】按鈕,開始安裝
5、將下載的TestNG中的testng-6.2.jar包,添加到Eclipse中,直接拷貝粘貼到項目中,選擇testng-6.2.jar右鍵Add to build path
至此TestNG測試環境就準備好了。