Unit 5: Structural Testing Using Automated Tool - Subjective Questions

CSE376 — Automated Testing • Practice Questions with Detailed Answers

20 questions

1

Define structural testing. Explain its objectives, characteristics, and major advantages and limitations.

2

Distinguish between structural testing and functional testing.

3

Explain data coverage and code coverage. How do they contribute to test adequacy?

4

Define statement coverage. Describe how it is calculated and illustrate it with an example.

5

What is branch coverage? Explain its calculation, benefits, and limitations.

6

Compare statement coverage and branch coverage. Explain why 100% statement coverage may not imply 100% branch coverage.

7

Define path coverage. Describe how paths are identified using a control-flow graph and discuss the challenges of complete path coverage.

8

What are infeasible paths? Explain their effect on structural testing and code-coverage targets.

9

Explain condition coverage and show how it differs from branch coverage for a compound decision.

10

Describe multiple-condition coverage and Modified Condition/Decision Coverage (MC/DC). Compare their testing requirements.

11

Explain loop coverage. What test cases should be designed for simple and nested loops?

12

Discuss instruction, method, class, and line coverage. How do these measures differ?

13

Introduce the EclEmma code-coverage tool and describe the procedure for running a Java program or JUnit test with coverage in Eclipse.

14

Explain how to interpret the coverage colors and counters displayed by EclEmma.

15

Describe how EclEmma coverage sessions, merging, filtering, and report export support automated testing.

16

A project reports high statement coverage but low branch coverage in EclEmma. Analyze what this result means and propose a method for improving the test suite.

17

Define cyclomatic complexity and derive its principal formulas using a control-flow graph.

18

A control-flow graph contains 12 nodes, 15 edges, and one connected component. Calculate its cyclomatic complexity and interpret the result.

19

Explain the relationship between cyclomatic complexity, independent paths, and basis-path testing.

20

Compare the major structural coverage criteria and explain how a tester should select appropriate coverage targets for a project.