2015-07-21 71 views
0

我試圖與下面的URL在Eclipse安裝TestNG插件..TestNG中的問題與Eclipse

Select Help/Install new software. 
Search for new features to install. 
New remote site. 
For Eclipse 3.4 and above, enter http://beust.com/eclipse. 
For Eclipse 3.3 and below, enter http://beust.com/eclipse1. 

但不幸的是這兩種獲取連接被拒絕..

我從https://github.com/cbeust/testng-eclipse/下載的文件

當我解壓zip,它具有以下的事情:

Scripts, 
testng-eclipse-feature, 
testng-eclipse-plugin, 
testng-eclipse-Update-Site, 
.cvsignore, 
.gitignore, 
.project, 
.travel.yml, 
changes.log, 
new-release, 
pom.xml, 
README.md 

我已經複製了功能和插件,並分別粘貼在eclipse功能和插件文件夾中。現在,如果我創建TestNG的類,

我收到以下錯誤「的選擇嚮導無法啓動。 插件org.testng.eclipse無法加載類org.testng.eclipse.wizards.NewTestNGClassWizard。 org.testng.eclipse.wizards.NewTestNGClassWizard「

任何人都可以幫忙嗎?

感謝

+0

您是否嘗試從eclipse市場安裝?請試一試。如果不是,請指定您是否使用eclipse luna? –

+0

我正在使用Eclipse Juno ..版本:4.2.2 構建ID:M20130204-1200 – ChanGan

回答

0

您使用的是Eclipse的舊版本,請升級到月神,並給它一個嘗試它肯定會工作。

1)首先嚐試安裝新軟件的同樣方法。 2)進入Eclipse Market的地方,只需輸入TestNG並搜索,就會顯示插件並安裝它。