Forum Discussion

jimsmith_1's avatar
jimsmith_1
Contributor
13 years ago

How do I call functions from keyword tests?

I have a very simple vbScript function...



Function myFunc()

    myFunc = "Jim"

End Function



So far, I have found no way of successfully calling this function from my keyword tests. I've tried using myFunc and myFunc() and unit1.myfunc etc. but I never get "Jim" returned.



Can somebody suggest a soultion?



Thanks, Jim

  • ...or can I only access the result using Last Operation Result after using Run Script Routine?
  • As far as I know using script routine and last results is the only way to do that. If you find something else out I would like to find out.