Last post Apr 02, 2015 03:32 PM by vikasrulez
Apr 09, 2010 05:41 PM|wwang|LINK
I have read something about vsts load testing:
Have one question, we need to perform a web load testing on the asp.net application. Instead of generating 100 virtual users, how can we load 100 users and password form users table programatically? the asp.net app uses form authentication.
Any advice will be appreciated.
Sep 08, 2014 12:29 PM|starBUSYstar|LINK
Did you ever get this working? We have similar scenario, not with windows auth, we're using STS, but you'd think this would be possible.
Apr 02, 2015 02:25 PM|pattysandstrom|LINK
Also seeing if either of you were able to get this scenario working. We are using STS as well and want to run a similar load test scenario.
Apr 02, 2015 03:32 PM|vikasrulez|LINK
create a page or windows app in development environment, should be in separate machine then server. Start a loop and in that loop use webclient with cookiecontainer to access the login page and attempt 100 login programatically
var users = Db.GetUsers(); // get all users from database and store it in generic list or datatable or array as you like
for(int i = 0; i < 100; i++)
var user = users[i];
using(var client = new Webclient())
.... // Cookie container code is available here
string response = client.DownloadString("http://www.mysite.com/login")