Discover the number of test cases required for comprehensive coverage of Health4You insurance rules using collapsed decision table testing. Excludes infeasible or conflicting condition combinations.
Table of Contents
Question
When applying for health insurance from Health4You, applicants are categorised according to their age, sex, the number of units of alcohol they consume in an average week, Body Mass Index (BMI), whether in full-time work and whether a smoker.
Insurance is supplied and the premium calculated according to the following rules
Insurance cover is NOT given to those aged 70 or more, or below 18.
Those who consume on average more than 14 units of alcohol a week have an additional premium of £25 per month.
Those with a BMI greater than 35 are NOT given insurance cover.
Smokers have an additional premium of £20 per month.
Those in full-time employment have a premium reduction of £20 per month.
How many test cases are required to give full coverage for the above rules when applying collapsed decision table testing and excluding rules that either have infeasible combinations of condition values or have conflicting condition values?
A. 17.
B. 14.
C. 10.
D. 8.
Answer
C. 10.
Explanation
To determine the number of test cases needed for full coverage using collapsed decision table testing, we need to analyze each rule and identify the conditions and actions. Let’s break it down:
Rule 1: Age condition
– Condition 1: Age < 18 (Action: No insurance)
– Condition 2: 18 <= Age < 70 (Action: Insurance provided)
– Condition 3: Age >= 70 (Action: No insurance)
Rule 2: Alcohol consumption condition
– Condition 1: Alcohol units > 14 (Action: Additional premium of £25/month)
– Condition 2: Alcohol units <= 14 (Action: No additional premium)
Rule 3: BMI condition
– Condition 1: BMI > 35 (Action: No insurance)
– Condition 2: BMI <= 35 (Action: Insurance provided)
Rule 4: Smoking condition
– Condition 1: Smoker (Action: Additional premium of £20/month)
– Condition 2: Non-smoker (Action: No additional premium)
Rule 5: Employment condition
– Condition 1: Full-time employed (Action: Premium reduction of £20/month)
– Condition 2: Not full-time employed (Action: No premium reduction)
When applying collapsed decision table testing, we combine conditions to reduce the number of test cases while still achieving full coverage. We can create a table with all valid combinations of conditions, excluding infeasible or conflicting combinations.
Valid combinations (excluding infeasible/conflicting):
- Age 18-69, Alcohol <=14, BMI <=35, Non-smoker, Full-time
- Age 18-69, Alcohol <=14, BMI <=35, Non-smoker, Not full-time
- Age 18-69, Alcohol <=14, BMI <=35, Smoker, Full-time
- Age 18-69, Alcohol <=14, BMI <=35, Smoker, Not full-time
- Age 18-69, Alcohol >14, BMI <=35, Non-smoker, Full-time
- Age 18-69, Alcohol >14, BMI <=35, Non-smoker, Not full-time
- Age 18-69, Alcohol >14, BMI <=35, Smoker, Full-time
- Age 18-69, Alcohol >14, BMI <=35, Smoker, Not full-time
- Age <18, Any alcohol, Any BMI, Any smoking, Any employment
- Age >=70, Any alcohol, Any BMI, Any smoking, Any employment
- Any age, Any alcohol, BMI >35, Any smoking, Any employment
Therefore, the correct answer is C. 10 test cases are required for full coverage using collapsed decision table testing, excluding infeasible or conflicting condition combinations.
ISTQB CTAL-TA certification exam assessment practice question and answer (Q&A) dump including multiple choice questions (MCQ) and objective type questions, with detail explanation and reference available free, helpful to pass the ISTQB CTAL-TA exam and earn ISTQB CTAL-TA certification.