volume_mute

Testing Object Classes Comprehensively

publish date2026/06/17 05:25:30.016827 UTC

volume_mute

When testing object classes, which of the following should be covered to achieve comprehensive testing? Select all that apply.

Correct Answer

(1) Test all operations associated with the object
(2) Set and check the value of all attributes associated with the object
(3) Put the object into all possible states
(4) Simulate all events that cause a state change

Explanation

Comprehensive object class testing requires: testing all operations, setting and checking all attributes, putting the object into all possible states, and simulating all events that cause state changes. This ensures the object behaves correctly throughout its full lifecycle.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears