Testing Fundamentals - Testing Models and Approaches
A tester wrote this pseudocode to select features to test based on risk:
What is wrong with this code for risk-based testing?
features = [{"name": "A", "impact": 5, "likelihood": 4},
{"name": "B", "impact": 3, "likelihood": 6}]
for feature in features:
risk = feature["impact"] + feature["likelihood"]
if risk > 8:
print(feature["name"])What is wrong with this code for risk-based testing?
