# Simple database result listener

**URL:** <https://forum.opentap.io/t/simple-database-result-listener/884>\
**Category:** General\
**Created:** [October 7, 2022, 8:04am UTC](https://forum.opentap.io/t/simple-database-result-listener/884 "2022-10-07T08:04:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![e.huijben](https://avatars.discourse-cdn.com/v4/letter/e/a9a28c/32.png) [@e.huijben](https://forum.opentap.io/u/e.huijben)\
**Post date:** [October 7, 2022, 8:04am UTC](https://forum.opentap.io/t/simple-database-result-listener/884/1 "2022-10-07T08:04:10Z")

</div>

Hi,  
I’am currently using OpenTap for assembly testing our produced PCB’s but I’am struggling how to use the result listeners. We want to write the test results to a cloud database for later usage. These values includes the pass/fail result from some subtests together with some values/verdicts. Also some general device data like serial numbers, ip and mac addresses and the general pass/fail output.  
It seems the ProstGreSQL stores too much information wich seems hard to use in a later stage.  
Does anyone has some advise? Maybe making a custom resultlistener is an option, but maybe someone has already done something similar.  
Regards, Evert Huijben

---

<div class="post-metadata">

**Author:** ![brennen\_direnzo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opentap.io/brennen_direnzo/32/6_2.png) [@brennen\_direnzo](https://forum.opentap.io/u/brennen_direnzo)\
**Post date:** [October 11, 2022, 2:35am UTC](https://forum.opentap.io/t/simple-database-result-listener/884/2 "2022-10-11T02:35:45Z")

</div>

@e.huijben in general we try to capture as much of the metadata as we can. There are definitely cases where it is not l needed. This may still be too much data but here is a good walkthrough of creating a database result listener (in this case for MongoDB). It may help as you look at creating a custom one:

> [@MongoDB anyone?](https://forum.opentap.io/t/mongodb-anyone/387):
>
> @carlos.montes, thanks for suggesting this, and I will try to find the time to keep updating the topic. I initially thought of posting the ResultListener verbatim, but due to my result storage paradigm, I decided it may be better to begin with a walkthrough of sorts, to get interested readers thinking about the whole result lifecycle. I don’t want to force my opinions on anyone about how results should be stored, so it may be worth starting from the beginning to create the ResultListener from …
