Setting global variable outside of a test?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Application Center > Application Center Usage > Setting global variable outside of a test?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Setting global variable outside of a test?  
Kevin Van Heusen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:33 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register