How to use @Keyword in other file


#1

Hello,

Can anyone please help on this.

I have 2 files A.groovy and B.groovy under keywords.
I wrote @Keyword in A.groovy, I want to call this method in B.groovy file. How to do this.


How to Upload a file from windows explorer
Call custom keyword from a custom keyword
#2

Hi Sudheer D J,

Maybe you can find your answer through the example like this: https://forum.katalon.com/discussion/7097/is-it-possible-to-call-one-custom-keyword-function-from-another-custom-keywords

Hope it useful for you.


#3

use
(new com.package.you.used.ClassName()).functionFromClass()
example can be seen

(new com.swre.encryption()).decrypt('cryptedText')