1. 在线安装testNG插件
安装test NG时发现从网上搜到的链接都不能用了,报如下错误:
HTTP Remote File Permanently Removed: http://beust.com/eclipse/compositeContent.xml
可以使用最新链接安装test NG插件
步骤:
①打开Eclipse,在Eclipse顶部菜单栏中点击【Help】,然后选择【Install New SoftWare】;
②在弹出的Install中点击Add;
③在弹出的Add Repository中输入
Name:testNG
Location:TestNG Eclipse Plugin Update Site | testng-eclipse-update-site
输入完毕后,点击Add;
④等待安装,并检查是否安装成功
2. 离线安装testNG插件
testNG 官网:
TestNG - Welcomehttps://testng.org/doc/index.html
3. 在Eclipse商城安装
①打开eclipse,【help】—【Eclipse Marketplace】
②在搜索栏中搜索testng,点击右下角install
③等待安装,并检查是否安装成功