テストを並行して実行できるように、watirgrid の実装を開始しようとしています。これは、テストを開始したサンプル コードです。
require 'watirgrid'
require 'pp'
require 'pp'
# Start a Controller
controller = Controller.new
controller.start
# Start a Provider
provider = Provider.new(:browser_type => 'safari')
provider.start
grid = Watir::Grid.new
grid.start(:take_all => true)
pp grid.browsers.first
# Take the first browser on the grid and execute some Watir
browser = grid.browsers.first[:object].new_browser
browser.goto "http://google.com"
browser.close
しかし、このコードを実行すると、次のエラーが発生します
C:\rubyprograms>ruby gridtesting.rb
I, [2013-11-26 16:57:38 #18484] INFO -- : Controller started on : druby://10.33.115.126:56377
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/watirgrid-1.1.5/lib/provider.rb:110:in `start': Use RbConfig instead of obsolete and deprecated Config.
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/watirgrid-1.1.5/lib/provider.rb:110:in `start': Use RbConfig instead of obsolete and deprecated Config.
I, [2013-11-26 16:57:39 #18484] INFO -- : Provider started on : druby://10.33.115.126:56378
C:/Ruby200-x64/lib/ruby/2.0.0/rinda/ring.rb:180:in `lookup_ring': undefined method `each' for "10.33.115.126":String (NoMethodError)
from C:/Ruby200-x64/lib/ruby/2.0.0/rinda/ring.rb:202:in `block in lookup_ring_any'