Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Enterprise Tools / December 2004

Tip: Looking for answers? Try searching our database.

Dynamically changing the input for a test using ACT.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin Burton - 11 Dec 2004 21:25 GMT
I want to dynamically change the input parameters for an ACT test. For now a
simple test is to put a global variable at the top of the script and
increment it with each inocation. This seems to fail because it seems that a
new instance of the script is run each time so the "global" variable is
initialized with each invocation. What is the recommended way to maintain
state over the lifetime of the test?

Thank you.

Kevin
Kevin Burton - 12 Dec 2004 07:43 GMT
Reading the docs I think that I want to use Cookies but I still need an
example. Can I use cookies to help me maintain state even when I have the
users "automatically"  generated by ACT? Any examples of using cookies would
be helpful. I am especially not sure what to use for path and how to set the
cookie so I can use it. The docs mention editing the cookies associated with
a user (specifically the "Value") but I was unable to edit the blank form
that was brought up for the user.

Thank you.

Kevin

> I want to dynamically change the input parameters for an ACT test. For now a
> simple test is to put a global variable at the top of the script and
[quoted text clipped - 6 lines]
>
> Kevin
Rene Schrieken - 14 Dec 2004 19:17 GMT
You can call GetGlobalIndex(1) it will return 0 the first time the Test is
run.
Some thing like this will work:

Dim gc = GetGlobalIndex(1)
if gc=0 then
 gc = 2004  ' initialize global
end if

Call SendRequest1()

gc=gc+1
SetGlobalIndex 1, gc

If your test runs for 10 iterations the last test will run with 2014. The
next time you start a test it will again start on 2004.

If you use GetGlobalVariable the return value can be tested with IsEmpty, it
will return true on the first call.

René
Kevin Burton - 15 Dec 2004 05:59 GMT
Thank you. This was very helpful.

I stumbled upon Get/SetGlobalVariable. I did not know about Get/SetGlobalIndex

Kevin

> You can call GetGlobalIndex(1) it will return 0 the first time the Test is
> run.
[quoted text clipped - 17 lines]
>
> René

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.