QuestionQ60

VerifiedTest Analysis and Test Design

Supercar is an online vehicle-sales website that specializes in single-manufacturer Sports Utility Vehicles (SUVs) and saloons. A vehicle has two key elements: power unit and body style. The manufacturer provides three power-unit choices: petrol, diesel, and hybrid. There are three main body styles: Saloon, Hatchback, and SUV. SUVs are available only with petrol and diesel options. Hybrid is available only for Hatchback. The site will process an order when the selected vehicle configuration is in stock; otherwise, it displays a message asking the user to try again later.

Based on the specification, the following classification tree has been developed:

Question Image

Based on the “Supercar” classification tree, the following positive test cases have been created:

Question Image

Which test case is required to complete the set?

Explanation

Hybrid is a required power-unit class not covered by the existing positive tests. The specification permits hybrid only with the Hatchback body style, so Hybrid/Hatchback is the valid test needed to complete coverage.

Community Discussion

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