Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...