-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathcomplex_space.feature
More file actions
31 lines (26 loc) · 970 Bytes
/
complex_space.feature
File metadata and controls
31 lines (26 loc) · 970 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Feature: Complex Addition
In order to avoid silly mistakes
As a math idiot
I want to be told the sum of two numbers
Background:
Given I have a calculator
Scenario: Add two numbers
Given I have entered "50" and "75" into the calculator
And I have entered 70 into the calculator
When I press add
Then the result should be 120 on the screen
Scenario Outline: Add three numbers
Given I have entered <number1> into the calculator
And I have entered <number2> into the calculator
And I have entered 120 into the calculator
When I press add
Then the result should be <number3> on the screen
Examples:
| number1 | number2 | number3 |
| 10 | 20 | 150 |
| 20 | 40 | 180 |
Scenario: Add two numbers
Given I have entered 50 into the calculator
And I have entered 70 into the calculator
When I press add
Then the result should be 120 on the screen