QuestionQ10

VerifiedTest Analysis and Test Design

You are evaluating an image-recognition system based on a deep neural network. The system receives as input a 1000×1000-pixel image of a geometric figure—a triangle, square, or circle. The figure has one color and appears on a solid background of a different color. The figure may be any size and may be positioned anywhere in the image. The system classifies the output figure as a triangle, square, or circle. If it receives an image that does not satisfy the preceding requirements, it returns “unrecognized shape.”

You want to test the correctness of this system using metamorphic testing.

Which of the following is NOT a valid metamorphic relation for this scenario?

Explanation

Changing a figure’s color can make it the same color as the background, so the transformed image may no longer contain a figure of one color on a solid background of another color. The relation therefore does not reliably preserve a valid input or require the same classification.

Community Discussion

No comments yet. Be the first to start the discussion!