How to create aggregated test reports from Cucumber JSON files

(ashis raj) #1

I am pretty new to this, I have got Elasticsearch, Logstash and Kibana installed and running successfully.

My requirement is, I have a test report generated by Cucumber in JSON format for each run.
I want to create aggregated test reports (graphs and charts) from Cucumber JSON file, something like

I need the exact steps in order to create some sample basic report. Here is the JSON test data.

Here is the JSON file on my Gdrive.

(David Pilato) #2

I don't see the relationship between Elasticsearch and Cucumber... Is there any?
May be something to ask to Cucumber project?

(ashis raj) #3

Correct. But I want to import the Cucumber JSON file into Elasticsearch and create the aggregated test reports in Kibana.

So, I finally wrote a Maven plugin in Java to read the Test Results at Feature, Scenario and Steps level and publish the JSON documents into Elastic Search.

(David Pilato) #4

You can write your own scripts to read JSON and send curl commands to elasticsearch to index in it.
You can use Logstash may be as well.
FSCrawler project has an option to send also JSON documents from a folder to Elasticsearch. See

(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.