Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. Feature: Show patient details
  2.  
  3. In order to check the physical condition of a patient
  4. As a caretaker
  5. I want to consult his/her personal details
  6.  
  7. Scenario: the personal details of a registered patient are given
  8. Given a patient with the social security number "93051822361", gender "male" and birthdate "1993-05-18"
  9. And on "2000-04-10" the patient had a length of 180 cm and a weight of 75000 gr
  10. And the patient is registered
  11. When I ask for the details of the patient using his social security number
  12. Then the personal details social security number, gender and birthdate are given
  13. And the examination details length, weight and last examination date are given
  14. And the calculated bmi 23.15 is given
  15.  
  16. Scenario: the physical data of the most recent examination are given
  17. Given a patient with the social security number "93051822361"
  18. And on "2000-04-17" the patient had a length of 180 cm and a weight of 80000 gr
  19. And the patient is registered
  20. And on "2000-04-10" the patient had a length of 180 cm and a weight of 75000 gr but these data were added later
  21. When I ask for the details of the patient using his social security number
  22. Then the length 180, weight 80000, and date of the examination "2000-04-17" are given
  23. And the calculated bmi 24.69 is based on these data
  24.  
  25. Scenario: an error message is given if the patient cannot be found
  26. Given a patient that is not registered
  27. When I ask for the details of the patient using his social security number
  28. Then an error message is given
  29. And no details are given
  30.  
  31. Scenario Outline: the bmi is rounded to 2 digits
  32. Given a patient that is registered with a length <length> cm and weight <weight> gr
  33. When I ask for the details of the patient
  34. Then the bmi <bmi> is given rounded to two digits
  35.  
  36. Examples:
  37. |length |weight |bmi |
  38. |160 |65000 |25.39 |
  39. |160 |65001 |25.39 |
  40. |160 |65009 |25.39 |
  41. |180 |75000 |23.15 |
  42. |180 |75009 |23.15 |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement