【问题标题】:IntelliJ TestNG customsuite do not copy parametersIntelliJ TestNG customsuite 不复制参数
【发布时间】:2016-06-06 14:11:07
【问题描述】:

我对 IntelliJ 中的 TestNG 插件有疑问。我使用testng.xml 运行我的测试。我在套件和测试级别定义参数。

如果我只想通过选择 IntelliJ 并作为调试运行来运行一项测试,IntelliJ 会将测试复制到一个临时的 testng.xml 中,如下所示:

/Users/robert/Library/Caches/IntelliJIdea2016.1/temp-testng-customsuite.xml

问题是,套件在我的testng.xml 文件中没有定义参数。所以TestNG忽略了测试,因为它错过了与测试@Parameters声明不匹配的参数。

如何使用参数化 testng.xml 在 IntelliJ 中运行单个 TestNG 测试?

最好的问候 罗伯特

【问题讨论】:

    标签: java xml intellij-idea testng intellij-plugin


    【解决方案1】:

    试试这个:

    在 IntelliJ 上,转到 Run > Edit Configurations > Select tab Configuration > Select tab Parameters

    在那里,添加所需的参数。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-05-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多