Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Selenium by (7k points)

I want to remotely check if the Selenium Grid is currently executing any tests or not. If yes, I can then queue any additional runs sent to the Grid from the web interface.

Can you help on this?

1 Answer

0 votes
by (31.9k points)

Create a node-config.json file and store this parameters.

{

    "capabilities": [

        {

            "browserName": "chrome",

            "maxInstances": "2",#settings per browser

        }

    ],

    "maxSession": "3", #settings per node

}

To start a node:

 java -jar /path_to_driver/serve.jar -role node -hub HUB_ADDRESS -nodeConfig /path_to_node_config/node-config.json

So if you run new test, the grid will register it and will wait for a free node.

Want to learn Selenium, checkout our Selenium training. 

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94.1k users

Browse Categories

...