Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I test my site "as if" users have logged in and then accessing different parts of the website?

I saw http://webmasters.stackexchange.com/questions/128/is-there-a-good-way-to-measure-my-sites-response-time-from-different-parts-of-th but it looks like its just for a "outside" / publicly visible page.

share|improve this question
up vote 1 down vote accepted

It's the same concept except you need to use software capable of handling logins. Or, you can disable authentication for that user agent during testing.

share|improve this answer
Right... are there sites/services which do this? Or freeware/open-source toolkits which do this? What do you use? And we need to replicate basic user behavior after logging in, making changes to the site wont work. – siliconpi Oct 23 '10 at 14:56
sorry, could you lend some insight into this? – siliconpi Jan 27 '11 at 3:47
Setup a copy of your site and turn of the authentication system. Then run your tests. Unless your authentication system is horribly written this will allow you to test you pages that are behind logins. – John Conde Jan 27 '11 at 16:26
thanks. Decent idea...! – siliconpi May 7 '11 at 10:24

You can use the free iMacros browser addons and time the macro runtime with the STOPWATCH command: http://wiki.imacros.net/STOPWATCH (= web performance testing)

share|improve this answer

It may help you

When some user login, you save this time in some variables. Once he had login, in jquery ready() send the current time to your some php or jsp page(whatever you have). subtract both time.

THis is just concept only. I hadnt tried it b4

share|improve this answer
i'll appreciate if people comments for negative voting – Amit Gupta Oct 23 '10 at 10:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.