-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutOfRange.feature
53 lines (38 loc) · 1.97 KB
/
outOfRange.feature
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Feature: As a student, I would like to identify a triangle based on the length of three sides input that is out ofrange
Background:
Give I am a geometry student
Scenario Outline: Normal Flow
I would like to identify a if it is triangle based on the length of three sides
Given length of side A is <SIDEA>
And the length of side B is <SIDEB>
And the length of side C is <SIDEC> which is out of range
When I request the triangle type
Then I will be informed that it is out of range with <message>
Examples:
| SIDEA | SIDEB | SIDEC | message |
| 2 | 40 | "-1" | "Out of range" |
| 4 | 2 | "0" | "Out of range" |
| 2 | 2 | "199" | "Out of range" |
Scenario Outline: Normal Flow
I would like to identify a if it is triangle based on the length of three sides
Given length of side A is <SIDEA>
And the length of side B is <SIDEB> which is is out of range
And the length of side C is <SIDEC>
When I request the triangle type
Then I will be informed that it is out of range with <message>
Examples:
| SIDEA | SIDEB | SIDEC | message |
| 2 | "-1" | 40 | "Out of range" |
| 4 | "0" | 2 | "Out of range" |
| 2 | "199" | 2 | "Out of range" |
Scenario Outline: Error Flow
I would like to identify a if it is a triangle based on the length of three sides but i only enter two sides
Given length of side A is <SIDEA>
And the length of side B is <SIDEB> is out of range
When I request the triangle type
Then I should get a error message <error>
Examples:
| SIDEA | SIDEB | error |
| 40 | "-1" | "Please enter three sides" |
| 2 | "0" | "Please enter three sides" |
| 2 | "199" | "Please enter three sides" |