QuestionQ40

VerifiedAgile Testing Methods, Techniques and Tools

Consider an online application that enables registered users to pay annual car tax according to a vehicle’s engine power in kW. Given this user story:

“As a customer, I need the online application to calculate the annual car tax amount I must pay for my car:

  • If the vehicle power is less than 20 kW, the annual car tax is free.
  • If the vehicle power is greater than or equal to 20 kW but less than or equal to 150 kW, the annual car tax is 250 Euros.
  • If the vehicle power is greater than 150 kW, the annual car tax is 750 Euros.”

What is the MOST suitable use of a black-box test design technique for this user story?

Explanation

Equivalence partitioning divides the vehicle-power input into classes that are expected to produce the same result: below 20 kW, from 20 kW through 150 kW, and above 150 kW. Testing representative values from these partitions verifies the applicable annual tax for each range.

Community Discussion

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