Application Center Usage - Setting global variable outside of a test?

This is Interesting: Free IT Magazines  
Home > Archive > Application Center Usage > June 2004 > Setting global variable outside of a test?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Setting global variable outside of a test?
Kevin Van Heusen

2004-06-29, 8:44 pm

I have a VBScript which runs various ACT tests. I have an instance of
an ACT
Project, which I then use to then get a particular test in the Tests
collection and then run it..

for ex:

Set oProject = CreateObject("ACT.Project")
Set oTest = oProject.Tests.Item("mytest")

I would like to set some global variables to be used by each test. I
noticed
that the Test Object has a method, SetGlobalVariable()

so I do the following:

call oTest.SetGlobalVariable("myglobalvar", "true")

However, it responds with an "Object does not support this property or
method: SetGlobalVariable"

After looking on MSDN, it looks like the Test Object that the Project
object
returns is NOT the Test object inside of ACT, which has the
SetGlobalVariable()
method.

Anyway, is there a way to get a handle to the Test Object that is
referred
to in the ACT test? Or any other way I can set a global variable in
the script?

Thanks,
Kevin
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com