Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Requirements-based testing involves examining each requirement and developing a

ID: 3722782 • Letter: R

Question

Requirements-based testing involves examining each requirement and developing a test or tests for it. Here are two system requirements of the Mentcare system related to testing for allergies:

1) If a patient is known to be allergic to any particular medication, then prescription of that medication shall result in a warning message being issued to the system user.

2) If a prescriber chooses to ignore an allergy warning, they shall provide a reason why this has been ignored.

Develop a series of tests that would satisfy the two requirements above.

Explanation / Answer

Hi,

Test cases for requirement 1-

a) Prepare a list of allergic medication for the patient.

b) Diagnose the patient disease by asking the problems that patient is facing and by comparing with disease symptoms.

c) Generate prescriptions based on the disease diagnosed.

d) Compare the list of prescriptions with the allergic drugs for the given patient. If the match ia found, a warning message should be displayed stating the prescribed medication is not recommended to the allergic patient.

Test cases for Requirement 2-

a) Request prescriber to suggest medication based on the diagnosed disease.

b) While writing the prescription, if the prescribed drug matches with any of the allergic drugs, a warning message should be displayed to the prescriber.

c) If the prescriber chooses to skip the warning message a window should be displayed to prescriber to fill in the reason of ignoring the allergic medication message.

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote