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,即安装成功。
最新文章
- Angular2入门系列教程2-项目初体验-编写自己的第一个组件
- VS2015 打开html 提示 未能完成操作 解决办法
- 3.OGG函数
- IOS9 新加关键字 nullable、nonnull、null_unspecified、null_resettable
- 程序中使用gc_enable() 和 gc_disable()开启和关闭
- day3-Python集合、函数、文件操作,python包的概念
- stm32 usb数据接收与数据发送程序流程分析
- Linux编译安装RTL8192CU芯片驱动,使用TP_LINK wn823n无线网卡
- IT人才什么最重要
- 创建GitHub技术博客
- pthread_join
- 4、Nginx安装与配置
- Docker 容器操作命令
- tcpdump -i eth0 -n -vvv src or dst port 443
- Qt+QGIS二次开发:QGIS中使用QgsRubberBand类创建临时图形
- Tomcat相关的配置和设置
- 四种数据库随机获取N条数据的方法
- TopCoder SRM624 BuildingHeightEasy 题解
- angular项目文件概览
- 函数式编程--响应式编程 ---android应用例子
热门文章
- Echarts 饼状图 字体重叠问题
- loj2314 「NOIP2017」小凯的疑惑[同余最短路or数论]
- 【hdu5517】Triple
- 生产问题之StackOverflowError异常小记
- 什么是JWT?Token与Session的区别?
- 关于.Net中Process和ProcessStartInfor的使用
- 利用msyqlfont + plsql 客户端 完成msyql数据向oracle的转移
- Shell登陆
- matplotlib(二):折线图
- AtCoder AGC031D A Sequence of Permutations (群论、置换快速幂)