当前位置: 首页 > 知识库问答 >
问题:

使用Eclipse的TestNG中的问题

滕英奕
2023-03-14
Select Help / Install new software. 
Search for new features to install. 
New remote site. 
For Eclipse 3.4 and above, enter http://beust.com/eclipse. 
For Eclipse 3.3 and below, enter http://beust.com/eclipse1. 
Scripts, 
testng-eclipse-feature, 
testng-eclipse-plugin, 
testng-eclipse-Update-Site, 
.cvsignore, 
.gitignore,
.project,
.travel.yml,
changes.log,
new-release,
pom.xml,
README.md

我已经复制了特性和插件,并分别粘贴在eclipse特性和插件文件夹中。现在,如果我创建TestNG类,

我得到以下错误“选定的向导无法启动。插件org.testng.eclipse.wizards.newtestngClassWizard.org.testng.eclipse.wizards.newtestngClassWizard无法加载类org.testng.eclipse.wizards.newtestngClassWizard”

有人能帮上忙吗??

谢谢

共有1个答案

罗昱
2023-03-14

您使用的是旧版本的Eclipse,请升级到Luna并尝试一下,它肯定会工作的。

1)首先从安装新软件开始尝试同样的方法

2)进入Eclipse Market place,只需输入TestNG和search,它就会显示插件并安装它。

 类似资料:
  • 在此处输入图像描述我已经安装了Android sdk并尝试创建新项目,但我遇到了appcompat_v7的问题。我已经尝试了几种方法通过谷歌搜索恢复问题,如项目 - 我遇到了以下问题:D:\NewWorkSpace\appcompat_v7\res\values-v21\style_base。xml:75:错误:检索项的父项时出错:未找到与给定名称“android:Widget.Material.

  • 我已经尝试在eclipse help中安装TestNG-->install new software http://beust.com/eclipse 我收到以下错误: 无法连接存储库http://beust.com/eclipse/content.xml 我错过什么了吗?

  • 我目前正在构建一个Maven项目,其中也包括Eclipse中的TestNg库。我使用最新的Selenium版本3.8.1运行在Java 8上(从Java 9切换过来,因为我听说这会导致其他版本的问题)。我的项目运行顺利,没有任何问题,测试运行良好,然后它开始抛出< code > NullPointerException s。我尝试再次构建项目,但没有成功。 这是我的设置: 下面是TestBase类

  • 我需要在一个研究项目中使用testNG,所以我尝试通过两种方法安装ecplipse插件:第一种是使用发行包(我在Archlinux上使用Eclipse Juno)https://aur.Archlinux.org/packages/eclipse-testng/;第二种是使用Eclipse add-ons安装程序(“帮助”>“安装新软件...”)以下步骤如下:http://selftechy.co