The online community for software testing & quality assurance professionals
 
 
Calendar   Today's Topics
Sponsors:




Lost Password?

Home
BetaSoft
Blogs
Jobs
Training
News
Links
Downloads



Software Testing >> Web Testing

Pages: 1
Postal
Newbie


Reged: 10/02/12
Posts: 2
Loc: Ireland
How to record Web page load time on a schedule
      #717303 - 10/02/12 03:56 AM

Hi, I am looking for a method to record the load time of various pages at specific inervals throughout the day.

The method needs to be able to produce at least a CSV with the page url and the time to last byte.

My current thought is to use Selenium IDE to record the actions that I want. Convert them to Java code and add timers around the click that can be saved to a file.

To get this to run on a schedule I am hoping to be able to use a scheduled task with a bat file to run the application and copy the results to a given location.

Really, what I am looking for is if anyone can poke holes in this before I start out only to be stuck half way.

Any advice or suggestions are greatly appreciated.
Regards,
Postal.

--------------------
My postes are my own thoughts and do not represent the company I work for....


Post Extras: Print Post   Remind Me!   Notify Moderator  
Joe StrazzereModerator
Moderator


Reged: 05/15/00
Posts: 12344
Loc: Massachusetts, USA
Re: How to record Web page load time on a schedule [Re: Postal]
      #717305 - 10/02/12 04:11 AM

What you are proposing makes sense, although there are many other tools that can do the same task.

Is this a testing task, or are you instead just looking to monitor your website? If the latter, there are many tools specifically designed to accomplish just that.

--------------------
- Joe
Visit AllThingsQuality.com to learn more about quality, testing, and QA!

I speak only for me. I do not speak for my employer, nor for anyone else.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Postal
Newbie


Reged: 10/02/12
Posts: 2
Loc: Ireland
Re: How to record Web page load time on a schedule [Re: Joe Strazzere]
      #717306 - 10/02/12 04:19 AM

Thanks for coming back to me Joe.

In essence it is really a monitoring task. However it is a task that has landed on my desk in QA.

Previously the company had an intern run firebug and manually record the load times to an excel sheet. I am looking to put something together so that it removes the user from the recording aspect.

I would be rgeatful if you know of some tools off hand that would better suit the task. Keeping in mind the primary objective is that this report can be generated without someone going in to click around the web page....

--------------------
My postes are my own thoughts and do not represent the company I work for....


Post Extras: Print Post   Remind Me!   Notify Moderator  
Corey_G
Veteran


Reged: 09/14/01
Posts: 4281
Loc: Boston, MA
Re: How to record Web page load time on a schedule [Re: Postal]
      #717307 - 10/02/12 05:22 AM

Selenium is a good choice for driving the browser, but just getting a single "pageload" time is very granular compared to the output you get in Firebug netpanel.

Ideally, you'd want to save a HAR representation of each pageload, so you can integrate with existing tools, and get deeper insight.

see:
http://www.softwareishard.com/blog/har-viewer/

Browsermob Proxy does most of what you want, and can be combined with Selenium to produce HAR files of each pageload.

see:
http://opensource.webmetrics.com/browsermob-proxy/

----

and finally, a ghetto pageload monitor in Python using selenium webdriver:

Code:

#!/usr/bin/env python

from selenium import webdriver
from timeit import default_timer

urls = [
'http://google.com',
'http://seleniumhq.org/docs/index.html',
'http://stackoverflow.com',
]

driver = webdriver.Firefox()
driver.start_client()

for url in urls:
start = default_timer()
driver.get(url)
elapsed = default_timer() - start
print '%s, %0.3f secs' % (url, elapsed)

driver.quit()



Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1



Extra information
0 registered and 6 anonymous users are browsing this forum.

Moderator:  AJ, prtester, Joe Strazzere, swt88 

Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      UBBCode is enabled

Rating:
Topic views: 3983

Rate this topic

Jump to

Contact Us | Privacy statement SQAForums

Powered by UBB.threads™ 6.5.5