volume_mute

Mentcare Allergy Test Cases

publish date2026/06/19 10:15:25.235659 UTC

volume_mute

Five test cases were derived to check the drug allergy requirements for a medical record system. Match each test case to what it verifies.

To complete the line match

  1. Click on an item in the first group
  2. Click on the match in the second group

To delete a match, double click on a line

Test Case

Patient with no known allergies is prescribed a drug
Patient with a known allergy is prescribed the drug they are allergic to
Prescriber ignores allergy warning and overrules it
Patient allergic to two drugs is prescribed both drugs separately

Verifies

Warning is issued when the allergic drug is prescribed
No warning is issued when no allergy exists
Correct warning issued for each drug separately
System requires the prescriber to provide a reason

Correct Answer

(1) Patient with no known allergies is prescribed a drug,No warning is issued when no allergy exists
(2) Patient with a known allergy is prescribed the drug they are allergic to,Warning is issued when the allergic drug is prescribed
(3) Patient allergic to two drugs is prescribed both drugs separately,Correct warning issued for each drug separately
(4) Prescriber ignores allergy warning and overrules it,System requires the prescriber to provide a reason

Explanation

Requirements-based testing requires multiple tests per requirement to cover all scenarios: testing no-allergy cases (normal path), single allergy cases (warning triggered), multiple allergy cases (multiple warnings), and the override case (reason required). Each test case validates a distinct behavioral aspect of the requirements.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears