Hi tim, Thanks for your advice. I will be trying to run everything on one machine.
Also a side question which is prob really stupid, but in your examples on github, do the env.) Files in the cucumber section not start the providers and controllers. I am using cucumber with watir webdriver. I managed to get 1 test running on 2 browsers. But I was more interested in the parallel tests. So getting 2 feature files running in parallel to one another. I really do appreciate your help. Kind regards, Usman ------------------ -----Original Message----- From: Tim Koopmans <[email protected]> Sender: [email protected] Date: Fri, 3 Jun 2011 22:27:13 To: <[email protected]> Reply-To: [email protected] Subject: Re: [wtr-general] Watir Grid Examples Help Hi Usman, I can probably help you =) The correct order to start up a grid is: 1. start the controller on a central machine e.g. controller when it starts up it will tell you what its URI is. This is what you'll use to connect other providers e.g. I, [2011-06-04 08:22:15 #99844] INFO -- : Controller started on : *druby:// 10.0.1.158:11235* 2. Now on the remote machines, start up the providers e.g. provider -d webdriver -c *druby://10.0.1.158:11235* Note I need to specify a driver (-d) and the controller's URI (-c). You should see something like this in the console. I, [2011-06-04 08:25:37 #3069] INFO -- : Provider started on : druby:// 10.0.1.158:11236 I, [2011-06-04 08:25:37 #3069] INFO -- : Controller found on : druby:// 10.0.1.158:11235 I, [2011-06-04 08:25:37 #3069] INFO -- : Provider registered : druby:// 10.0.1.158:11235 Are you trying to run 2 browsers on one machine, or 2 browsers on 2 remote machines? If you are starting multiple providers on the same machine then we will need to separate their DRb servers which I can help you with ... Cheers, Tim @90kts On Fri, Jun 3, 2011 at 2:40 PM, Usman Hussain <[email protected]>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] > -- 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] -- 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]
