在以下期间发生内部错误:“计算启动按钮工具提示". TestNG安装后,带有Eclipse Kepler的java.lang.IllegalArgumentException [英] An internal error occurred during: "Compute launch button tooltip". java.lang.IllegalArgumentException with Eclipse Kepler after TestNG installation

查看:251
本文介绍了在以下期间发生内部错误:“计算启动按钮工具提示". TestNG安装后,带有Eclipse Kepler的java.lang.IllegalArgumentException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我下载TestNG之前,我在Eclipse Kepler中的项目运行良好.下载TestNG后,我无法单击运行"按钮输入我的代码.单击运行后,或者即使我将鼠标悬停在运行后,也会显示以下错误消息.

My projects in Eclipse Kepler were working just fine until I downloaded TestNG. Post TestNG download, I am unable to click on Run button for my code. after I click on run or even if I hover over on run the following error message is displayed.

在以下期间发生内部错误:计算启动按钮工具提示". java.lang.IllegalArgumentException

An internal error occurred during: "Compute launch button tooltip". java.lang.IllegalArgumentException

如果我卸载测试,则所有脚本都将运行.但是,一旦我重新安装测试",问题就会再次出现

If I uninstall testing all my scripts run. But as soon as I reinstall Testing the issue reappears

我尝试了以下方法:

  • 重新安装Eclipse
  • 更改工作区
  • 重新启动Eclipse
  • 创建新项目
  • 从Eclipse Marketplace以及通过安装新软件来安装TestNg.

推荐答案

错误说明了一切:

An internal error occurred during: "Compute launch button tooltip". java.lang.IllegalArgumentException

根本原因

您无法单击代码的 Run 按钮,或者将鼠标悬停在 Run 上时单击 Run 后,您会看到出现错误,因为这些按钮的标签是根据活动编辑器中的* .java文件计算的.如果有两个具有相同类的罐子,则可能会发生此问题. ( selenium-server-standalone-3.9.1 client-combined-3.9.1 ).

Root Cause

You are unable to click on Run button for your code or after you click on Run when you hover over on Run you see the error because the labels of these buttons are calculated depending on the *.java file in the active editor. This issue can occur if there are two jars with same classes e.g. (selenium-server-standalone-3.9.1 and client-combined-3.9.1).

所以可能的解决方案是:

So the possible solutions are :

  • 仅使用单个 Java客户端变体,即 selenium-server-standalone-3.9.1 client-combined-3.9.1
  • 将文件中的所有内部类(包括静态类)从私有更改为默认访问权限.
  • IDE 中清理项目.
  • 在执行之前和之后,使用 CCleaner 清除所有操作系统琐事测试套件
  • 如果您需要卸载 Eclipse ,请使用 Revo卸载程序适度扫描.
  • 重新启动您的系统.
  • 执行您的测试

  • Use only single Java Client variant either selenium-server-standalone-3.9.1 and client-combined-3.9.1
  • Change all inner classes in the file (including static ones) from private to default access.
  • Clean your Projects from your IDE.
  • Use CCleaner to wipe off all the OS chores before and after the execution of your Test Suite
  • Incase you need to uninstall Eclipse use Revo Uninstaller with Moderate scan.
  • Reboot your System.
  • Execute your Tests

在这里您可以找到有关 "Compute launch button tooltip" error的详细讨论.

Here you can find here a detailed discussion on "Compute launch button tooltip" error

这篇关于在以下期间发生内部错误:“计算启动按钮工具提示". TestNG安装后,带有Eclipse Kepler的java.lang.IllegalArgumentException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆