Discussion:
[selenium-users] JSON file for standalone
m***@gmail.com
2018-12-06 20:54:57 UTC
Permalink
I'm trying to start selenium-server-standalone in a standalone role using a
JSON config file:

java -jar selenium-server-standalone.jar -role standalone -config
config.json

I want to be able to define, at minimum, the following:

"maxInstances": 1

"maxSession": 1

"host": "0.0.0.0"

"port": 5555

I do not know what this configuration file looks like. I was hoping it was
like the node JSON configuration file:


{ "capabilities": [ { "version": "70.0.3538.110", "browserName": "chrome",
"maxInstances": 1, "seleniumProtocol": "WebDriver", "applicationName": "" }
], "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",
"maxSession": 1, "host": "0.0.0.0", "port": 5555, "register": true,
"registerCycle": 5000, "nodePolling": 5000, "unregisterIfStillDownAfter":
60000, "downPollingLimit": 2, "debug": false }
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9025503b-5c9d-41dd-aeb2-f8f579fd5dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Krishnan Mahadevan
2018-12-07 04:25:20 UTC
Permalink
You can look at the below files from the codebase to understand how does the configuration file look like:


For the node: https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultNodeWebDriver.json
For the hub: https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultHub.json
For the standalone server : https://github.com/SeleniumHQ/selenium/blob/master/java/server/src/org/openqa/grid/common/defaults/DefaultStandalone.json


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/



From: <selenium-***@googlegroups.com> on behalf of <***@gmail.com>
Reply-To: <selenium-***@googlegroups.com>
Date: Friday, December 7, 2018 at 9:53 AM
To: Selenium Users <selenium-***@googlegroups.com>
Subject: [selenium-users] JSON file for standalone



I'm trying to start selenium-server-standalone in a standalone role using a JSON config file:



java -jar selenium-server-standalone.jar -role standalone -config config.json



I want to be able to define, at minimum, the following:

"maxInstances": 1

"maxSession": 1

"host": "0.0.0.0"

"port": 5555

I do not know what this configuration file looks like. I was hoping it was like the node JSON configuration file:



{

  "capabilities": [

    {

      "version": "70.0.3538.110",

      "browserName": "chrome",

      "maxInstances": 1,

      "seleniumProtocol": "WebDriver",

      "applicationName": ""

    }

  ],

  "proxy": "org.openqa.grid.selenium.proxy.DefaultRemoteProxy",

  "maxSession": 1,

  "host": "0.0.0.0",

  "port": 5555,

  "register": true,

  "registerCycle": 5000,

  "nodePolling": 5000,

  "unregisterIfStillDownAfter": 60000,

  "downPollingLimit": 2,

  "debug": false

}
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/9025503b-5c9d-41dd-aeb2-f8f579fd5dee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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-users+***@googlegroups.com.
To post to this group, send email to selenium-***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/8B259CA1-C4F5-4110-8DB4-63C2ADFE05C9%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Loading...