eclipse 安装TestNg
通过eclipse安装TestNg,过程如下:
1.点击help-->Install New Software
2.打开如下窗口,点击add,name自定义输入,Location中输入http://beust.com/eclipse,点击add
3.下面的窗口中等待加载后,会出现TestNG,全部勾选,点击下一步,后面一路点击下一步,最后一步选择我同意,点击finish,等待安装即可。
遇到的问题
在安装的过程中报错,报错内容如下:
An error occurred while collecting items to be installed
session context was:(profile=_Users_macbook_Applications_eclipse_Eclipse.app_Contents_Eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.beust.jcommander,1.72.0
No repository found containing: osgi.bundle,com.beust.jcommander.source,1.72.0
No repository found containing: osgi.bundle,org.apache-extras.beanshell.bsh,2.0.0.b6
No repository found containing: osgi.bundle,org.apache-extras.beanshell.bsh.source,2.0.0.b6
No repository found containing: osgi.bundle,org.testng,6.14.3.r201802240500
No repository found containing: osgi.bundle,org.testng.eclipse,6.14.3.201902250526
No repository found containing: org.eclipse.update.feature,org.testng.eclipse,6.14.3.201902250526
No repository found containing: osgi.bundle,org.testng.eclipse.maven,6.14.3.201902250526
No repository found containing: org.eclipse.update.feature,org.testng.eclipse.maven.feature,6.14.3.201902250526
No repository found containing: org.eclipse.update.feature,org.testng.p2.feature,6.14.3.r201802240500
No repository found containing: osgi.bundle,org.testng.source,6.14.3.r201802240500
No repository found containing: osgi.bundle,org.yaml.snakeyaml,1.17.0
No repository found containing: osgi.bundle,org.yaml.snakeyaml.source,1.17.0
上网搜了一圈,原因是因为缺少依赖的jar包引起的。
解决方法:
上网搜索jcommander的1.72版本jar包,下载完成后,在eclipse中导入外部依赖jar包
1.选择一个工程,点击右键,选择BuildPath-->Configure Build Path
2.点击Add External JARs...,选择下载的jar,添加完成后,点击右下角的Apply即可。
3.添加完依赖jar包后,重新按照上面的步骤安装一遍即可。
4.安装完成后,重启eclipse,安装成功验证:点击Window-->Show View-->Other;java中出现TestNG,即安装成功。
eclipse 安装TestNg的更多相关文章
- Eclipse安装TestNG插件
TestNG按照其文档的定义是: TestNG是一个测试框架,其灵感来自JUnit和NUnit的,但引入了一些新的功能,使其功能更强大,使用更方便. TestNG是一个开源自动化测试框架;TestNG ...
- Eclipse安装TestNG
1.在Eclipse中点击Help菜单,选择Install New Software选项,在弹出页面中输入安装地址即可安装. http://beust.com/eclipse 2. 3. 4. 等待T ...
- (转)关于eclipse的TestNG的插件安装方法
背景:最近在学习spring 4.x时候,用到了testNG的测试方法,发现需要在eclipse安装testNG插件才能够正常进行单元测试. 1 插件安装 今天在配置eclipse+selenium+ ...
- 1--Selenium环境准备--Eclipse 添加Testng插件
Eclipse安装TestNG TestNG官网地址:http://testng.org/ 1.离线安装TestNG插件: 受网络等因素影响,在线安装方式速度比较慢,可以通过如下方式离线安装TestN ...
- Eclipse中安装TestNG插件
在Eclipse中安装TestNG也像安装其他插件一样非常方便,如下: 选择菜单:Help->Install New Software,然后在弹出窗口中的“Work with”中输入地址: ht ...
- 安装TestNG在eclipse中的插件
两种方法可以安装TestNG Eclipse插件: 第一种,离线安装 TestNG Eclipse插件下载地址http://testng.org/doc/download.html. 下载下来以后,放 ...
- 在eclipse中安装TestNG
https://www.cnblogs.com/baixiaozheng/p/4989856.html 1.可借助Eclipse的Marketplace来安装TestNG Eclipse插件 a.打开 ...
- 1、在Eclipse中安装TestNG(离线方式)
1.TestNG安装包:链接: https://pan.baidu.com/s/1UXZlJfrp8LM-6XmDLzVXKg 密码: 46y2 2.安装教程: (1).下载testNG 离线安装包[ ...
- eclipse中testNG的两种安装方式
今天给大家带来两种关于testNG中的安装方式:1.在线安装(本人亲测有效!!!)2.离线安装 一.在线安装testNG插件的步骤: 1.给大家提供一个testNG在线的安装的地址:http://dl ...
随机推荐
- ingress部署
# 手动部署 # 部署ingress-nginx 官方地址:https://github.com/kubernetes/ingress-nginx # 参考链接:https://www.jianshu ...
- BOOST 解析,修改,生成xml样例
解析XML 解析iworld XML,拿到entity和VisibleVolume的数据 int ParseiWorlds::readXML(const bpath &dir) { ptree ...
- BZOJ 1406: [AHOI2007]密码箱 exgcd+唯一分解定理
推出来了一个解法,但是感觉复杂度十分玄学,没想到秒过~ Code: #include <bits/stdc++.h> #define ll long long #define N 5000 ...
- Ubuntu:笔记本计算机屏幕合盖后进入/不进入休眠设置
造冰箱的大熊猫,本文在Ubuntu 18.04上验证通过@cnblogs 2019/5/12 1.问题描述 安装有Ubuntu的笔记本计算机与KVM控制器相连,同时一台台式机也与KVM相连.启动笔记本 ...
- AcWing:148. 合并果子(哈夫曼树)
在一个果园里,达达已经将所有的果子打了下来,而且按果子的不同种类分成了不同的堆. 达达决定把所有的果子合成一堆. 每一次合并,达达可以把两堆果子合并到一起,消耗的体力等于两堆果子的重量之和. 可以看出 ...
- js获取用户当前页面复制的内容并修改
如果只是单纯的获取页面上复制的内容可以使用window.getSelection()来获取选中的内容,在执行复制操作就可以了,但是如果想修改复制的内容可以先获取要复制的内容修改之后再用document ...
- phpcms9 从注入点入手和 从前台getshell
弄了3天了 这个点 总结一下这三天的坑吧 0X01 注入点入手 /index.php?m=wap&c=index&a=init&siteid=1 获取cookie 传给 us ...
- 更换django自带的下载链接
class Case(models.Model): file_type = MyFileField(verbose_name='file_obj', max_length=256, blank=Tru ...
- 模拟LinkedList
Linkedlist是一个集合容器,具有增删改查基本功能,本例中模拟增删查,对于修改,只需要将原节点处的val更新为新值即可,增加和删除在链表中速度是比较快的,查找,修改慢,因为要从头或者从尾开始遍历 ...
- koa 基础(十)原生node.js 在 koa 中获取表单提交的数据
1.app.js // 引入模块 const Koa = require('koa'); const router = require('koa-router')(); /*引入是实例化路由 推荐*/ ...