Bret, I also had a similar problem and down graded to 1.5.3 went about
my work. The Web app is built on the GWT framework. The initial load
from the client side is heavy.
Below are my observations with broken down snips:
I suspect that I am bogged down by this call ->
1.step(@b.images.length - 1) in version 1.5.6. Page load time for
1.5.4 and 1.5.3 seem to be adequate.
hope that helps... thanks.
watir (1.5.6, 1.5.3)
Total time to load page (secs): 110.737
Number of bytes received on network: 290005
HTTP compression saving (bytes): 26053
watir (1.5.4, 1.5.3)
Total time to load page (secs): 6.806
Number of bytes received on network: 280351
HTTP compression saving (bytes): 12491
watir (1.5.3)
Total time to load page (secs): 6.399
Number of bytes received on network: 280351
HTTP compression saving (bytes): 12491
OS tested: WIndows Vista Business addition
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<code snippet>
#includes
require 'new_ols'
include Ols
require 'new_ols_test_fixtures'
#test::unit includes
require 'test/unit'
require 'test/unit/ui/console/testrunner'
# helper includes
require 'helper_logger'
require 'helper_constants'
require 'helper_methods'
class Test_functional_step1 < Test::Unit::TestCase
#****************************************************************************
#****************************************************************************
def test_extols_nw_cust_signup_asstd
ct = WIN32OLE.new('HttpWatch.Controller')
b = New_ols.new
httpw = ct.Attach(
b.get_browser_handle.ie)
httpw.Clear
httpw.Record
b.navigate_to(New_ols::SIGN_UP_PAGE)
b.click(New_ols::START_NOW_BUTTON)
httpw.Stop
httpw.Log.Save(Dir.pwd.to_s + "\\httpwatch_#{time_stamp}.hwl")
summary = httpw.Log.Entries.Summary
puts "Total time to load page (secs): #{summary.Time}"
puts "Number of bytes received on network:
#{summary.BytesReceived}"
puts "HTTP compression saving (bytes):
#{summary.CompressionSavedBytes}"
puts "Number of round trips: #{summary.RoundTrips}"
puts "Number of errors:
#{summary.Errors.Count}"
end
end
</code snippet>
<snippet of my test class>
def click(what)
when START_NOW_BUTTON
x = find_image_index_by_src_name("btn_StartNow.gif")
@b.wait(no_sleep=false)
@b.images[x].click
end
end
#**********************************************************
# Method: Private find_image_index_by_src_name
#**********************************************************
def find_image_index_by_src_name(src_name)
ret = nil
@b.wait(no_sleep=false)
1.step(@b.images.length - 1) do |x|
if @b.images[x].src.include?(src_name)
puts @b.images[x].src
puts "ret_index = #{x}"
ret = x
#break
end
end
return ret
end
</snippet of my test class>
On Jun 20, 4:35 pm, Bret Pettichord <
b...@pettichord.com> wrote:
> Tiffany Fodor wrote:
> > I recently upgraded to Watir 1.5.6 and noticed that my tests were
> > running more slowly than they had with Watir 1.5.3. To verify, I
> > rolled back to 1.5.3 and ran the same tests over again. They run as
> > fast as they had before - much faster than on 1.5.6. In both cases, I
> > used ie.speed = :fast.
>
> > Has anyone else noticed this?
>
> This might be this defect.
http://jira.openqa.org/browse/WTR-216