On 13/01/07, <b class="gmail_sendername">Bret Pettichord</b> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Would it be possible for you to provide code and output that are synced up with each other?<br><br>Bret<br></blockquote></div><br>Sure thing. Rather than include everything, here are some relevant bits:<br>----<br>Aside: filename written to from the setup method:
<br> filename1 = 'site_map_output'+ f_count +'.csv'<br> $f = File.new(filename1, "w")<br> $f.puts "#{header_info}"<br>----<br>def walk_Main_Menu<br><br> $f.puts '"3. Main Pages:","Page Size (bytes)","Page Load Time 1 (s)","Page Load Time 2 (s)"'
<br> # set the page_name array..<br><br> # Log in, update password, and go to the Home page<br> secondary_page_timer = Time.now<br> $ie.button(:name, /UpdateSettingsButton/).click<br> record_measurement( page_name[0], secondary_page_timer )
<br><br> # go on to the next page...<br>----<br> def record_measurement( page_title, secondary_page_start_time )<br> $f.puts page_title + ',' + $ie.html.length.to_s + ',' + $ie.down_load_time.to_s + ',' + (
Time.now - secondary_page_start_time).to_s<br> end<br>----<br><br>=> And the output file from a script run contains numbers like the following:<br><br>"3. Main Pages:","Page Size (bytes)","Page Load Time (s)","2 Page Load Time (s)"
<br>"a) Home",15210,0.015,1.075<br>...<br>"k) Personal Settings",33639,0.872,1.06<br>...<br>"m) Contact Support",15106,0.373,0.514<br><br>----<br><br>(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.)
<br><br>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.
<br><br>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!)
<br><br>Paul C.<br><br>