# How to create aggregated test reports from Cucumber JSON files

**URL:** <https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770>\
**Category:** Elasticsearch\
**Created:** [October 31, 2018, 8:22am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770 "2018-10-31T08:22:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashis](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@ashis](https://discuss.elastic.co/u/ashis)\
**Post date:** [October 31, 2018, 8:22am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770/1 "2018-10-31T08:22:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 31, 2018, 8:43am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770/2 "2018-10-31T08:43:55Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ashis](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@ashis](https://discuss.elastic.co/u/ashis)\
**Post date:** [October 31, 2018, 8:52am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770/3 "2018-10-31T08:52:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 31, 2018, 9:28am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770/4 "2018-10-31T09:28:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 28, 2018, 9:28am UTC](https://discuss.elastic.co/t/how-to-create-aggregated-test-reports-from-cucumber-json-files/154770/5 "2018-11-28T09:28:01Z")

</div>

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