|
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 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. On 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, ____________________
|
_______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
