• 2.4 【配置环境】TestNG安装


    两种方法可以安装TestNG Eclipse插件:  (来源:http://blog.csdn.net/hongchangfirst/article/details/7679849/)

    第一种,离线安装:

    TestNG Eclipse插件下载地址http://testng.org/doc/download.html

    下载下来以后,放在eclipse的plugins文件夹下,然后启动eclipse,点击Help -> software update -> Installed Software, 查找到TestNG Eclipse插件,点击Install(安装),安装完成后,重启eclipse。

    然后去Windows -> show view -> other,Java文件夹下,有TestNG,双击图标,在eclipse界面下面便会出现TestNg的窗体。

    第二种,在线安装: 

    正常安装教程:http://jingyan.baidu.com/article/870c6fc3048ff6b03fe4be85.html 

    help-> Install New Software->  点击add  -> 输入 Name:TestNG   以及location:http://beust.com/eclipse->勾选testNG

    安装过程中碰到提示 duplicate location   

    因为,您之前已经填写了该地址并且已经加载了,所以此时会提示duplicate location(重复的位置)

    1.复制本来要在location中输入的值。

    2.在“Install”窗口中的Work with文本框中直接粘贴刚刚复制的地址。

    3.勾选出现的testNG .一路nex即可。

    (来源)详细解决见:http://jingyan.baidu.com/article/c14654134360d60bfcfc4cf3.html

    勾选testNG,一路next时,半路提示有报错

    Cannot complete the install because one or more required items could not be found.
    Software being installed: TestNG M2E Integration (Optional) 6.11.0.201703011520 (org.testng.eclipse.maven.feature.feature.group 6.11.0.201703011520)
    Missing requirement: TestNG M2E Integration 6.11.0.201703011520 (org.testng.eclipse.maven 6.11.0.201703011520) requires 'bundle org.eclipse.m2e.core 1.5.0' but it could not be found
    Cannot satisfy dependency:
    From: TestNG M2E Integration (Optional) 6.11.0.201703011520 (org.testng.eclipse.maven.feature.feature.group 6.11.0.201703011520)
    To: org.testng.eclipse.maven [6.11.0.201703011520]

    ---好吧。。报这个错的时候,各种百度找方法。没找着讲testNG的。结果....重新在location输入了一次 http://beust.com/eclipse。勾选对应testNG。一步步next..就进入缓慢的安装流程了。

  • 相关阅读:
    IE 兼容问题笔记
    php编码与解码
    php 一些神奇加有趣的函数
    RESTful 规范
    关于CSS3背景渐变色无效问题
    ECShop
    php中的PHP_EOL换行符
    用 openSSL 生成 公钥 私钥
    app调用支付宝支付 笔记
    utf8 文件 错误保存为gbk 中文乱码 解决方法
  • 原文地址:https://www.cnblogs.com/ericazy/p/6551374.html
Copyright © 2020-2023  润新知