| || |
calling functions in another action--how to?
I have an action, actionA, defined in Test1. In actionA I have two vbScript functions defined, func1a() and func1b(). I can successfully execute these functions within actionA [of course].
In Test2 I can successfully call and execute actionA from Test1 [actionA was inserted into Test2 using the Insert, call to action... dialog]. At this point in runtime it "seems" to me that func1a() and func1b() should have been interepreted by QuickTest and now reside in memory within Test2's namespace. But if I try and call these functions within Test2 I get a non-informative General Run error message dialog, and the log [also not informative] indicates that the test failed when I attempted to call func1a() [General run error. Line (5) func1a("string text...")].
Am I doing something stupid or am I expecting functionality that QuickTest does not support? It seems there should be a way to do this, because QuickTest supports functionality to call and execute WinRunner functions [TSLTest.CallFunc()] from a WinRunner compiled module [and code in those modules is written in TSL for heavens sake].
If it is not clear why I am trying to do this its that I want to figure out how we can develop a library of QuickTest functions that can be shared by several tests.
Any help or suggestions will be appreciated.
-Thanks, Terry Horwath
Re: calling functions in another action--how to?
This questions is answered [as best as is possible with AQT's functionality today] in the following post: