Unit 4: Various Testing Frameworks Available in Java - Subjective Questions

CSE376 — Automated Testing • Practice Questions with Detailed Answers

20 questions

1

Define testing tool selection criteria. Explain the major factors that should be considered while selecting a testing tool for a Java project.

2

Explain a systematic process for evaluating and selecting an automated testing framework for a Java application.

3

Describe the fundamentals of Jenkins and explain its role in automated testing.

4

Explain how Jenkins, Maven, and JUnit can be combined to create a continuous integration workflow for a Java project.

5

Define TestNG and describe its important features for Java test automation.

6

Compare JUnit 5 and TestNG with respect to architecture, annotations, parameterization, grouping, dependencies, and parallel execution.

7

What is Maven? Explain its project structure, dependency management, and build lifecycle in the context of automated testing.

8

Distinguish between the Maven Surefire and Failsafe plugins. When should each plugin be used?

9

Explain the architecture of JUnit 5 and state the purpose of the JUnit Platform, JUnit Jupiter, and JUnit Vintage.

10

Introduce the JUnit framework and explain why it is important in test-driven and automated Java development.

11

What defines a test in JUnit 5? Describe the requirements and characteristics of a well-formed JUnit test method.

12

Explain recommended JUnit naming conventions for test classes and test methods. Give suitable examples.

13

What is a JUnit test suite? Explain how suites can be created and used in JUnit 5.

14

Write and explain a JUnit 5 test for a Calculator.add(int a, int b) method using the Arrange-Act-Assert pattern.

15

Describe the principal JUnit 5 code constructs, including test annotations, lifecycle annotations, assertions, assumptions, and exception testing.

16

Distinguish between assertions and assumptions in JUnit 5. Illustrate their use with examples.

17

Explain the support provided by Eclipse for creating, running, debugging, and reviewing JUnit tests.

18

Describe how to install and configure JUnit 5 in both a Maven-based Java project and a non-Maven Eclipse project.

19

Define Gherkin and explain the purpose of its major keywords with a suitable feature scenario.

20

Explain Scenario Outline, Examples, and step definitions in Gherkin-based testing. Discuss the qualities of an effective Gherkin scenario.