Forum Discussion
AlexKaras
16 years agoCommunity Hero
Hi Lawrence,
Have a look at the native VBScript's Eval() function.
The code (untested mockup) may be like this
Function RunKWTest(ByVal strTestName)
' will not work if keyword test returns an object
' code must be enchanced if parameters support for keyword test is needed
RunKWTest = Eval("KeywordTests." & strTestName & ".Run")
End Function
Have a look at the native VBScript's Eval() function.
The code (untested mockup) may be like this
Function RunKWTest(ByVal strTestName)
' will not work if keyword test returns an object
' code must be enchanced if parameters support for keyword test is needed
RunKWTest = Eval("KeywordTests." & strTestName & ".Run")
End Function