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]

Reply via email to