Okay, I didn't want to reply right away without trying a few things first.
My results seem to be consistent in that my second counter is always larger
than the default down_load_time value.

On 10/01/07, Bret Pettichord wrote:

The "down_load_time" is the amount of time that watir waits in the wait
method that is automatically called after the click. It should be
roughly the same as the "wait_time" defined below:

    ie. button(:name, /UpdateSettingsButton/).click!
    then = Time.now
    ie.wait
    wait_time = Time.now - then


I like this code but "click!" doesn't work in 1.4.1 so I'll try it later on
one of my 1.5.x VMWare sessions.


I'm confused by your example because your output does not match your code.


Which part is confusing?  The script actually outputs in columns of data to
a CSV file.  I just picked a row and listed the results here in a more email
friendly fashion.

If you're wondering why the results don't match, then I'm confused too!

The second RT value is always larger than the IE.down_load_time value by a
difference of 0.12 to 1.5 seconds.  The average seems to be a difference of
~ 350 ms, which is noticeable.


I've updated the rdoc for down_load_time to read:

    # The time, in seconds, it took for the new page to load after
executing the
    # the last command

Is this clearer?


I'm not sure.  It sounds a bit better than the current description of: "use
this to get the time for the last page download."

I like the definition and code example that you gave at the top of your
reply.  That's the clearest I think.  All the other Public methods in the
Watir API reference have nice popup windows with code in it, so your
description and code example above follows the pattern nicely.

...There's just the matter of trying to figure out why there's a difference
in my Response Time values.  I'll keep collecting both for now so that I can
continue developing my scripts.  Maybe inspiration will come to me as I
collect more data and update the scripts further.

Currently, it looks to me like RT = (ie.down_load_time) + (additional IE
render time or other unspecified delay)

Cheers.  Paul C.
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to