【问题标题】:testng.xml not present in project explorer项目资源管理器中不存在 testng.xml
【发布时间】:2014-12-11 07:00:53
【问题描述】:

我正在使用 eclipse IDE (版本:Kepler Service Release 2 Build id: 20140224-0627) 并且我已经为此安装了适当的 testng 插件。我还在项目 -> 属性 -> 中包含了 testng.jar (testng-6.8.8)构建路径 -> 库。

问题是我找不到我的 testng.xml 文件。这可能是一个非常基本的问题,但我正面临。

以下是我的项目浏览器的视图。

任何帮助表示赞赏。 . !!

【问题讨论】:

  • 删除部分是项目机密。

标签: eclipse testng


【解决方案1】:

插件或 jar 不附带 xml。您需要创建 testng.xml。

【讨论】:

    【解决方案2】:

    如果你想运行你创建的所有测试,那么只需右键单击项目/包/类,一直向下滚动到 TestNG -> 创建 TestNG 类

    【讨论】:

      猜你喜欢
      • 2021-05-13
      • 1970-01-01
      • 2012-05-03
      • 1970-01-01
      • 2010-11-26
      • 1970-01-01
      • 2018-08-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多