Virtual users with different login values

AClarke0007AClarke0007 Posts: 2
edited October 19, 2005 5:31AM in ANTS Load
Hi ,

I would like to know how to add username and passwords so I can have 10 virtual users logging in at the same time.

Step 1 - Edit the load
Step 2 - Change the State Info
Step 3 - Add Columns Username and password

How do i name the columns do they need to correspond to the script / Database etc

Do I need to manually edit the script . Could you please provide an example please.

Comments

  • Brian DonahueBrian Donahue Posts: 6,590 New member
    Hi,

    You're almose done. Once you have set up the state information, you need to edit the test script to pull the proper values out of it using the Me.StateInformation.Get() method. The argument to the Get command is the column name of the state information that you had set up.

    For instance, if you populate state information with a username column and a password column, you can retrieve that line of state information in the script and substitute that value for a hard coded value already in the script.
    'The original line: 
    WebClient.HttpRequest.AddPostData("txtUserName", "BrianD")
    'Change this to use a line from state information
    WebClient.HttpRequest.AddPostData("txtUserName", Me.StateInformation.Get("username"))
    
This discussion has been closed.