空手道程度报告完整性 [英] Karate Extent Report integrtion

查看:64
本文介绍了空手道程度报告完整性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

空手道-junit将以BDD形式提供报告.我们有新要求将此报告推送到报表服务器KLOV(扩展报告).听众有可能吗?请让我们知道文档.

Karate -junit will provide Reports as BDD. We have new requirement to push this report to Report server KLOV(Extent Reports). Is this possible to with listener's? please let know the documentation.

集成程度报告和空手道框架.

推荐答案

请参阅此处的文档: https://github.com/intuit/karate#karate-info

在测试内(或在afterScenario函数中,如果已配置) 可以访问场景名称之类的元数据

within a test (or within the afterScenario function if configured) you can access metadata such as the Scenario name

您可以像这样添加afterScenario监听器":

You can add an afterScenario "listener" like this:

* configure afterScenario = 
"""
function(){
  var info = karate.info; 
  karate.log('after', info.scenarioType + ':', info.scenarioName);
  karate.call('after-scenario.feature', { caller: info.featureFileName });
}
"""

有关更多详细信息,请参考此文件 hooks.feature

Refer to this file for more details hooks.feature

这篇关于空手道程度报告完整性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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