I have one plugin for custom keywords which I’am trying to use in Step definition file.
I have tried following ways:
Using like normal custom keyword in groovy file :
Importing the package and using the function by creating class of the package as mentioned here ‘BDD Testing: Step Definition files doesn't recognise Customkeywords’:
and in step def using like this:
- By creating a new custom keyword and using the plugin there like:
import the package: import keywords.Package
and create a custom keyword like this:
but none of the above ways worked for me. Also, did not throw any error. In case I use invalid keyword name which is not available in plugin then it throws error like no signature found or something.But when providing correctly, it is not working either.
Basically i want to use keyword from the plugin in the step definition file. Is it possible?