QuestionQ1

Acceptance Testing for Non-Functional Requirements

As a tester, you are part of a development team for a health monitoring system that records and synchronizes various health parameters, calculates a health score, and provides practical advice on maintaining and improving health.

Consider the following User Story and related acceptance criterion:

US 34 —

As a user of the system,

I can measure my blood sugar by using a blood glucose meter connected device, in order to adjust my diet and medication dosage if I am diabetic.

Acceptance criterion #1 — Once a logged-in user has taken a blood sugar measurement using the blood glucose meter, the measurement result is displayed in less than four seconds.

Which of the following Gherkin-language test cases is BEST for this user story and acceptance criterion?

  • A GIVEN I am diabetic WHEN I measure my blood sugar with a blood glucose meter connected device THEN I can see the result on my personal dashboard in less than 4 seconds
  • B GIVEN I am logged in on the system WHEN I measure my blood sugar with a blood glucose meter connected device THEN I can see the result on the my personal dashboard in less than 4 seconds
  • C GIVEN I am diabetic and logged in on the system WHEN I measure my blood sugar with a blood glucose meter connected device THEN I can see the result on the my personal dashboard in less than 4 seconds and obtain an alert if the risk of hypoglycemia or hyperglycemia is high
  • D GIVEN I am logged in on the system WHEN I measure my blood pressure THEN I can see the result on the my personal dashboard in less than 4 seconds
Explanation

A suitable Gherkin scenario expresses the required initial context, event, and observable outcome. The required precondition is that the user is logged in; the event is measuring blood sugar with the connected blood glucose meter; and the expected observable result is that the measurement result appears in less than four seconds. The scenario must not substitute a different health parameter or add an unrelated alert behavior.

Learn more

Community Discussion

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