-1

I'm not sure is that possible but i want get scenario steps like scenario name in karate.info. If it's possible how can do it. Or can you give me an other solution. My objective is create a json result file and i will send this file objects to elastic index. My json schema like this.


[{
  "scenarioName" : "",
  "description" : "",
  "status" : "",
  "executionTime" : "",
  "environment" : "",
  "failStep" : "",
  "buildNumber" : "",
  "feature" : "",
  "scenarioSteps" : "",
  "scenarioStartTime" : "",
  "scenarioEndTime" : "",
  "scenarioDuration" : "",
  "projectName" : ""
},
{
The other
}]

Thank you in advance.

Ali
  • 27
  • 4

2 Answers2

1

Did you check the report directory? The "surefire-reports" are JSONs, and you have a JSON per feature and a summary JSON per test run.

karate-summary-json.txt is the summary one, but the others have a ".json" suffix. These files are the log for all the info that are then used to create the HTML report.

aleruz
  • 133
  • 5
0

No this is not supported. You may have to look for another tool.

Peter Thomas
  • 47,282
  • 14
  • 68
  • 196