Selenium Grid , TestNG Questions & Answers
- What is Selenium Grid?
- Scale by distributing tests on several machines
- manage multiple environments from a central point, making it easy to run the tests against a vast combination of browsers / OS.
- minimize the maintenance time for the grid by allowing you to implement custom hooks to leverage virtual infrastructure for instance
- All of the above
Ans: 4
- The selenium-server-standalone package includes the ____.
- Hub
- Webdriver
- legacy RC needed to run the grid
- All of the above
Ans: 4
- What is Hub in Selenium Grid?
- The Hub is framework to run the Grid.
- The Hub is the central point that will receive all the test request and distribute them the the right nodes.
- Both 1 & 2
- None of the above
Ans: 2
- How to start Selenium hub?
- java -jar selenium-server-standalone-2.32.0.jar -role node
- java -role hub
- java -jar selenium-server-standalone-2.32.0.jar -role hub
- None of the above
Ans: 3
- How to start Selenium nodes?
- java -jar selenium-server-standalone-2.32.0.jar -role node -hub http://localhost:4444/grid/register
- java -jar selenium-server-standalone-2.32.0.jar -role hub
- java -jar selenium-server-standalone-2.32.0.jar -role node
- All of the above
Ans: 1
- How to start remote control on port “5556” and register it to the local hub?
- Dport =5556 launch-remote-contro
- ant -Dport =5555 launch-remote-contro
- ant -Dport =5556 launch-remote-contro
- None of the above
Ans: 3
TestNG
- What is TestNG?
- TestNG is a testing framework
- designed to simplify a broad range of testing needs, from unit testing to integration testing
- Both 1 & 2
- None of the above
Ans: 3
- What are the annotations available in TestNG?
- @BeforeSuite
- @AfterSuite
- @BeforeTest
- @BeforeGroups
- All of the above
Ans: 5
- TestNG can be invoked from ____
- Command line
- ant
- Eclipse
- IntelliJ's IDEA
- All of the above
Ans: 5
- ____ statement will invoke TestNG from command line.
- java org.testng.TestNG testng1.xml [testng2.xml testng3.xml ...]
- ant -Dport =5556 launch-remote-contro
- java org.testng.TestNG
- None of the above
Ans: 1