If you want to have functions visible only in scope of action, you can use
ExecuteGlobal statement
(http://msdn.microsoft.com/en-us/library/342311f1(VS.85).aspx)

you will need
1. text = ReadTextFormVBS("c:\...\lib.vbs")
ExecuteGlobal text

But it is a nightmare for debugging.


On Mon, Jan 12, 2009 at 7:55 AM, mabobine <[email protected]> wrote:

>
> I know how to associate function library with a test (by simply
> clicking theFile -> Associate <bla bla bla>), but how to associate a
> function library with an action.
>
> The scenario is that
>
> There is a test X
> Test X has action A, action B
> action B is a call to Existing Action within which there is a call to
> a function Z
> function Z is defined in a function library.
>
> I got an error on function Z (against action B), when i ran test X but
> when i associated function library having the definition of function Z
> in it with test X, the test was successful.
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to