Simulating multiple dotnetnuke logins

Forum for users of ANTS web server load testing tool

Moderator: Brian Donahue

Simulating multiple dotnetnuke logins

Postby rivstyx » Tue Aug 15, 2006 3:18 pm

I am using dotnetnuke as a portal and of course we do not pass the user id on the querystring so I am not sure how I can setup state information to simulate multiple users. The samples I have found pass the state information on the querystring. Any help would be appreciated.
There is a difference between working hard and working smart.
rivstyx
 
Posts: 4
Joined: Thu Aug 10, 2006 5:07 pm

Postby Brian Donahue » Tue Aug 15, 2006 6:40 pm

Hello,

Odd, normally things like logins are contained in the post data and that is populated in the ANTS Load test script using the AddPostData method, which will accept StateInformation, ie
Code: Select all
WebClient.HttpRequest.AddPostData("Username", Me.StateInformation.Get("Username"))
WebClient.POST("http://localhost/login.aspx")
Brian Donahue
 
Posts: 6670
Joined: Mon Aug 23, 2004 10:48 am

Postby rivstyx » Tue Aug 15, 2006 10:47 pm

It is slightly different but I figured it out.
It uses its own securty provider called DotNetNuke.Security.PortalSecurity.
I create an instance of their portal security and pass it a username, password and tabid(same as page id).

I then navigate to that tab id and I am ready to go. So my dynamic data consists of username,password and tabid.

Thanks.
There is a difference between working hard and working smart.
rivstyx
 
Posts: 4
Joined: Thu Aug 10, 2006 5:07 pm


Return to ANTS Load

Who is online

Users browsing this forum: No registered users and 0 guests