# How to use scripts in an integration Test

**URL:** <https://discuss.elastic.co/t/how-to-use-scripts-in-an-integration-test/18889>\
**Category:** Elasticsearch\
**Created:** [July 25, 2014, 6:09am UTC](https://discuss.elastic.co/t/how-to-use-scripts-in-an-integration-test/18889 "2014-07-25T06:09:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nick\_T](https://avatars.discourse-cdn.com/v4/letter/n/977dab/32.png) [@Nick\_T](https://discuss.elastic.co/u/Nick_T)\
**Post date:** [July 25, 2014, 6:09am UTC](https://discuss.elastic.co/t/how-to-use-scripts-in-an-integration-test/18889/1 "2014-07-25T06:09:27Z")

</div>

Hello,

I've got a native script written in Java and I would like to test this when  
my end-to-end integration tests run. The problem is that I do not know how  
to register the script with my test node.

In my application a test node is created with a temporary directory in  
/tmp. It will be different for each test run, so it's not very easy to  
ensure that the native script exists within that folder. Maybe I will just  
have to faff around copying it into the directory for each test node,  
though.

Any thoughts would be really helpful.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a46463e6-6679-46cd-ac7b-e310d8410ea5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a46463e6-6679-46cd-ac7b-e310d8410ea5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 1:13am UTC](https://discuss.elastic.co/t/how-to-use-scripts-in-an-integration-test/18889/2 "2017-07-06T01:13:13Z")

</div>


