You can probably tweak these settings yourself and get better performance, but it seems like their default settings have somehow changed between 1.4 and 1.5. I will look into this further.
Bret
I ran the same test on the same web form using two different versions of Watir. The results are listed below. The web pages load as fast as they did before the problem is when the script inputs the data. In 1.4.1 the data is typed and the navigation between input fields is very quickly, but in the current version 1.5.X the data is typed in noticeably slower and navigation between input fields is monumentally slower!
My purpose for upgrading was to take advantage of the new popup and modal windows code as well as xpath and other stuff—xpath didn't work at all for me either.
As a side not, here are a couple of humorous quotes about spelling: ;-P
"It's a damn poor mind that can only think of one way to spell a word." -- Andrew Jackson
"I don't give a damn for a man that can only spell a word one way." -- Mark Twain
--Mark
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Michael Bolton
Sent: Thursday, March 02, 2006 1:45 PM
To: [email protected]
Subject: Re: [Wtr-general] Older scripts running really slow...
Obvious possibilities are
- response time on the Web pages
- typing speed in the forms
Are your pages visible? Do they look slower? When they're loading? When they're typing? If you've got one test that takes half a minute and another that takes three minutes (which you do), the places where slowdowns are happening are plausibly visible to the human eye.
Apropos of not very much, but you noticed that "Problem" is spelled "Probelm" below, right?
---Michael B.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Cain, Mark
Sent: March 2, 2006 4:17 PM
To: [email protected]
Subject: Re: [Wtr-general] Older scripts running really slow...With Watir 1.4.1 (just downloaded and reinstalled) it took:
Finished in 31.797 seconds.
With Watir from current SVN (did a checkout on the http://svn.openqa.org/svn/watir/trunk/watir)
Finished in 179.047 seconds.
This is the part that ran:
===============================================================
# feature tests for _javascript_ PopUps
# revision: $Revision: 1.11 $
$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') if $0 == __FILE__
require 'c:\watir\unittests\setup'
require 'watir\dialog'
class TC_PER < Test::Unit::TestCase
include Watir
def gotoPopUpPage()
$ie.goto("http://apwtst200.rl.gov/rapidweb/chg/per/per/main.cfm")
$ie.set_fast_speed()
end
#def startClicker( button , waitTime = 3)
# w = WinClicker.new
# longName = $ie.dir.gsub("/" , "\\" )
# shortName = w.getShortFileName(longName)
# c = "start rubyw #{shortName }\\watir\\clickJSDialog.rb #{button } #{ waitTime} "
# puts "Starting #{c}"
# w.winsystem(c)
# w=nil
#end
def test0_originator
$d = Time.now.strftime("%m/%d/%Y")
gotoPopUpPage()
$ie.text_field(:name, "d_date").set("#{ $d }")
$ie.text_field(:name, "d_time").set("1111")
$ie.selectBox( :name, "progproj").select(/Other/)
$ie.selectBox( :name, "locationID").select(/AW Farm/)
$ie.selectBox( :name, "ProblemDiscoveredID").select(/EH\-22/)
$ie.text_field( :name, "probdescript").set("Probelm Description Test")
$ie.selectBox( :name, "sinID").select(/Cooling Water/)
$ie.text_field( :name, "ein").set("eid-001")
$ie.checkBox( :name, "reqnsatcheck").set
$ie.text_field( :name, "reqnsat").set("Req Not Satisfied")
$ie.checkBox( :name, "sourcedoccheck").set
$ie.text_field( :name, "SourceDocument").set("Source Doc")
$ie.text_field( :name, "actionplan").set("This is a test of the Action Plan text area.")
$ie.text_field( :name, "RecommendedCorrectiveActions").set("This is a test of Recommended Actions Taken text area.")
$ie.radio( :name, "feedback", 1).set
$ie.radio( :name, "feedbacktype", 'other').set
$ie.text_field( :name, "feedbackother").set("Feedback Other")
#startClicker("OK" , 3)
$ie.button("Submit").click_no_wait
dialog.button('OK').click
$ie.link(:text, /PER-2006-/i).click
assert($ie.text_field(:name, "d_date").verify_contains("#{$d}"))
assert($ie.text_field(:name, "d_time").verify_contains("11:11"))
assert_arrayEquals( ["Other" ] , $ie.select_list(:name, "progproj").getSelectedItems)
assert_arrayEquals( ["AW Farm" ] , $ie.select_list(:name, "locationID").getSelectedItems)
assert_arrayEquals( ["EH-22" ] , $ie.select_list(:name, "ProblemDiscoveredID").getSelectedItems)
assert($ie.text_field(:name, "probdescript").verify_contains("Probelm Description Test"))
assert_arrayEquals( ["Cooling Water" ] , $ie.select_list(:name, "sinID").getSelectedItems)
assert($ie.text_field(:name, "ein").verify_contains("eid-001"))
assert($ie.checkbox(:name, "reqnsatcheck").isSet?)
assert($ie.text_field(:name, "reqnsat").verify_contains("Req Not Satisfied"))
assert($ie.checkbox(:name, "sourcedoccheck").isSet?)
assert($ie.text_field(:name, "SourceDocument").verify_contains("Source Doc"))
assert($ie.text_field(:name, "actionplan").verify_contains("This is a test of the Action Plan text area."))
assert($ie.text_field(:name, "RecommendedCorrectiveActions").verify_contains("This is a test of Recommended Actions Taken text area."))
assert($ie.radio(:name, "feedback").isSet?)
assert($ie.radio(:name, "feedbacktype", 'other').isSet?)
assert($ie.text_field(:name, "feedbackother").verify_contains("Feedback Other"))
end
end
--Mark
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Bret Pettichord
Sent: Thursday, March 02, 2006 12:57 PM
To: [email protected]
Subject: Re: [Wtr-general] Older scripts running really slow...
Could you please do an apples to apples comparison running your scripts with different versions of Watir against the same version of your application. It's possible an application change triggered the performance problem. Let us know the results.
It would also be nice if you could share the Watir scripts that are slow.
BretOn 3/2/06, Cain, Mark < [EMAIL PROTECTED]> wrote:
I have some Watir script I wrote about 6 months ago and needed to do some regression testing using these scripts. Well when I began running them they were really slow! Where it used to take 15 to 20 seconds to fill out the page form now is taking 3 to 4 minutes. I have recently upgraded my Watir installation will the latest from SVN and ruby with 1.8.4 Preview 3. Has anyone one else been experiencing slowness? If yes, what did you do to fix it?
Thanks,
____________________
Mark L. Cain
LMIT - E *STARS ® ~ Lead Test Engineer
1981 Snyder, MSIN: G3-62, Richland, WA 99354
[EMAIL PROTECTED]
509.376.5458
"640 Kilobytes of computer memory ought to be enough for anybody." - Bill Gates, 1981
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
