【问题标题】:Testng RetryListener is not FAILING the test case after the maximum attemptTestng RetryListener 在最大尝试后没有失败测试用例
【发布时间】:2018-07-23 15:50:28
【问题描述】:
我通过这个链接http://www.seleniumeasy.com/testng-tutorials/execute-only-failed-test-cases-using-iretryanalyzer 使用了TestNG RetyListener,然后在testng.xml 中包含了监听器。
- 当作为 TestNG 套件运行测试用例时,它运行良好,并且在最大重试次数后测试标记为 FAILURE
选择环境:QA
以 FAILURE 状态重试 testcase1 1 次。
testcase1 跳过。
以 FAILURE 状态重试 testcase1 2 次。
testcase1 跳过。
以 FAILURE 状态重试 testcase1 3 次。
testcase1 跳过。
错误:testcase1 失败
- 当使用 maven 命令 (mvn clean test) 运行它时,在最大重试后测试被标记为已跳过,从而导致 Allure 报告生成问题
以 FAILURE 状态重试 testcase1 1 次。
testcase1 跳过。
以 FAILURE 状态重试 testcase1 2 次。
testcase1 跳过。
以 SKIP 状态重试 testcase1 3 次。
在使用 Maven 时需要帮助才能获得与 TestNG 相同的行为
【问题讨论】:
标签:
java
maven
selenium
junit
testng