Options

virtual users

ksenjaksenja Posts: 5
edited December 9, 2005 9:59AM in ANTS Load
Hallo
I'm testing web site with Ants Loader. I have to simulate 100 users. Each of
them have different user name and password. How can I insert user names and
passwords in a script. I would like that eaach virtual user will click the
same pages.

Thank you foe answear.

Ksenja

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    Hello Ksenja,

    Thanks for asking us. This is not very hard to accomplish, as we have a feature in ANTS Load called State Information. To build a database of state information, you go to the Edit Load dialogue and click the scripts tab. Next to each script, there is a column called State. Click the ellipsis to add state information columns and data. For instance, you can add a column called ‘username’ and another called ‘password’. You can also open a CSV file to import this information.

    To use the state information in your script, you replace the variable with Me.StateInformation.Get(). For instance:

    Change this:

    WebClient.HttpRequest.AddPostData(“username”, “myUserName”, false)

    To:

    WebClient.HttpRequest.AddPostData(“username”, Me.StateInformation.Get(“username”),false)

    Hopefully this is enough information to get you started. Please let me know if you have any questions about it.
This discussion has been closed.