Watir Version 1.5.6 Performance

6 views
Skip to first unread message

Tiffany Fodor

unread,
Jun 20, 2008, 6:18:42 PM6/20/08
to Watir General
Hi all!

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?

Thanks!

-Tiffany

Bret Pettichord

unread,
Jun 20, 2008, 7:35:50 PM6/20/08
to watir-...@googlegroups.com
This might be this defect.
http://jira.openqa.org/browse/WTR-216

It's on the top of my list to look into this further.

marekj

unread,
Jul 9, 2008, 2:41:57 PM7/9/08
to Watir General
Yes, I noticed this in the last two days when I upgraded to 1.5.6
version.
I have a page with over 100 controls, where I set about 50 of them.
It's slow on :fast and :zippy speeds. Considerably slower than 1.5.3
version.
I just voted for http://jira.openqa.org/browse/WTR-216
and I'll try to pinpoint where the issue is happening on my pages.
Thanks.
marekj

Bret Pettichord

unread,
Jul 9, 2008, 3:46:34 PM7/9/08
to watir-...@googlegroups.com
Another thing that would be helpful to me would be to verify which
version of watir introduced this problem. Was it 1.5.4 or a later version?
Bret

Tiffany Fodor

unread,
Jul 9, 2008, 7:00:14 PM7/9/08
to Watir General
Hey Bret!

I thought that I wasn't going to be able to reproduce the problem -
tests on both 1.5.4 and 1.5.6 were running quickly. Then I kicked of
a long test suite on 1.5.4. After about 45 minutes, the speed at
which data was entered started to slow. Now that I think of it, this
was the behavior I saw before. The tests started out fast and then
slowed to a crawl. When I stopped and restarted them, they sped up
again.

Also, in case it helps, I'm running the tests on Vista.

Hope this helps!

-Tiffany


On Jul 9, 1:46 pm, Bret Pettichord <b...@pettichord.com> wrote:
> Another thing that would be helpful to me would be to verify which
> version of watir introduced this problem. Was it 1.5.4 or a later version?
> Bret
>
> marekj wrote:
> > Yes, I noticed this in the last two days when I upgraded to 1.5.6
> > version.
> > I have a page with over 100 controls, where I set about 50 of them.
> > It's slow on :fast and :zippy speeds. Considerably slower than 1.5.3
> > version.
> > I just voted forhttp://jira.openqa.org/browse/WTR-216

anthonype

unread,
Jul 10, 2008, 5:27:06 AM7/10/08
to Watir General
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
Reply all
Reply to author
Forward
0 new messages