# calling funciton

**URL:** <https://forums.eggplantsoftware.com/t/calling-funciton/2896>\
**Category:** Eggplant Functional\
**Created:** [July 8, 2011, 8:46am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896 "2011-07-08T08:46:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chintu](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/c/cdc98d/32.png) [@chintu](https://forums.eggplantsoftware.com/u/chintu)\
**Post date:** [July 8, 2011, 8:46am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896/1 "2011-07-08T08:46:38Z")

</div>

hi i have created a suite A in i have script Test and with a function createDB  
in another suite b i have created script as Test now HOw can i call createDB function in my Test scipt

---

<div class="post-metadata">

**Author:** ![JoostVoeten](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/joostvoeten/32/91_2.png) [@JoostVoeten](https://forums.eggplantsoftware.com/u/JoostVoeten)\
**Post date:** [July 8, 2011, 8:57am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896/2 "2011-07-08T08:57:43Z")

</div>

that would be done by placing suite A as helper suite into the helper tab of suite B. You would then have access to all the scripts and images from suite A.

---

<div class="post-metadata">

**Author:** ![chintu](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/c/cdc98d/32.png) [@chintu](https://forums.eggplantsoftware.com/u/chintu)\
**Post date:** [July 11, 2011, 2:21am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896/3 "2011-07-11T02:21:46Z")

</div>

as I mentioned earlier both suite having script name as test i want to use the function in the script test which is in the suite A…

I have added suite A in the helpers tab still getting error “unknown function”

---

<div class="post-metadata">

**Author:** ![JoostVoeten](https://forums.eggplantsoftware.com/user_avatar/forums.eggplantsoftware.com/joostvoeten/32/91_2.png) [@JoostVoeten](https://forums.eggplantsoftware.com/u/JoostVoeten)\
**Post date:** [July 11, 2011, 10:28am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896/4 "2011-07-11T10:28:12Z")

</div>

That should not be the problem what I did not see was that the function createDB is within the test script. If you would create a script called createDB and place the content of the function in the script without the declaration except for any parameters it should work.

---

<div class="post-metadata">

**Author:** ![WmBell](https://forums.eggplantsoftware.com/letter_avatar_proxy/v4/letter/w/51bf81/32.png) [@WmBell](https://forums.eggplantsoftware.com/u/WmBell)\
**Post date:** [July 12, 2011, 6:25am UTC](https://forums.eggplantsoftware.com/t/calling-funciton/2896/5 "2011-07-12T06:25:51Z")

</div>

Start by declaring InitialSuites with the path for the Test with the createDB. Now when you call the function createDB it will look in the Test suite from InitialSuites for the createDB script.

The instructions for using InitialSuites are in the Eggplant online help manuals.
