forgot to mention you can run your test either on controller's machine A or provider machine B with just regular ruby command: ruby yourtest.rb
On Thursday, March 28, 2013 5:34:23 PM UTC-7, [email protected] wrote: > > First turn off firewall on both your Machina A and Machine B, then try > give your provider's own IP it needs to bind itself to. > I didn't put starting controller and provider code in my test so I used > command line to start controller on my Mac host and provider on my windows > VM. > so for your case, try this code for your test: > > require 'rubygems' > require 'watir-webdriver' > require 'watir' > require 'watirgrid' > > > Watir::Grid.control(:controller_uri => 'druby://*10.60.2.121:53412*') do > |browser, id| > puts "My remote browser id is #{id}" > browser.goto("http://www.google.com") > browser.text_field(:name, 'q').set("watirgrid") > browser.button(:name, "btnG").click > end > > then on Machine A - your controller, at command line do: controller -h > 10.60.2.121 -p 53412 > on your Machine A - your provider, at command line do: provider -d > webdriver -b ie -h your.provider.ip.here -c druby://10.60.2.121:53412 > > It should start both controller and provider on both machine successfully > and should open the IE browser on Machine B and start the test > > > > > On Monday, February 25, 2013 2:04:17 AM UTC-8, do nguyen wrote: >> >> Hi Tim, >> >> Please help me on my case: >> >> I'm using Ruby193 and trying to make an example about distributed testing >> on 2 machines in a LAN network: Machine A is controller, Machine B is >> providers...as following: >> >> 1. I started the controller on by this command line: >> >> * controller = Controller.new(:drb_server_host => "10.60.2.121", >> :drb_server_port => "53412")* >> >> --> [2013-02-25 16:56:11 #8208] INFO -- : Controller started on : >> druby://10.60.2.121:53412 >> >> 2. I open the remote machine (Machine B) and try to start the provider by >> this command line: >> * >> provider = Provider.new(:controller_uri => "druby:// >> 10.60.2.121:53412")* >> >> and I'm getting this error: >> >> * *[2013-02-25 03:58:39 #624] INFO -- : Provider started on : >> druby://127.0.0.1:49325 >> * *[2013-02-25 03:58:39 #624] INFO -- : Controller found on : >> druby://10.60.2.121:53412 >> * * DRb::DRbConnError: *druby://10.60.2.121:53412* - >> #<Errno::ETIMEDOUT: A connection attempt failed because the connected party >> did not... >> >> So the provider didn't start successfully on the remote machine (Machine >> B)...I tried to turn off the firewall as well as running the command line >> in Administrator mode but no luck :( >> >> Please let me know the possible reasons which cause this error? >> >> Thanks a lot, >> DoNguyen >> >> On Friday, June 3, 2011 9:40:24 PM UTC+7, Usman Hussain wrote: >>> >>> Hi Guys, >>> >>> I wanted to get my tests to run parallel to one another so I went to >>> GitHub/WatirGrid and downloaded the whole project. >>> >>> I then began to run the examples. I was able to one tests running in >>> two different browsers (firefox and chrome). >>> >>> So then I thought let me run the parallel test provided. >>> >>> But when I do I get the following error: >>> >>> druby://10.0.1.3:11235 - #<Errno::ECONNREFUSED: Connection refused - >>> connect(2)> (DRb::DRbConnError) >>> >>> I then went to Terminal and typed in 'controller' and got the >>> following: >>> >>> I, [2011-06-03 15:31:40 #67916] INFO -- : Controller started on : >>> druby://10.194.192.181:11235 >>> >>> So I changed the controller uri to druby://10.194.192.181:11235 and >>> then i got the following error: >>> >>> druby://10.194.192.181:11235 - #<Errno::ECONNREFUSED: Connection >>> refused - connect(2)> (DRb::DRbConnError) >>> >>> Has anyone else had any trouble running the examples in watirgrid... >>> or come across this error message? >>> >>> Kind regards, >>> Usman Hussain >> >> -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
