0
0
Selenium Pythontesting~5 mins

Grid setup and configuration in Selenium Python - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is Selenium Grid used for?
Selenium Grid allows running tests on multiple machines and browsers at the same time, making testing faster and more efficient.
Click to reveal answer
beginner
What are the two main components of Selenium Grid?
The two main components are the Hub and the Nodes. The Hub controls the test execution, and Nodes run the tests on different browsers and machines.
Click to reveal answer
intermediate
How do you start a Selenium Grid Hub using Python?
You start the Hub by running the command: java -jar selenium-server.jar hub in the terminal.
Click to reveal answer
beginner
What is the purpose of registering a Node to the Hub?
Registering a Node connects it to the Hub so the Hub can send tests to that Node to run on its browser and machine.
Click to reveal answer
intermediate
How can you specify browser and platform capabilities when configuring a Node?
You specify capabilities using JSON or command-line options when starting the Node, telling it which browsers and platforms it supports.
Click to reveal answer
What component of Selenium Grid manages test distribution?
ANode
BTest Runner
CBrowser
DHub
Which command starts a Selenium Grid Node?
Apython start_node.py
Bjava -jar selenium-server.jar hub
Cjava -jar selenium-server.jar node
Dselenium-node start
Why use Selenium Grid in testing?
ATo run tests faster by parallel execution
BTo write tests in multiple languages
CTo debug tests easily
DTo create test reports
What must a Node do before it can run tests?
ARegister with the Hub
BInstall Selenium IDE
CRun the test scripts
DOpen the browser manually
Which file is commonly used to configure Selenium Grid settings?
AXML test suite
BJSON configuration file
CPython script
DHTML report
Explain the roles of Hub and Node in Selenium Grid and how they work together.
Think of Hub as a manager and Nodes as workers.
You got /4 concepts.
    Describe the steps to set up Selenium Grid for parallel testing.
    Focus on starting components and connecting them.
    You got /4 concepts.