Unit 4: Selenium Validation and Grid - Subjective Questions

CSE377 — Web Automation Testing • Practice Questions with Detailed Answers

20 questions

1

Explain the purpose of Maven in a Selenium automation project. Describe the standard Maven project directory structure and the role of the pom.xml file.

2

Describe the important sections of a Maven pom.xml file for a Selenium and TestNG project. Explain how dependencies and plugins are configured.

3

What is TestNG? Explain its major features and discuss why it is suitable for Selenium automation testing.

4

Explain how to use TestNG API documentation effectively when developing Selenium test cases.

5

Describe TestNG configuration using testng.xml. Explain how suites, tests, classes, groups, parameters, and parallel execution can be defined.

6

Distinguish between hard assertions and soft assertions in TestNG. Explain their behavior and give suitable Selenium testing examples.

7

Explain the different types of assertions available in TestNG and describe how they are implemented in Selenium test cases.

8

Describe the important TestNG annotations used in a Selenium test class and explain their execution order.

9

Explain the process of creating a maintainable Selenium test case using Maven and TestNG, from setup through cleanup.

10

Explain how assertions should be implemented in a Selenium login test. Include the expected validations before, during, and after the login operation.

11

Define Selenium Grid and explain the situations in which it should be used in an automation project.

12

Explain Selenium Grid architecture. Describe how a test request travels from the client to a browser session on a node.

13

Describe the major components of Selenium Grid 4 and explain the function of each component.

14

Compare Selenium Grid standalone mode, hub-node mode, and fully distributed mode. State the advantages and limitations of each.

15

Explain how Selenium Grid is configured. Discuss the role of Grid ports, node registration, browser capabilities, and configuration files.

16

Describe the steps for creating a Selenium Grid test script that runs a test on a remote browser.

17

Explain the complete test execution process in Selenium Grid, including capability matching, session creation, command routing, and session termination.

18

What is cross-browser testing? Explain how Selenium Grid and TestNG can be combined to perform it effectively.

19

Explain Selenium Grid endpoints and describe the purpose of the commonly used endpoints for monitoring and troubleshooting.

20

Describe how to customize a Selenium Grid node for a specific browser, platform, session limit, and test requirement.