# How to share function between test cases

**URL:** <https://forum.katalon.com/t/how-to-share-function-between-test-cases/20015>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [February 25, 2019, 5:07pm UTC](https://forum.katalon.com/t/how-to-share-function-between-test-cases/20015 "2019-02-25T17:07:56Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![Brandon\_Hein](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/brandon_hein/32/1092_2.png) [@Brandon\_Hein](https://forum.katalon.com/u/Brandon_Hein)\
**Post date:** [February 15, 2021, 6:32pm UTC](https://forum.katalon.com/t/how-to-share-function-between-test-cases/20015/18 "2021-02-15T18:32:13Z")

</div>

Sure. Let me link you some pseudo code I wrote in another topic a while back ( instead of re-typing it 🙂 ):

> [@Use of Object Repository](http://forum.katalon.com/t/use-of-object-repository/50753/8):
>
> I then call the needed method in my test - cases to create a test-object to interact with. Just so I’m clear, your page objects just have methods for creating test objects, yes? Then you are calling these keywords from your script to get test objects, which you then use to perform work (i.e. click(), sendKeys(), etc.)? Is this considered an implementation of POM? This is totally fine, and essentially replaces the OR with your own custom containers. and Is there any other effective way o…

This is, very generally, my interpretation of a good POM structure.

---

_[View the full topic](https://forum.katalon.com/t/how-to-share-function-between-test-cases/20015)._
