引诱为 2 个测试套件生成结果而 运行 只有一个?
Allure generating results for 2 test suites while running only one?
我是 运行 一个 TestNG 套件,在同一个 class 中有 3 个测试。问题是,当我打开 Allure 报告(使用码头服务器)时,我可以看到 2 个名称相同且内容相同的套件。每间套房之间只有 2 处不同。
- 组曲 2 总是比组曲 1 晚 1 秒完成。
- 我正在使用 3 个不同的线程在 3 个设备上并行执行。如果套件的线程顺序为 1、2、3,则套件 2 的顺序为 1、3、2(与套件 1 相比)
TestNG 报告看起来不错。在那里找不到任何套件重复。
Surefire 配置如下。
请在下面找到我的 surefire 配置。 Executor.xml 是我的testng xml。
org.apache.maven.plugins
maven-surefire-插件
2.12.2
<testFailureIgnore>false</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<!--only for 1.3.* TestNG adapters. Since 1.4.0.RC4, the listener adds via ServiceLoader-->
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.testng.AllureTestListener</value>
</property>
</properties>
<suiteXmlFiles>
<suiteXmlFile>Executer.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
从 Allure 1.4.0.RC4 开始,监听器通过 ServiceLoader 添加。为避免结果重复,请删除您的这部分配置。
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.testng.AllureTestListener</value>
</property>
</properties>
我是 运行 一个 TestNG 套件,在同一个 class 中有 3 个测试。问题是,当我打开 Allure 报告(使用码头服务器)时,我可以看到 2 个名称相同且内容相同的套件。每间套房之间只有 2 处不同。
- 组曲 2 总是比组曲 1 晚 1 秒完成。
- 我正在使用 3 个不同的线程在 3 个设备上并行执行。如果套件的线程顺序为 1、2、3,则套件 2 的顺序为 1、3、2(与套件 1 相比)
TestNG 报告看起来不错。在那里找不到任何套件重复。
Surefire 配置如下。
请在下面找到我的 surefire 配置。 Executor.xml 是我的testng xml。 org.apache.maven.plugins maven-surefire-插件 2.12.2
<testFailureIgnore>false</testFailureIgnore>
<argLine>
-javaagent:${settings.localRepository}/org/aspectj/aspectjweaver/${aspectj.version}/aspectjweaver-${aspectj.version}.jar
</argLine>
<!--only for 1.3.* TestNG adapters. Since 1.4.0.RC4, the listener adds via ServiceLoader-->
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.testng.AllureTestListener</value>
</property>
</properties>
<suiteXmlFiles>
<suiteXmlFile>Executer.xml</suiteXmlFile>
</suiteXmlFiles>
</configuration>
</plugin>
从 Allure 1.4.0.RC4 开始,监听器通过 ServiceLoader 添加。为避免结果重复,请删除您的这部分配置。
<properties>
<property>
<name>listener</name>
<value>ru.yandex.qatools.allure.testng.AllureTestListener</value>
</property>
</properties>