How to create aggregated test reports from Cucumber JSON files


(ashis raj) #1

Hi,
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 http://tech.trivago.com/cluecumber-report-plugin/

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.
https://drive.google.com/open?id=1PBqy4CHHpVqQaxab1sWsOZbqedjM0FPo


(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 https://fscrawler.readthedocs.io/en/fscrawler-2.5/admin/fs/local-fs.html?highlight=json#indexing-json-docs


(system) #5

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