Unit 6: Test Automation and Management/Reporting Frameworks - Subjective Questions

CSE376 — Automated Testing • Practice Questions with Detailed Answers

20 questions

1

Define Maven and explain its role in test automation projects.

2

Explain the major benefits and features of Maven.

3

Describe the major software development activities managed by Maven and explain the Maven build lifecycle.

4

Explain Maven architecture, including the roles of the POM, lifecycle, plugins, and repositories.

5

Describe the procedure for installing and configuring Maven on a computer.

6

Explain how to create a Maven project and describe its standard directory structure.

7

What is the pom.xml file? Explain its important elements and purpose.

8

Describe how dependencies are added to pom.xml and explain dependency scopes and transitive dependencies.

9

Define TestNG and explain its major features.

10

Compare TestNG and JUnit, highlighting their similarities and differences.

11

Explain how to download, install, and configure TestNG in an IDE and a Maven project.

12

Explain the important TestNG annotations and their usual order of execution.

13

Describe how to create a Selenium test case using TestNG annotations.

14

Why is TestNG needed in Selenium automation? Explain how it improves test organization and execution.

15

Describe the different ways of running TestNG tests and explain the role of testng.xml.

16

Explain how TestNG reports are created and how their results should be checked.

17

Describe how HTML reports can be generated and customized for TestNG test execution.

18

Explain how assertions are used to validate TestNG tests. Distinguish between hard and soft assertions.

19

Explain how multiple tests can be created, grouped, parameterized, and executed in TestNG.

20

Explain how tests are prioritized in TestNG. Discuss execution rules, limitations, and recommended practices.