Forum Discussion

patrikengstrom's avatar
14 years ago

Calling Script function from Code Expression in Keyword Test

Hi,



I know how to call one of my Script functions from a Keyword Test, but I don't know how to call my Script functions as part of a Code Expression in a Keyword Test.



If I add the component "Run Keyword Test", and select a keyword test with a parameter, this parameter could be a Constant, Code Expression, Variable, Test Parameter and so on. If I select Code Expression, how do I make a call to one of my script functions?



I have a script module called ControllerHelper with a function called GetVmxFile(clientName), where clientName is a string and the function returns a string. In the "Run Keyword Test" component in my keyword test, I would like to pass the result of GetVmxFile("somename") as a parameter using a Code Expression. How is that possible?



Thanks