addition.yml 1.2 KB

123456789101112131415161718192021222324252627282930
  1. feature:
  2. title: Addition
  3. language: en
  4. line: 2
  5. description: |-
  6. In order to avoid silly mistakes
  7. As a math idiot
  8. I want to be told the sum of two numbers
  9. scenarios:
  10. -
  11. type: scenario
  12. title: Add two numbers
  13. line: 7
  14. steps:
  15. - { keyword_type: 'Given', type: 'Given', text: 'I have entered 11 into the calculator', line: 8 }
  16. - { keyword_type: 'Given', type: 'And', text: 'I have entered 12 into the calculator', line: 9 }
  17. - { keyword_type: 'When', type: 'When', text: 'I press add', line: 10 }
  18. - { keyword_type: 'Then', type: 'Then', text: 'the result should be 23 on the screen', line: 11 }
  19. -
  20. type: scenario
  21. title: Div two numbers
  22. line: 13
  23. steps:
  24. - { keyword_type: 'Given', type: 'Given', text: 'I have entered 10 into the calculator', line: 14 }
  25. - { keyword_type: 'Given', type: 'And', text: 'I have entered 2 into the calculator', line: 15 }
  26. - { keyword_type: 'When', type: 'When', text: 'I press div', line: 16 }
  27. - { keyword_type: 'Then', type: 'Then', text: 'the result should be 5 on the screen', line: 17 }