# Testing kibana 8.5

**URL:** <https://discuss.elastic.co/t/testing-kibana-8-5/344727>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [October 10, 2023, 11:01am UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727 "2023-10-10T11:01:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzm1370](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mzm1370/32/130615_2.png) [@mzm1370](https://discuss.elastic.co/u/mzm1370)\
**Post date:** [October 10, 2023, 11:01am UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727/1 "2023-10-10T11:01:02Z")

</div>

Hello, I want to put the success and failure logs of Kibana automatic test into the file, please help me

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [October 10, 2023, 1:17pm UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727/2 "2023-10-10T13:17:30Z")

</div>

Hi @mzm1370,

Welcome back! Can you explain what you mean by Kibana automatic test and what you're trying to test?

---

<div class="post-metadata">

**Author:** ![mzm1370](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mzm1370/32/130615_2.png) [@mzm1370](https://discuss.elastic.co/u/mzm1370)\
**Post date:** [October 11, 2023, 8:39am UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727/4 "2023-10-11T08:39:47Z")

</div>

Hi @carly.richmond  
I wrote my tests with functional test and I want write failure or success log descripe into file  
How can I do this?

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [October 14, 2023, 11:11am UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727/5 "2023-10-14T11:11:17Z")

</div>

Hi @mzm1370,

I'll be honest, I've not done any plugin development, but I would have guessed for functional tests you would either:

1. Use a mock and check for emitted failure or success
2. Start and Elasticsearch and Kibana instance before your tests and check the output of the screen, and check the output of the logs with a file load. But I expect that you would need to factor in timeouts and the file location which could be challenging and potentially lead to long running or flaky tests if you're not careful.

There are some guidance on Kibana plugin testing [here](https://www.elastic.co/guide/en/kibana/current/testing-kibana-plugin.html) and [here](https://elastic.co/guide/en/kibana/current/development-tests.html#development-functional-tests) that could hopefully help to.

---

<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 11, 2023, 11:12am UTC](https://discuss.elastic.co/t/testing-kibana-8-5/344727/6 "2023-11-11T11:12:04Z")

</div>

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