Sha256: 1e9287d53fedcdf669d69180da213adcb573c500c52882766fef26c70d07c850

Contents?: true

Size: 1.83 KB

Versions: 2

Compression:

Stored size: 1.83 KB

Contents

# libraries used by feature tests
require 'watir'
END {$ie.close if $ie && $ie.exists?; Watir::IE.quit} # close ie at completion of the tests

require 'test/unit'
require 'test/unit/ui/console/testrunner'
require 'watir/testUnitAddons'
require 'watir/testcase'

topdir = File.join(File.dirname(__FILE__), '..')
Dir.chdir topdir do
  $all_tests = Dir["unittests/*_test.rb"]
  $xpath_tests = Dir["unittests/*_xpath_test.rb"]
end

$window_tests =
    ['js_events', # is always visible
     'modal_dialog', # modal is visible
     'attach_to_existing_window', # could actually run robustly as part of the core suite!
     'attach_to_new_window', # creates new window
     'jscript',
     'send_keys', # visible
     'iedialog', # visible
     'close_window', # creates new window
     'frame_links', # visible
     'open_close',
    ].collect {|x| "unittests/windows/#{x}_test.rb"}

$non_core_tests = 
    ['popups', # has problems when run in a suite (is ok when run alone); 
               # must be visible
               # will be revised to use autoit 
               # takes 15 seconds to run
     'images', # save file must must be visible
     'screen_capture', # is always visible; takes 25 seconds
     'filefield', # is always visible; takes 40 seconds 
     'minmax', # becomes visible
     'dialog' # visible
    ].collect {|x| "unittests/#{x}_test.rb"}

$core_tests = $all_tests - $non_core_tests - $window_tests - $xpath_tests

$ie = Watir::IE.new
$ie.set_fast_speed

$myDir = File.expand_path(File.dirname(__FILE__))
$myDir.sub!( %r{/cygdrive/(\w)/}, '\1:/' ) # convert from cygwin to dos
# if you run the unit tests form a local file system use this line
$htmlRoot =  "file://#{$myDir}/html/" 
# if you run the unit tests from a web server use this line
#   $htmlRoot =  "http://localhost:8080/watir/html/"

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-1.5.3 unittests/setup.rb
watir-1.5.2 unittests/setup.rb