Sha256: baab6f5e6cdf4e167c64c4a967c8921527086ea1a1d1afb484acf49f4887cbb9

Contents?: true

Size: 723 Bytes

Versions: 37

Compression:

Stored size: 723 Bytes

Contents

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..') unless $SETUP_LOADED
require 'unittests/setup'

class TC_Performance < Test::Unit::TestCase
  def setup
    uses_page 'wallofcheckboxes.html'
  end
  
  # http://jira.openqa.org/browse/WTR-216
  # This should take about a quarter of a second. When the bug showed up (because the
  # fast_locate method was broken), it took nearly 10 seconds.
  def test_access_checkbox
    start_time = Time.now
    browser.checkbox(:name, 'custom_monetary_value10:config.admin.required999').set    
    elapsed_time = Time.now - start_time
    assert(elapsed_time < 1.5, 
      "Elapsed time is #{elapsed_time}, should be less than 1.5 seconds.")
  end
  
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
watir-classic-3.0.0 unittests/perf_test.rb
watir-3.0.0.rc3 unittests/perf_test.rb
watir-3.0.0.rc2 unittests/perf_test.rb
watir-3.0.0.rc1 unittests/perf_test.rb
watir-2.0.4 unittests/perf_test.rb
watir-2.0.3 unittests/perf_test.rb
watir-2.0.2 unittests/perf_test.rb
watir-2.0.2.rc1 unittests/perf_test.rb
watir-2.0.1 unittests/perf_test.rb
watir-2.0.0 unittests/perf_test.rb
watir-2.0.0.rc3 unittests/perf_test.rb
watir-2.0.0.rc2 unittests/perf_test.rb
watir-1.9.2 unittests/perf_test.rb
watir-1.9.2.rc1 unittests/perf_test.rb
watir-1.9.1 unittests/perf_test.rb
watir-1.9.1.rc1 unittests/perf_test.rb
watir-1.9.0 unittests/perf_test.rb
watir-1.9.0.rc7 unittests/perf_test.rb
watir-1.9.0.rc6 unittests/perf_test.rb
watir-1.9.0.rc5 unittests/perf_test.rb