How to call custom keywords inside a Keywords folder

I want to use default custom keywords inside my Keywords folder. When I am calling the custom keyword it is throwing an error.

Do I need to add any import statement for Custom keywords? please help me

Hi. You can call it directly as a method. Just import keyword (class) name.

Those Custom Keywords are coming from Plugins.

I’ve never tried this but give this a go…

import com.katalon.plugin.keyword.connection.DatabaseKeywords.getGlobalConnection
// etc.

Either

import com.katalon.plugin.keyword.connection.DatabaseKeywords

or

import static com.katalon.plugin.keyword.connection.DatabaseKeywords.getGlobalConnection

(if those methods are even static)

1 Like

Yep. I wondered about that too. Don’t use them. Don’t know.