What are the challenges you face when working across database platforms? Take the survey
Options

login page (run once)

Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
edited October 5, 2005 7:13AM in ANTS Load
Hello,

It's not something that ANTS Load can do natively, but you could write your load testing scripts to support this. If I was going to to set up the script so that the login only runs once, first I'd separate the login post request into its own function at the bottom of the script, I'd use the Microsoft.Win32 namespace to write a registry key somewhere declaring that the login had been done. Then in sub Main, I'd check for this registry key, and it's not set, do run Sub Logon() to to the logon.

Comments

  • Options
    Brian DonahueBrian Donahue Posts: 6,590 Bronze 1
    I'm not sure how good an idea this is, actually. Since each VirtualClient has its' own unique session information (cookies), you would need to perform this login bit once for each virtual client. At that point you should be able to perform the same actions over and over again, you could do it on a per-virtual-user basis. You could not login to the website once, and have all virtual clients doing actions under that login, though.

    Hopefully this makes a bit of sense!
This discussion has been closed.