way state information works

Forum for users of ANTS web server load testing tool

Moderator: Brian Donahue

way state information works

Postby psabbani » Tue Apr 25, 2006 6:18 pm

Hi,
Can somebody explain me how the state information works.
I have put like 5 rows of data for userid and password information.
And I have used the state information in the script.
eg:WebClient.HttpRequest.AddPostData("txtUserName", Me.StateInformation.Get("username"))

But how does the ants load take it.
If I run for 5 virtual clients, then does each client runs five times with five sets of data or one user run using one set of data. how does it work?.
Please explain.
Thanks In advance.
psabbani
 
Posts: 3
Joined: Tue Apr 25, 2006 6:09 pm

Postby Brian Donahue » Wed Apr 26, 2006 6:06 pm

Hello,

Thanks, this is a good question.

ANTS Load virtual clients each run in their own thread. Part of the thread startup code is to load the script that the virtual client will run and one line of its' state information, if any is present.

What happens, then, is that one particular row of state information is attached to the virtual client and is used for as long as the thread runs. It doesn't matter how many times the script loops; it will use the same state information on each loop of the Run() method.

The only way to get a new row of state is to stop the thread. You may find that batch tests are good for this, as they ramp up and down. When a new thread is started as part of adding a new virtual client, a new rows of state information is attached to the virtual client.
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

How can I use different user per iteration

Postby Ajay » Thu May 11, 2006 4:38 pm

Hi,

I there any way to pick the next available row for stateinformation per iteration.

And also how can I specify how many iteration i want to run. I am able to see the way to set for a desired duration.

Thanks in advance

Ajay
Ajay
 
Posts: 5
Joined: Thu May 11, 2006 4:31 pm
Location: Albany


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests