【问题标题】:How to get the passed and failed test cases count from Extent Report html如何从 Extent Report html 中获取通过和失败的测试用例计数
【发布时间】:2018-12-03 10:11:36
【问题描述】:

如何从 Extent Report html 中获取通过和失败的测试用例计数,并在 Selenium 测试执行后在控制台中显示计数

【问题讨论】:

    标签: extentreports selenium-extent-report


    【解决方案1】:

    在您的 TestLister 中,您可以设置方法:

    1. onTestFailure
    2. onTestSuccess

    下一个变量:

    1. int failTC = 0;
    2. int passTC = 0

    然后在方法中添加 +1 和 onFinish 打印结果。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-08-14
      • 1970-01-01
      • 2018-04-21
      • 1970-01-01
      • 2017-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多