简体   繁体   English

如何用空手道生成 cucumber json 报告

[英]How can I generate the cucumber json report with karate

At the moment, only hml cucumber reports are generated and also karate reports in json format but I can't get the Cucumber reports in json format to be able to use them in an integration Help!

The runner file looks like this ` enter image description here跑步者文件看起来像这样 `在此处输入图像描述

I have the configuration that you showed and the Cucumber reporting dependency, I don't know what else I need
since I am only getting the html report from cucumber and I need the json
<configuration>
    <projectName>karate_automatione</projectName>
    <outputDirectory>${project.build.directory}/cucumber-report-html</outputDirectory>
    <cucumberOutput>${project.build.directory}/cucumber.json</cucumberOutput>
</configuration>

Look in the karate-reports folder.查看karate-reports文件夹。 Any files with the *.json extension are in Cucumber JSON format.任何带有*.json扩展名的文件都是 Cucumber JSON 格式。

But each Feature will have a separate JSON output. But most tools that handle the Cucumber JSON are able to process multiple at a time.但是每个Feature都会有一个单独的 JSON output。但是大多数处理 Cucumber JSON 的工具都能够一次处理多个。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在空手道中将 Json Object 转换为 Json 数组? - How can I convert to Json Object to Json Array in Karate? 如何在空手道中针对预定义的json模式验证响应? - how can I verify response against a predefined json schema in karate? 如何在空手道中将变量用作 json 键? - How can I use a variable as a json key in karate? 如何使用空手道框架在数组中生成 N 个对象的 JSON? - How to generate JSON with N objects in array using Karate framework? 在字符串的 Json 数组中,如何匹配存在的字符串的一部分? 空手道DSL - In Json array of strings, how can I match a part of string is present? Karate DSL 剧作家 cucumber json 报告需要根据 package.Z466DEEC76ECDF3diff5FCA6D38 执行脚本5D6 生成不同的名称 - playwright cucumber json report need to generate with different names based on package.json execution scripts [ need diff report for each execution] 在空手道动态场景大纲的情况下,如何传递 JSON 数组以及场景大纲示例中的另一个参数 - In the case of dynamic scneario outline in karate, how can I pass a JSON array as well as another parameter in the examples for a scenario outline 空手道-如何导入JSON数据 - Karate - How to import json data 如何访问黄瓜“步骤”对象的 json 的所有“文本”属性并将它们记录到控制台? - How can I access all the “text” properties of the json of cucumber's “step”-object and log them to the console? 如何从Ruby黄瓜方案大纲中生成可通过黄瓜报告正确使用的结果? - How to generate results from a Ruby Cucumber Scenario Outline that can be properly consumed by cucumber-reporting?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM