Selenium Grid- registering nodes

182 views
Skip to first unread message

Vishal Srivastava

unread,
Apr 9, 2013, 2:00:23 PM4/9/13
to seleniu...@googlegroups.com
Hi,

Can we register a node m/c from a grid m/c.

In a blog that it can be done like this-

java -jar selenium-server-standalone-2.31.0.jar -role node -port 5572 -hub http://hubip/grid/register -browser browserName=firefox,platform=any, maxInstances=5 -hubHost "hubip" -host "node ip"

but this does not work for me. In console  status is coming as-
Registering node
Registering node
Registering node
Registering node
Registering node

Can anybody help on this

Thanks,
Vishal


SELF EXPRESSION. BY EQUINOX.

This e-mail, and any attachments hereto, is intended for use only by the addressee(s) named herein, and may contain legally privileged and/or confidential information. If you are not an intended recipient of this e-mail, you are notified that any dissemination, distribution or copying of this e-mail, and any attachments hereto, is strictly prohibited. If you have received this e-mail in error, please notify the sender by reply e-mail, and permanently delete this e-mail, and any copies or printouts.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL.

Krishnan Mahadevan

unread,
Apr 10, 2013, 12:32:20 AM4/10/13
to Selenium Users
Check if you have any local firewalls configured at either the Node level or the Grid machine level which is blocking ports.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Ox5CYFS6zgAJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Vishal Srivastava

unread,
Apr 10, 2013, 1:39:36 AM4/10/13
to seleniu...@googlegroups.com
Hi,

Thanks Krishna for your input but I have already off firewall from on both the systems.

Any other suggestions?

Thanks,
Vishal


--
You received this message because you are subscribed to a topic in the Google Groups "Selenium Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/selenium-users/G-Y2XzGpe6U/unsubscribe?hl=en-US.
To unsubscribe from this group and all its topics, send an email to selenium-user...@googlegroups.com.

To post to this group, send email to seleniu...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Krishnan Mahadevan

unread,
Apr 10, 2013, 2:03:50 AM4/10/13
to Selenium Users
Vishal,

In that, you would need to ensure that on MachineA you start up the grid and in MachineB you start the node by giving the IP of the MachineA.

On Machine A you would start the Grid as below:

java -jar selenium-server-standalone-2.31.0.jar -role hub

On Machine B you would start the node as below :

java -jar selenium-server-standalone-2.31.jar -role node -hub http://machineA:4444/grid/register -port 5555

Replace MachineA with the IP of the machine A





Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


Vishal Srivastava

unread,
Apr 10, 2013, 2:10:18 AM4/10/13
to seleniu...@googlegroups.com
Yes Krishna that's working fine for me, I just want to check if I can  register node from hub m/c itself rather that executing command on m/c B.

If I can achieve this, then i can create a batch file in which I can mention all the command launching hub, registering node command together and just execute that command to start hib and nodes from hub m/c 

Vishal Srivastava

unread,
Apr 10, 2013, 2:11:51 AM4/10/13
to seleniu...@googlegroups.com
Also I have send you a friend request from coolvi...@gmail.com, if you havnt any problem then  ca you allow me to chat with you?

Krishnan Mahadevan

unread,
Apr 10, 2013, 5:49:12 AM4/10/13
to Selenium Users
No you cannot do that. You would have to spawn the node from the machine B in order to have it registered with machine A.
I dont think you can "on the fly" kick off nodes from different machines and have them hooked into the hub. You can however get all of this done, if you have an ssh daemon running on these machines.

so with that assumption, you would essentially do the following via a shell script.


On Machine A, the script will spawn a hub.
Now the same script will perform an ssh into Machine B, and kick off a node there.

I haven't tried any of these things, so there is no assurance that this would absolutely work :)
Just throwing ideas around to see if you can use any one of them.




Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


Reply all
Reply to author
Forward
0 new messages