virtual users
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
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
This discussion has been closed.
Comments
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.