06-30-04 01:44 AM
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
[ Post a follow-up to this message ]
|