**1.I have massage: **test FAILED because (of) Variable ‘CustomKeywords’ is not defined for test case.
2. in the TestCase this is done
3.and before the message Custom Keywords is underlined
4.**how am I supposed to live with this?
**
public class kw1 {
@Keyword
def execute1 (){
CustomKeywords.'my001.kw2.execute2'(11)
}
}
public class kw2 {
@Keyword
def execute2 (int input1){
def var1=input1
var1 = 222
}
}
The CustomKeywords’ scope is in TestCase. In other words, it can be used in TestCase script mode rather than in CustomKeywords.
In other to call other functions from other classes, you could use the basic programming way of groovy instead of using CustomKeywords object, for example: