-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinvalid.feature
53 lines (38 loc) · 1.96 KB
/
invalid.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 with invalid input
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 invalid
When I request the triangle type
Then I will be informed that it is an invalid type with <message>
Examples:
| SIDEA | SIDEB | SIDEC | message |
| 2 | 40 | "bill" | "Invalid type" |
| 4 | 2 | "s1m" | "Invalid type" |
| 2 | 2 | "1frd2" | "Invalid type" |
Scenario Outline: Alternate 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 invalid
And the length of side C is <SIDEC>
When I request the triangle type
Then I will be informed that it is an invalid type with <message>
Examples:
| SIDEA | SIDEB | SIDEC | message |
| 2 | "bill" | 40 | "Invalid type" |
| 4 | "s1m" | 2 | "Invalid type" |
| 2 | "1frd2" | 2 | "Invalid type" |
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> which is invalid
When I request the triangle type
Then I should get a error message <error>
Examples:
| SIDEA | SIDEB | error |
| 40 | "bill" | "Please enter three sides" |
| 2 | "s1m" | "Please enter three sides" |
| 2 | "1frd2" | "Please enter three sides" |