TestNG Eclipse plugin helps us in creating TestNG classes easily and executing them. Let’s see how to install “TestNG for Eclipse” plugin in Eclipse IDE.

TestNG Eclipse插件帮助我们轻松创建TestNG类并执行它们。 让我们看看如何在Eclipse IDE中安装“ TestNG for Eclipse”插件。

TestNG Eclipse插件 (TestNG Eclipse Plugin)

  1. Open Eclipse and go to Help | Eclipse Marketplace. Then search for “TestNG”. You should get following result.帮助| Eclipse市场 。 然后搜索“ TestNG”。 您应该得到以下结果。
  2. Click on Install and next window will show TestNG features to install. Select all of them and click on Continue button.
  3. In the next screen, accept the license agreement and click on Finish button.
  4. Eclipse will show the warning that you are installing software that contains unsigned content. Click on “Install Anway” button.
  5. After installation is finished, Eclipse will ask you to restart so that TestNG Eclipse plugin is available to use. Click on “Restart Now” to restart Eclipse and start using the TestNG plugin.

    安装完成后,Eclipse将要求您重新启动,以便可以使用TestNG Eclipse插件。 单击“立即重新启动”以重新启动Eclipse并开始使用TestNG插件。

用于Eclipse安装验证的TestNG (TestNG for Eclipse Installation Verification)

After Eclipse is restarted, go to New | Other. The wizard window will open up and you should see option to create a TestNG class.

重新启动Eclipse之后,转到New | 其他 。 向导窗口将打开,您将看到创建TestNG类的选项。

If you get above option, then it means that TestNG Eclipse plugin has been installed successfully.

如果您获得上述选项,则表明TestNG Eclipse插件已成功安装。

TestNG Eclipse教程 (TestNG Eclipse Tutorial)

You can go through TestNG Tutorial to learn how to create TestNG tests using TestNG for Eclipse plugin.

您可以通过TestNG教程来学习如何使用TestNG for Eclipse插件创建TestNG测试。

TestNG Eclipse运行配置 (TestNG Eclipse Run Configuration)

We can create TestNG classes run configuration so that we don’t have to find the test class and run it as TestNG test.

我们可以创建TestNG类运行配置,这样我们就不必找到测试类并将其作为TestNG测试运行。

Let’s see how easily we can create an Eclipse TestNG Run Configuration.

让我们看看我们如何轻松地创建Eclipse TestNG运行配置。

Open the TestNG test class and go to Run As | Run Configurations.

打开TestNG测试类并转到“运行方式| 运行配置

Click on the + button as shown in the below image.

单击+按钮,如下图所示。

In the configuration screen, provide a descriptive name for the configuration. Browse for the project and select the class as shown in the below image.

在配置屏幕中,为配置提供一个描述性名称。 浏览项目,然后选择类,如下图所示。

Click on “Apply” button to save the configuration. You can then click on “Run” button to run the configuration, which will run the TestNG test class.

单击“应用”按钮以保存配置。 然后,您可以单击“运行”按钮运行配置,这将运行TestNG测试类。

You can go to Run | Run Configurations and select the predefined configuration to run the TestNG test class.

您可以转到运行| 运行配置并选择预定义的配置以运行TestNG测试类。

That’s all for a quick tutorial on using Eclipse TestNG plugin.

这就是有关使用Eclipse TestNG插件的快速教程的全部内容。

翻译自: https://www.journaldev.com/21265/testng-eclipse-plugin

TestNG Eclipse插件相关推荐

  1. 小白安装eclipse插件—testNG

    本人刚接触编程,前两天一直跟eclipse插件耗上了,我想在eclipse里安装一个testNG插件,过程是以下这样的: 第一种方法尝试: 我通过万能的度娘找到了最简单的安装插件的方法,通过help- ...

  2. Eclipse 插件 在线安装 收集

    Eclipse 插件 在线安装: JInto: http://www.guh-software.de/eclipse/   Properties Editor : http://propedit.so ...

  3. eclipse插件说明

     Properties Editor Properties Editor 编辑java的属性文件,并可以自动存盘为Unicode格式 更多Properties Editor 信息  Colorer T ...

  4. Eclipse插件集合

    Rails框架软件:eXPlain是一款基于Rails框架开发的项目管理工具.它的安装说明请看这里,软件下载请点击这里,软件说明请点击这里.还有类似的Rails框架软件rPlan. YA系列软件:YA ...

  5. Eclipse插件简介

    Eclipse为插件安装提供多种方式,其中在线安装比较可靠.在Eclipse的工具栏中,选择Help → Install New Software-,将要在线安装插件的URL地址复制到work wit ...

  6. 10款好用Eclipse插件

    古人有云,工欲善其事,必先利其器.Eclipse作为世界上著名的跨平台的自由集成开发环境(IDE),无疑是开发中手中的利器,那么Eclipse插件就是这把利器的磨刀石.然而,我们许多Java初学者却不 ...

  7. 精选10个用于Java开发Spring Boot的Eclipse插件

    前言 作为从事Java多年的程序员,在此分享用于 Java 和 Spring Boot 开发的 10 大 Eclipse插件: 1. EGit - Eclipse 的 Git 集成 这可能是当今 Ja ...

  8. eclipse java开发插件_10大Java开发必备的Eclipse插件

    原标题:10大Java开发必备的Eclipse插件 今天小编来给大家介绍10个Java开发人员必备的Eclipse 插件,它们有各自的优势,你可以从中选择适合你的那款. 1. EGit EGit是 J ...

  9. java pmd 插件下载_pmd eclipse插件

    PMD是Eclipse上的一款源代码分析插件,与其他分析工具不同的是,PMD通过静态分析获知代码错误.也就是说,它可以在不运行Java程序的情况下报告错误.pmd 支持Java.JavaScript. ...

最新文章

  1. 2018 OO第一次总结(作业1-3)
  2. PHP高级编程SPL
  3. oralce 表空间解锁
  4. Java正则表达式应用
  5. java的算法库_利用Java写开源库 覆盖70多种推荐算法
  6. 出现ORA - 1017用户名/口令无效; 登录被拒绝 的问题
  7. easyui select ajax,easyui的combobox根据后台数据实现自动输入提示功能
  8. 线性代数问卷调查反馈——Find The Determinant III,Takahashi‘s Basics in Education and Learning
  9. 【CodeForces - 518D】Ilya and Escalator(概率dp,数学期望)
  10. 不要再用main方法测试代码性能了,用这款JDK自带工具
  11. java abstract类和abstract方法
  12. wireshark 抓 grpc 包
  13. 【人工智能】“看透”神经网络
  14. Gridview表格控件
  15. multisim中pwl_Multisim 14电路设计与仿真
  16. 2021深圳杯数学建模D题---基于DDPG算法的微分博弈问题(思路及代码)
  17. PHP短视频无水印解析源码
  18. 基于java的房屋出租管理系统
  19. 磨皮ps教程-庞姿姿
  20. openlayer添加自定义图片图层

热门文章

  1. Mapreduce运行过程分析(基于Hadoop2.4)——(三)
  2. IOS一些常用的越狱渠道
  3. [转载] Python repr() 函数
  4. [转载] python---python中时间的应用(time模块)
  5. [转载] Java之可变参数
  6. Vue.js 学习笔记三,一些基础指令,v-bind,v-on
  7. 2016/09/19
  8. CSU 1556 Pseudoprime numbers
  9. Oracle静态数据字典
  10. 网页设计师必备的35套最佳图标(免费下载)