我试图开始实现 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'