gpt4 book ai didi

eclipse - 如何使用eclipse在testng中设置sysproperty?

转载 作者:行者123 更新时间:2023-12-04 05:35:47 27 4
gpt4 key购买 nike

我必须在 TestNG 中设置 'sysproperty key="org.uncommons.reportng.escape-output"value="false"/'。

  • 让我知道如何使用 eclipse 做到这一点。
  • 如果我无法使用 eclipse 设置属性,还请告诉我如何创建 TestNG ANT 任务。

  • 提前致谢。

    最佳答案

    问题的第一部分可以通过访问以下菜单来解决 - 运行 -> 运行 | 调试配置 -> 您的配置 -> '参数' 选项卡 -> VM 参数。将以下行添加到文本区域:

    -Dorg.uncommons.reportng.escape-output=false

    第二个问题引用 TestNG Ant documentation :
    <testng>
    <sysproperty key="org.uncommons.reportng.escape-output" value="false"/>
    <!-- the rest of your target -->
    </testng>

    关于eclipse - 如何使用eclipse在testng中设置sysproperty?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11957105/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com