# When static methods should be used in Custom Keywords?

**URL:** <https://forum.katalon.com/t/when-static-methods-should-be-used-in-custom-keywords/52116>\
**Category:** Miscellaneous\
**Tags:** start-page\
**Created:** [February 14, 2021, 9:42pm UTC](https://forum.katalon.com/t/when-static-methods-should-be-used-in-custom-keywords/52116 "2021-02-14T21:42:19Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![gdearest07](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/gdearest07/32/22419_2.png) [@gdearest07](https://forum.katalon.com/u/gdearest07)\
**Post date:** [February 15, 2021, 7:19pm UTC](https://forum.katalon.com/t/when-static-methods-should-be-used-in-custom-keywords/52116/10 "2021-02-15T19:19:31Z")

</div>

Bionell, I have a confession to make. The reason why I created this topic is because I was trying to implement POM as per [Page Object Model](http://forum.katalon.com/t/page-object-model/8346/4) :

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/d/4/d479e458d62916bd56e401f5d2730155adfdd4ba.png)

[Page Object Model](http://forum.katalon.com/t/page-object-model/8346/14) :

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/c/d/cd40a445ffe5384af2cd2d484841af989e1f4217.png)

Franco is not using **static** but in the Katalon sample projects **static** is used :

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/8/5/85db61467b1c797b1e9eb7c3b92010c7253cdc07.png)

**The problem is** that when I was running the tests I created as per Franco’s approach ( **w/o static** ) in **PARALLEL** mode some tests are failed. When I was running the tests from Katalon sample (Shopping Card, **static is used** in the keywords) in **PARALLEL** mode, there was no problem. So, I was thinking that **static** might be needed in order to be able to run tests in **PARALLEL in Katalon** (even though it goes against all my previous experience with Java, but the truth is that I have no idea how Groovy and Katalon work “under the hood” and when instances of those “keyword” classes are created (if ever) )

---

_[View the full topic](https://forum.katalon.com/t/when-static-methods-should-be-used-in-custom-keywords/52116)._
