gpt4 book ai didi

testng - 诱惑报告: How to show Test Name Value From TestNG Suite XML File On Report?

转载 作者:行者123 更新时间:2023-12-02 04:40:48 24 4
gpt4 key购买 nike

在TestNG框架中,我们使用testng套件xml文件来定义测试并调用mvn(使用-Dtestset=testng.xml)来执行它们。在xml文件的一侧,我们有带有名称值的测试标签,但是这个名称值似乎没有出现在Allure报告中的任何地方。有没有办法让它显示在 Allure 报告上(最好与 @Feature 注释位于同一位置)?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Suite For Debug Run" verbose="10" configfailurepolicy="continue">
<test verbose="10" name="Debug Run" preserve-order="true">
<classes>
<class name="com.someTestClassName">
<methods>
<include name="someTests"/>
</methods>
</class>
</classes>
</test>
</suite>

最佳答案

因此,为了回答这个问题,我可以声明,现在您可以通过实现您自己的 Allure 适配器来解决这个问题,如我上面提到的 Github 问题中所述。然而,这可能会在某些 1.4.x 版本中得到支持。

关于testng - 诱惑报告: How to show Test Name Value From TestNG Suite XML File On Report?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24939056/

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