login page (run once)
Brian Donahue
Posts: 6,590 Bronze 1
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.
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.
This discussion has been closed.
Comments
Hopefully this makes a bit of sense!