【问题标题】: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 中,您可以设置方法: onTestFailure onTestSuccess 下一个变量: int failTC = 0; int passTC = 0 然后在方法中添加 +1 和 onFinish 打印结果。 【讨论】: