# Automation Testing for ES

**URL:** <https://discuss.elastic.co/t/automation-testing-for-es/158489>\
**Category:** Elasticsearch\
**Created:** [November 28, 2018, 7:45am UTC](https://discuss.elastic.co/t/automation-testing-for-es/158489 "2018-11-28T07:45:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darshan\_Shah](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Darshan\_Shah](https://discuss.elastic.co/u/Darshan_Shah)\
**Post date:** [November 28, 2018, 7:45am UTC](https://discuss.elastic.co/t/automation-testing-for-es/158489/1 "2018-11-28T07:45:03Z")

</div>

Need to create a dummy searchResponse type variable to use it for automated unit testing..

Please suggest if there is something directly available

---

<div class="post-metadata">

**Author:** ![Darshan\_Shah](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@Darshan\_Shah](https://discuss.elastic.co/u/Darshan_Shah)\
**Post date:** [November 28, 2018, 7:45am UTC](https://discuss.elastic.co/t/automation-testing-for-es/158489/2 "2018-11-28T07:45:39Z")

</div>

We use scalaTest for unittesting

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [November 28, 2018, 9:16am UTC](https://discuss.elastic.co/t/automation-testing-for-es/158489/3 "2018-11-28T09:16:52Z")

</div>

`SearchResponse` has a public constructor, and the handful of its dependencies that I looked at also have public constructors. Can't you just make one directly?

---

<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:** [December 26, 2018, 9:16am UTC](https://discuss.elastic.co/t/automation-testing-for-es/158489/4 "2018-12-26T09:16:55Z")

</div>

Closed on December 26, 2018, 9:16am UTC

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