简体   繁体   English

安装 TestNG Eclipse 插件 6.14.3 版本时出错

[英]Error while Installing TestNG Eclipse Plugin 6.14.3 Version

I am getting the following error while installing TestNG plugin( 6.14.3) in Eclipse.在 Eclipse 中安装 TestNG 插件(6.14.3)时出现以下错误。

Missing requirement: TestNG Eclipse Support 6.14.3.201902250526 (org.testng.eclipse 6.14.3.201902250526) requires 'bundle org.eclipse.jdt.launching 3.10.0' but it could not be found Cannot satisfy dependency: From: TestNG 6.14.3.201902250526 (org.testng.eclipse.feature.group 6.14.3.201902250526) To: org.testng.eclipse [6.14.3.201902250526]缺少要求:TestNG Eclipse Support 6.14.3.201902250526 (org.testng.eclipse 6.14.3.201902250526) requires 'bundle org.eclipse.jdt.launching 3.10.0' but it could not be found 无法满足依赖:来自:TestNG 3.10.0.0 org.testng.eclipse.feature.group 6.14.3.201902250526) 致:org.testng.eclipse [6.14.3.201902250526]

I am using Eclipse Oxygen- March Edition.我正在使用 Eclipse Oxygen-三月版。 Could anyone please help me here?有人可以在这里帮助我吗?

Your version on Eclipse (Oxygen) is too old for that version of TestNG.您在 Eclipse (Oxygen) 上的版本对于该版本的 TestNG 来说太旧了。

Version 3.10.0 of org.eclipse.jdt.launching was not introduced until Eclipse Photon so you need at least that version of Eclipse, but preferably the current version (Eclipse 2018-12 at time time of writing) org.eclipse.jdt.launching 的 3.10.0 版本直到 Eclipse Photon 才被引入,因此您至少需要该版本的 Eclipse,但最好是当前版本(撰写本文时为 Eclipse 2018-12)

We had same issue for several employees.我们有几个员工有同样的问题。 In our case it doesn't relate to Eclipse version.在我们的例子中,它与 Eclipse 版本无关。 Seems as new WebSense antivirus blocked the installation of the TestNG from default location.似乎新的 WebSense 防病毒软件阻止了从默认位置安装 TestNG。 Eclipse showed the error from the description and continued to look for "alternative solution" which took many hours, but finally TestNG was installed successfully. Eclipse 显示了描述中的错误并继续寻找“替代解决方案”,这花了很多时间,但最终 TestNG 安装成功。 Just have patience.只要有耐心。 Or try to disable antivirus.或者尝试禁用防病毒软件。

let process to continue in spite of the error尽管出现错误,让进程继续

Thanks Greg and Ilana.谢谢格雷格和伊拉娜。 TestNG installed successfully when the Eclipse was updated to 2018-12 Version. Eclipse更新到2018-12版本后TestNG安装成功。

If you are facing issue while installing TestNG in Eclipse version there are few simple steps to follow:如果您在 Eclipse 版本中安装 TestNG 时遇到问题,可以遵循几个简单的步骤:

  1. Download zipped latest version of Eclipse from below location ( http://dl.bintray.com/testng-team/testng-eclipse-release/ )从以下位置下载压缩的最新版本的 Eclipse ( http://dl.bintray.com/testng-team/testng-eclipse-release/ )

  2. Store it your drive (zipped folder suppose in C drive)将其存储在您的驱动器中(假设在 C 驱动器中的压缩文件夹)

  3. After that go to Eclipse and install new software, click on add, archive, and complete the installation by selecting Next option when prompted)之后转到 Eclipse 并安装新软件,单击添加、存档,并在出现提示时通过选择下一步选项来完成安装)

  4. Restart Eclipse you will see TestNG option in there.重新启动 Eclipse,您将在其中看到 TestNG 选项。

while installing from add new software ,there is an option to check for solution rather than default selection.从添加新软件安装时,有一个选项来检查解决方案而不是默认选择。 Please select different version of TestNG which is compatible with your eclipse version .This solution worked for me while using eclipse Mars(4.5.2)请选择与您的 eclipse 版本兼容的不同版本的 TestNG。此解决方案在使用 eclipse Mars(4.5.2) 时对我有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Eclipse juno 中安装 TestNg 时,出现错误 - while installing TestNg in Eclipse juno , i am getting error TestNG 检测到 TestNG 版本 7.4.0 错误 - TestNG detected TestNG version 7.4.0 error 无法在最新的 Eclipse IDE 中安装 TestNG 插件 - Unable to install TestNG plugin in latest Eclipse IDE 我应该安装testng作为eclipse插件在Eclipse中运行测试吗 - Should i install testng as eclipse plugin to run the test in Eclipse 在Eclipse IDE中执行脚本时出现TestNG错误 - TestNG error when executing script in eclipse ide Eclipse Testng插件5.14.6.20110125_1620有问题 - Eclipse Testng Plugin 5.14.6.20110125_1620 has issues 我正在获取未创建的会话异常,我正在使用Kepler版本的eclipse,appium 1.6.5和AVD版本7.0,以下是TestNG错误日志: - I am getting session not created exception, i am using Kepler version of eclipse, appium 1.6.5 and AVD version 7.0, below are the TestNG error logs: 当我尝试安装黄瓜Eclipse插件时,它没有安装并显示一些错误 - When I am trying to install cucumber Eclipse Plugin then it is not installing and showing some error 使用 testng 运行 selenium 时出错 - Getting error while running selenium with testng Maven TestNG XSLT插件问题-找不到插件错误 - Maven TestNG XSLT plugin issue - Plugin Not found error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM