eclipse TestNG eclipse插件在哪里
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11954536/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where is the TestNG eclipse plugin
提问by Kannan Ekanath
Where to find 5.x Testng eclipse plugin
Problem Installing older TestNG plugin on Eclipse 3.5
在 Eclipse 3.5 上安装旧版 TestNG 插件时出现问题
Both questions are quite old so the links there do not work anymore. I have Eclipse 3.5 and I would like to install the Eclipse TestNG plugin. What is the location of the update site? I am moving to TestNG so I can move the latest version of TestNG
这两个问题都很老,所以那里的链接不再有效。我有 Eclipse 3.5,我想安装 Eclipse TestNG 插件。更新站点的位置是什么?我要迁移到 TestNG,所以我可以迁移最新版本的 TestNG
PS: I have tried http://beust.com/eclipse/but it throw me an NPE as shown below
PS:我尝试过http://beust.com/eclipse/但它给我一个 NPE,如下所示
回答by Pradip Bhatt
Try to download TestNG plugin from Market Place.
尝试从 Market Place 下载 TestNG 插件。
Eclipse - > Help - > Eclipse MarketPlace -> TestNG..
Eclipse -> 帮助 -> Eclipse MarketPlace -> TestNG..
Install it. After restarting Eclipse use it.
安装它。重启 Eclipse 后使用它。
回答by Walls
Try the URL that the jar comes from: http://beust.com/eclipse/Use that above link as the Location, make sure to include the http://.
尝试 jar 来自的 URL:http: //beust.com/eclipse/使用上面的链接作为位置,确保包含 http://。
回答by Adrien Be
I used the latest url posted on the following page http://beust.com/eclipse-old/
我使用了以下页面上发布的最新网址http://beust.com/eclipse-old/
That is http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
那是http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
It worked perfectly fine.
它工作得很好。
Your URL looks fine (http://beust.com/eclipse) hence I suspect an issue unrelated to this, maybe your Eclipse installation is buggy or incorrectly configured (I did not need any special config on my Eclipse install though).
您的 URL 看起来不错 (http://beust.com/eclipse) 因此我怀疑存在与此无关的问题,也许您的 Eclipse 安装有问题或配置不正确(尽管我的 Eclipse 安装不需要任何特殊配置)。
回答by Ankit jain
IN windows how to install testng plugin in Eclipse:
在 windows 中如何在 Eclipse 中安装 testng 插件:
1. Open Eclipse
2. Click on Help at top menu
3. Click on Install New Software... sub-menu
4. Click on Add button
Do the following at Add Repository pop-up:
5. Enter name as (Example - testng)
6. Enter URL as your requirement:
For Eclipse 3.4 and above, enter http://beust.com/eclipse
For Eclipse 3.3 and below, enter http://beust.com/eclipse1
7. Click on OK button
8. Check process bar is displayed because plugin is installed in eclipse
After installation follow the steps below:
i) Restart eclipse
ii) Go to Window-> Preferences and observe the left panel
iii) TestNG is enlisted
安装后,请按照以下步骤操作:
i) 重新启动 eclipse
ii) 转到 Window-> Preferences 并观察左侧面板
iii) TestNG 已登记
回答by Bharat Sethi
I noticed it was proxy that was stopping for installation after configuring proxy it installed like cream.
我注意到它是在配置代理后停止安装的代理,它像奶油一样安装。
earlier comment: After a lot of attemp and trying different URL finally found the URL worked for me : http://beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
较早的评论:经过多次尝试和尝试不同的 URL 后,终于发现该 URL 对我有用:http: //beust.com/eclipse-old/eclipse-6.7.0.20120825_1316/
all other URL kept on giving error for MD5 example: An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Problems downloading artifact: osgi.bundle,org.testng.eclipse,6.9.11.201604020423. MD5 hash is not as expected. Expected: da03b0c2cd24e2636ad05a151538b195 and found 60ea74539d11470e704c4210de6e5573. Problems downloading artifact: osgi.bundle,org.testng.eclipse.maven,6.9.11.201604020423. MD5 hash is not as expected. Expected: 91946a86a2a3ae80d8583be62a9fe068 and found 0f70e9fd8a1bb2564f26bc4730a58922.
所有其他 URL 继续为 MD5 示例提供错误:收集要安装的项目时发生错误会话上下文是:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect , 操作数=, 动作=)。问题下载神器:osgi.bundle,org.testng.eclipse,6.9.11.201604020423。MD5 哈希不符合预期。预期:da03b0c2cd24e2636ad05a151538b195 并找到 60ea74539d11470e704c4210de6e5573。问题下载神器:osgi.bundle,org.testng.eclipse.maven,6.9.11.201604020423。MD5 哈希不符合预期。预期:91946a86a2a3ae80d8583be62a9fe068 并找到 0f70e9fd8a1bb2564f26bc4730a58922。
回答by Pawan Roy
In my case, looks like updates for Eclipse was the issue.
就我而言,问题似乎是 Eclipse 的更新。
I just installed the updates to my eclipse (Luna Service Release 2 (4.4.2) Build id: 20150219-0600) and restarted Eclipse. Then, went to help->Eclipse Marketplace-> searched TestNG and Installed it.
我刚刚安装了我的 Eclipse 更新(Luna Service Release 2 (4.4.2) Build id: 20150219-0600)并重新启动了 Eclipse。然后,去帮助-> Eclipse Marketplace->搜索TestNG并安装它。
This worked for me.
这对我有用。
回答by JBourne
The given site "http://beust.com/eclipse" gets redirected to http://dl.bintray.com/testng-team/testng-eclipse-release/
给定的站点“ http://beust.com/eclipse”被重定向到 http://dl.bintray.com/testng-team/testng-eclipse-release/
because of that eclipse fails to fetch the plugin in the original URL.
因为 eclipse 无法在原始 URL 中获取插件。
to fix that, go to help->install new software now add new site at work with "https://dl.bintray.com/testng-team/testng-eclipse-release/"
要解决此问题,请转到帮助-> 安装新软件,现在使用“ https://dl.bintray.com/testng-team/testng-eclipse-release/”添加新站点
it is "https", doing this will list down the plugins available in the URL,
它是“https”,这样做会列出 URL 中可用的插件,
select TestNG, and continue to install it.
选择TestNG,继续安装。
it worked for me, hope it works for you as well.
它对我有用,希望它也对你有用。
回答by Abhishek
open Eclipse CLick on Help at top navigator Click on install new software Click on add Button Add Repository pop-up is open Enter name as (Example - TestNG) Enter URL - http://beust.com/eclipseClick on OK button Check process bar is displayed because plugin is install in ecplise After restart the eclipse Check Testng is install in ecplise
打开 Eclipse 单击顶部导航器中的帮助 单击安装新软件 单击添加按钮 添加存储库弹出窗口已打开 输入名称为(示例 - TestNG) 输入 URL - http://beust.com/eclipse单击确定按钮 检查过程显示栏是因为插件安装在 ecplise 重新启动 eclipse 后检查 Testng 安装在 ecplise
回答by Shano
For eclipse Luna - http://marketplace.eclipse.org/content/testng-eclipse/metricsDrag and drop the install icon to the eclipse workspace and follow instructions.
对于 eclipse Luna - http://marketplace.eclipse.org/content/testng-eclipse/metrics将安装图标拖放到 eclipse 工作区并按照说明进行操作。
Works like charm.
像魅力一样工作。
回答by Surbhi
if the link: http://beust.com/eclipse/is not working for versions 3.4 and above, there could be some problem with the Network Connections of your eclipse. Go to Window->Preferences-> search for SSL or Network Connections. Check if the settings for the same are in place as per your internet/intranet.
如果链接:http: //beust.com/eclipse/不适用于 3.4 及更高版本,则 eclipse 的网络连接可能存在一些问题。转到窗口-> 首选项-> 搜索 SSL 或网络连接。检查是否根据您的 Internet/Intranet 进行了相同的设置。