天天看點

eclipse安裝testng、python插件

TestNG插件的安裝方法(線上,離線)

方法一: 離線安裝

TestNG Eclipse插件下載下傳位址http://testng.org/doc/download.html。

下載下傳下來以後,放在eclipse的plugins檔案夾下,然後啟動eclipse,點選Help -> software update -> Installed Software, 查找到TestNG Eclipse插件,點選Install(安裝),安裝完成後,重新開機eclipse。

然後去Windows -> show view -> other,java檔案夾下,有TestNG,輕按兩下圖示,在eclipse界面下面便會出現TestNg的窗體

方法二: 線上安裝

具體步驟如下:

    1. 選擇菜單:Help->Install New Software,然後在彈出的視窗中的Work with後面的輸入框中輸入:

http://beust.com/eclipse。

eclipse安裝testng、python插件

    2. 然後點選Add按鈕,選中TestNG後一路點選Next下去安裝即可,直到Finished之後,重新開機Eclipse完成安裝。

    3.安裝成功後,在Package Explore點選右鍵:New→Other就可以看到TestNG選項,則表示安裝成功

eclipse安裝testng、python插件

Python插件的安裝方法(離線、線上)

方法一: 離線安裝

先手動下載下傳插件,下載下傳位址:http://www.pydev.org/download.html

下載下傳完成以後,解壓出來兩個檔案夾:features 和 plugins 。将這兩個檔案拷貝至eclipse下面的dropins檔案夾就可以

重新開機eclipse,就可以在window - preferences中看到pydev插件了

方法二: 線上安裝

選擇菜單:Help->Install New Software,然後在彈出的視窗中的Work with後面的輸入框中輸入:

http://pydev.org/updates

一路點選Next下去安裝即可,直到Finished之後,重新開機Eclipse完成安裝

eclipse安裝testng、python插件

pydev插件的配置

打開菜單: window - preferences,選擇pydev頁籤,在InterPreters——python interpreter檢視python安裝位置是否正确

如果不正确,點選New重新配置即可

eclipse安裝testng、python插件