Selenium Grid - Maximum Instances & Maximum Sessions Per Node and Other Issues

2,057 views
Skip to first unread message

Alok Agarwal

unread,
Sep 22, 2014, 1:35:42 AM9/22/14
to seleniu...@googlegroups.com
Hi Friends,
  • I am looking to know the number of maximum instances and maximum sessions that I can run per Node.
  • When initialize node through command prompt, it takes a max of 5 sessions and not more than that.
  • I would like to run 100 sessions in 100 instances on my test machine.
  • I used JSON file too, but after initializing node from command prompt, and after I run tests in Eclipse it fails and gives CONFIGURATION ERROR as given below: Please find JSON file attached for your reference.

FAILED CONFIGURATION: @BeforeClass setup("firefox")
org.openqa.selenium.WebDriverException: Build info: version: '2.42.2', revision: '6a6995d', time: '2014-06-03 17:42:03'
System info: host: 'HYDTQA-8J8D3BS', ip: '10.30.2.90', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_67'
Driver info: org.openqa.selenium.remote.RemoteWebDriver

Please assist ASAP.

Regards,
Alok
Node1.json

Krishnan Mahadevan

unread,
Sep 22, 2014, 1:49:02 AM9/22/14
to Selenium Users
There are still a lot of things that aren't clear here.

How are you starting off your node ? [ We need to see the command and also the JSON file that you are passing in, if its a different one from what you have shared here ]. The JSON file that you shared basically has this : "maxSession":1, [ This means that the node at any given point in time will only service 1 test at a time ].

Coming to your error, it still doesnt tell the actual problem. My limited interactions with the grid suggest that when there are no more slots available for a new test to be allotted to, the grid puts them in a queue and waits for a slot to be available. So I dont think there are any exceptions that are going to bubble up because of this.

You can take a look at this blog post that I created which explains how to setup a grid and start using it.



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/
My Technical Scribbings @ http://rationaleemotions.wordpress.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/msgid/selenium-users/5313fc78-6542-4a6e-9ef2-9fd7abbe8a5b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alok Agarwal

unread,
Sep 22, 2014, 3:50:07 AM9/22/14
to seleniu...@googlegroups.com
Thanks  Krishnan for your reply,

I am starting the node through JSON file in command prompt by going to the folder where JSON file exist and then type following command:
java -jar selenium-server-standalone-2.42.2.jar -role rc -nodeConfig Node1.json

Yes, before reporting the issue, I tried with maxsession 1 and maxinstance 1, but that also ended up with error in Eclipse.

When I use following command in command prompt, it works fine, but again maxsessions and maxinstance is a problem:
java -jar selenium-server-standalone-2.42.2.jar -role webdriver -hub http://localhost:4444/grid/register -port 5556 -browser  browserName=firefox, maxInstance=4 maxSession=2

I get the error in Eclipse even when I have just started the hub and node only with JSON file. Not sure why.

I am going through your link and will try getting help from it.

Regards,
Alok


--
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/f-I4UT9DFCc/unsubscribe.
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.

Krishnan Mahadevan

unread,
Sep 22, 2014, 3:58:04 AM9/22/14
to Selenium Users
Alok,

Can you please share the complete stacktrace of the error you are seeing ?

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/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/

Alok Agarwal

unread,
Sep 22, 2014, 4:07:25 AM9/22/14
to seleniu...@googlegroups.com
Thanks Krishnan,

Please find the attached file with error details from Eclipse console.

I tried creating a new json/config file from your link that you provided, but I am unable to start the node using that file.

I am using my previous json file again. Is it okay?

Regards,
Alok

EclipseError_StackTrace.txt

Alok Agarwal

unread,
Sep 22, 2014, 5:06:56 AM9/22/14
to seleniu...@googlegroups.com
Hi Krishnan,

I have made some modifications in my JSON file after referring your link and webpages.Please find updated JSON file which worked for me.
Now, it seems to be working for Firefox fine. Thanks a lot.

However, I want to use the same thing for Chrome and its failing. Is there a different way to call Node JSON file in command prompt for Chrome browser?

Regards,
Alok

Node2.json

Alok Agarwal

unread,
Sep 22, 2014, 8:55:35 AM9/22/14
to seleniu...@googlegroups.com
Nevermind, I could figure it out and it is working fine now.

Thanks for the support.

Regards,
Alok
Reply all
Reply to author
Forward
0 new messages