TestNG Eclipse Plugin Installation - Offline

      最近在安装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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值