Recall & Review
beginner
What is Selenium Grid used for?
Selenium Grid allows running tests on multiple machines and browsers at the same time. It helps test faster and on different environments.
Click to reveal answer
beginner
What are the main components of Selenium Grid?
Selenium Grid has two main parts: the Hub and the Nodes. The Hub controls the tests and Nodes run the tests on different browsers and machines.
Click to reveal answer
beginner
How do you start a Selenium Grid Hub using Java?
You start the Hub by running the command:
java -jar selenium-server.jar hub. This opens the Hub to accept test requests.Click to reveal answer
beginner
How do you register a Node to the Hub?
You start a Node with the command:
java -jar selenium-server.jar node --hub http://localhost:4444. This connects the Node to the Hub.Click to reveal answer
beginner
Why use Selenium Grid instead of running tests locally?
Selenium Grid lets you run many tests at once on different browsers and machines. This saves time and checks your app works everywhere.
Click to reveal answer
What is the role of the Selenium Grid Hub?
✗ Incorrect
The Hub manages test requests and sends them to Nodes for execution.
Which command starts a Selenium Grid Node and connects it to the Hub?
✗ Incorrect
The Node command includes the --hub URL to register with the Hub.
What port does Selenium Grid Hub use by default?
✗ Incorrect
Selenium Grid Hub listens on port 4444 by default.
Which of these is NOT a benefit of using Selenium Grid?
✗ Incorrect
Selenium Grid does not write test scripts; it only runs them on multiple machines.
What must be installed on each machine that acts as a Node?
✗ Incorrect
Each Node needs Selenium Server and browser drivers to run tests.
Explain the steps to set up Selenium Grid for running tests on multiple browsers.
Think about starting the Hub first, then Nodes, then running tests.
You got /4 concepts.
Describe the advantages of using Selenium Grid in test automation.
Consider speed, coverage, and management benefits.
You got /4 concepts.