如何自定义机器人框架报告中生成的日志文件 [英] How to Customise the Log file generated in the robot Framework Report

查看:34
本文介绍了如何自定义机器人框架报告中生成的日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想要在 Robot Framework 中生成的报告的日志文件中测试场景,但是在单击测试场景时,测试脚本正在扩展并且测试步骤清晰可见,如何解决此问题

I want only test scenarios in the Log file of the report generated in the Robot Framework but while clicking upon the Test Scenarios the test scripts is getting expanded and the Test steps are clearly visible how can stop this issue

我附上了我想要实现的截图

I have attached the screenshots I want to achieve this

但是我得到了这种类型的日志报告

But I am getting this type of Log Report

推荐答案

在 Robot Framework 用户指南中,有一整节专门介绍此功能:删除和扁平化关键字.在您的情况下,我认为 --removekeywords all--removekeywords connected 应该特别有趣.

In Robot Framework userguide there is an entire section dedicated to this functionality: Removing and Flattening Keywords. In your case I think that the --removekeywords all or the --removekeywords passed should be of particular interest.

这篇关于如何自定义机器人框架报告中生成的日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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