Hello,
Good to know it worked for you ..
We had same problem in our framework hence we wrote on GlobalVar.vbs file
which will have all the public variable something like this

Public objNetwork ,QtpApp ,oFSO

Set objNetwork = CreateObject("WScript.Network")
Set QtpApp = CreateObject("QuickTest.Application")
Set oFSO = CreateObject("Scripting.FileSystemObject")

ExecuteFile 
"\\server1\qa\QTPExec\PROD\Lib\GlobalVar.vbs<file://server1/qa/QTPExec/PROD/Lib/GlobalVar.vbs>
"

object stored in the public variables you can access in entire framework.

Or you can have one more method ;

write a reusable function in the library file :

function ValidateLink Exits(object)
set Var=object

> If Var.Exist Then
>     msgbox "yes"
> Else
>     msgbox "no"
> End If


End Function

I am not sure i answered your question let me know if you need
clarifications.


On Fri, May 17, 2013 at 7:59 PM, Jon <[email protected]> wrote:

> I'll try this out. It makes little difference if the value is stored in a
> dictionary object, or directly set in the array, the end result is the
> same.
>
> Dim myArray(1)
>> Set myArray(0) = Browser(...).Page(...).Link(...)
>> Set myArray(1) = Browser(...).Page(...).Link(...)
>>
>
>
>> If myArray(1).Exist Then
>>     msgbox "yes"
>> Else
>>     msgbox "no"
>> End If
>
>
> is what I tried, but i'm getting errors at the *Set myArray*
> section."Object doesn't support this method or property". Could you assist
> in writing this out a bit more?
>
> As for Chethu, I'm not really sure what you're talking about or even how
> that would allow me to cycle through a defined list of links and verify if
> they exist, and if they exist, to run additional scripts.
>
>
>
> --
> --
> 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "QTP - HP Quick Test Professional - Automated Software Testing" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to