# Passing the TestObject as function parameter

**URL:** <https://forum.katalon.com/t/passing-the-testobject-as-function-parameter/8293>\
**Category:** Miscellaneous\
**Created:** [November 15, 2017, 1:37pm UTC](https://forum.katalon.com/t/passing-the-testobject-as-function-parameter/8293 "2017-11-15T13:37:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tanveer\_Khan](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Tanveer\_Khan](https://forum.katalon.com/u/Tanveer_Khan)\
**Post date:** [November 15, 2017, 1:37pm UTC](https://forum.katalon.com/t/passing-the-testobject-as-function-parameter/8293/1 "2017-11-15T13:37:42Z")

</div>

Hi team,  
Can you please let me know if there is any way to pass the katalon test object as a parameter of a user defined function. if yes then please kindly guide me through the same.

Thank you

---

<div class="post-metadata">

**Author:** ![Trong\_Bui](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/trong_bui/32/374_2.png) [@Trong\_Bui](https://forum.katalon.com/u/Trong_Bui)\
**Post date:** [November 15, 2017, 5:46pm UTC](https://forum.katalon.com/t/passing-the-testobject-as-function-parameter/8293/2 "2017-11-15T17:46:19Z")

</div>

if you have a chance to open a test case’s scripts, you will see that Katalon Studio looking for Test Object via a String (Object Repository/Page/Object), so you could create user defined function (or custom keywork to be correct) with this String as a param.

> **[How to create a custom keyword](https://docs.katalon.com/katalon-studio/tutorials/create_custom_keyword.html)**
>
> In addition to the built-in keywords, Katalon Studio users can define custom keyword to extend the capability and reuse them across projects

---

<div class="post-metadata">

**Author:** ![Tanveer\_Khan](https://avatars.discourse-cdn.com/v4/letter/t/9e8a1a/32.png) [@Tanveer\_Khan](https://forum.katalon.com/u/Tanveer_Khan)\
**Post date:** [November 16, 2017, 6:39am UTC](https://forum.katalon.com/t/passing-the-testobject-as-function-parameter/8293/3 "2017-11-16T06:39:16Z")

</div>

@Trong Bui : thanks for the response and yes it was helpful…Thank you
