您的位置:首页 > 编程语言 > Java开发

TestNG Eclipse Plugin Installation - Offline

2015-12-03 19:11 543 查看
      最近在安装TestNG插件时,中途下载过程中总是出现错误,连接不上Repository, 估计是网络问题。网上查了一下,有个Offline 安装方法,可以解决在线安装出错的问题,转之。

原文地址是:http://blog.sodhanalibrary.com/2015/07/testng-eclipse-plugin-installation.html . 国内网络可能无法访问,推酷上也有转载,可以搜看。

----------------------------------------------------------------------------------------

TestNG is good framework inspired by JUnit, It is having advanced features than JUnit. I tried to install TestNG eclipse plugin to my Eclipse version of Juno. But I got some hell errors. Finally I was failed to install that in
online. Then I tried to install that in offline. Initially I did some research on how to install TestNG plugin in offline and I found different jars for different versions of eclipse and some online forum users stated that they still getting some configuration
issues. Then I decided to build suitable version of TestNG plugin with my own Eclipse. Follow the below procedure for successful installation

Download TestNG Eclipse Plugin Project

Download TestNG from the Github (  https://github.com/cbeust/testng-eclipse ). Once you download the ZIP file, extract it. Now you can seetesting-eclipse-plugin folder in it. This is the Eclipse plugin project that we have to build.

Import Eclipse Plugin Project

Open your Eclipse.

Click on "File > Import".

Now select "General > Existing Projects into Workspace".

Now click on "Next".



Now click on "Browse"



Now select the folder "testing-eclipse-plugin"



Now click on "OK" and then "Finish".

Project will be created.

Now right click on the project and click on "Export..."



Now select "Plug-in Development > Deployable plug-ins and fragments".

Click on "Next".



Now click on " Browse " and select the target folder.

Click on " Finish ".



Jar will be generated as like shown in the below image.

This is the plugin jar which we required:



Now copy this jar and paste in " dropins " folder of eclipse.

Now restart the eclipse, Now you can see all TestNG options in active mode.

原文: http://blog.sodhanalibrary.com/2015/07/testng-eclipse-plugin-installation.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  eclipse TestNG