QuestionQ46

VerifiedTest Analysis and Test Design

You are testing an e-commerce website. There have been issues with the shopping cart displaying the wrong number of items. You want to expand the tests to include varying numbers of items in the cart and checking the cart total. The metamorphic relationship is that the number of items selected should match the number of items in the cart.

Which of the following is the input for the test case?

Explanation

In metamorphic testing, the input is the value that the tester deliberately varies to construct follow-up test cases, while the output is the resulting system behavior checked against the metamorphic relation. Since the stated relation compares the number of items selected to the number of items shown in the cart, the items selected for the cart is the controlled input, and the items appearing in the cart is the observed output used to validate that relation.

Community Discussion

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