# Creating fixtures for opensearch-dashboards-test-library library

**URL:** <https://forum.opensearch.org/t/creating-fixtures-for-opensearch-dashboards-test-library-library/13484>\
**Category:** OpenSearch Dashboards\
**Created:** [March 23, 2023, 9:53am UTC](https://forum.opensearch.org/t/creating-fixtures-for-opensearch-dashboards-test-library-library/13484 "2023-03-23T09:53:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![thilog](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/thilog/32/991_2.png) [@thilog](https://forum.opensearch.org/u/thilog)\
**Post date:** [March 23, 2023, 9:53am UTC](https://forum.opensearch.org/t/creating-fixtures-for-opensearch-dashboards-test-library-library/13484/1 "2023-03-23T09:53:00Z")

</div>

Hi there,

we have been looking into using [GitHub - opensearch-project/opensearch-dashboards-functional-test: Maintains functional tests for OpenSearch Dashboards and Dashboards plugins](https://github.com/opensearch-project/opensearch-dashboards-functional-test) to implement functional tests for an OpenSearch Dashboards plugin we develop.

AFAICS the handling of fixtures is implemented using [GitHub - opensearch-project/opensearch-dashboards-test-library: Provides utility functions, page object models, test fixture handling for developers to write functional tests for OpenSearch Dashboards and plugins](https://github.com/opensearch-project/opensearch-dashboards-test-library), which provides a means to import mappings and documents into OpenSearch using ` TestFixtureHandler`.

Can you recommend how to efficiently create these fixtures using data available in an OpenSearch cluster? We have been using [GitHub - elasticsearch-dump/elasticsearch-dump: Import and export tools for elasticsearch](https://github.com/elasticsearch-dump/elasticsearch-dump) for such tasks before, but the format unfortunately isn’t compatible.

Thanks,  
Thilo

---

<div class="post-metadata">

**Author:** ![joshuarrrr](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/joshuarrrr/32/4947_2.png) [@joshuarrrr](https://forum.opensearch.org/u/joshuarrrr)\
**Post date:** [March 28, 2023, 11:11pm UTC](https://forum.opensearch.org/t/creating-fixtures-for-opensearch-dashboards-test-library-library/13484/2 "2023-03-28T23:11:34Z")

</div>

Have you taken a look at [opensearch-dashboards-functional-test/writing\_tests.md at main · ashwin-pc/opensearch-dashboards-functional-test · GitHub](https://github.com/ashwin-pc/opensearch-dashboards-functional-test/blob/main/docs/writing_tests.md)? I don’t have any specific answers off the top of my head but @tianle-huang-amzn or @ashwinpc may be able to help.
