This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/tutorials/how-to-use-custom-keyword-in-groovy-class.html
This is a companion discussion topic for the original entry at https://docs.katalon.com/katalon-studio/tutorials/how-to-use-custom-keyword-in-groovy-class.html
@Andrej_Podhajsky
Hi All,
How to call one custom keyword script from another custom keyword script.
I have created two scripts under keywords section:
commonMethod.groovy & AppSpecific.groovy
I have created one method in commonMethod.groovy say createNote() and now I want to use this method in AppSpecific.groovy how can I use.
Please let me know asap.
it depends on how you defined package.
assumption: you defined commonMethod in package org.myPackage to call createNote() you will use following call:
(new org.myPackage.commonMethod()).createNote())
I have use this one but it was not working
i would like to see error and code of your functions