在范围报告中添加测试用例失败原因 [英] add test cases failure reason in extent report

查看:101
本文介绍了在范围报告中添加测试用例失败原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用

selenium webdriver java 

和我的

extent report,

我想添加测试用例的总失败日志. 我该怎么做?

i want to add the test cases total failure log. How i can do this?

推荐答案

要添加测试用例失败的原因,我使用了以下代码:

To add the test case failure reason, i used the following code:

logger.log(LogStatus.INFO, result.getThrowable());

记录器所在的位置

ExtentTest logger 

结果是

ITestResult result

这篇关于在范围报告中添加测试用例失败原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆