[Wtr-general] What does IE.down_load_time really measure?

Paul Carvalho tester.paul at gmail.com
Mon Jan 15 11:32:30 EST 2007


On 13/01/07, Bret Pettichord wrote:
>
>
> Would it be possible for you to provide code and output that are synced up
> with each other?
>
> Bret
>

Sure thing.  Rather than include everything, here are some relevant bits:
----
Aside: filename written to from the setup method:
  filename1 = 'site_map_output'+ f_count +'.csv'
  $f =  File.new(filename1,  "w")
  $f.puts "#{header_info}"
----
def walk_Main_Menu

  $f.puts '"3. Main Pages:","Page Size (bytes)","Page Load Time 1 (s)","Page
Load Time 2 (s)"'
      # set the page_name array..

      # Log in, update password, and go to the Home page
      secondary_page_timer = Time.now
      $ie.button(:name, /UpdateSettingsButton/).click
      record_measurement( page_name[0], secondary_page_timer )

      # go on to the next page...
----
  def record_measurement( page_title, secondary_page_start_time )
      $f.puts page_title  + ',' + $ie.html.length.to_s + ',' +
$ie.down_load_time.to_s + ',' + (Time.now - secondary_page_start_time).to_s
  end
----

=> And the output file from a script run contains numbers like the
following:

"3. Main Pages:","Page Size (bytes)","Page Load Time (s)","2 Page Load Time
(s)"
"a) Home",15210,0.015,1.075
...
"k) Personal Settings",33639,0.872,1.06
...
"m) Contact Support",15106,0.373,0.514

----

(BTW, I'm still removing the global variables as I come across them, so
there are still a handful left.  The script may not be the prettiest from a
programming perspective, but it's a small site and the script works, so it's
good enough for me for now.)

I think the Home page might be cached in the browser and so the "download"
time is negligible.  The server response time navigating between the pages
still takes about a second though.  So I'm wondering if IE is making a
distinction between how long it takes to get the page versus how long it
takes to finish what it was doing with the last page visited.

Dunno.  I'll try changing up the order in which the pages are loaded and
clearing the browser cache to see if it makes a difference, but the ~300 ms
difference between the timers seems to be consistent.  (There are other
pages with a bigger time difference than that observed with the Home page!)

Paul C.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070115/ffb82904/attachment.html 


More information about the Wtr-general mailing list