-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalid.feature
57 lines (42 loc) · 2.09 KB
/
valid.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
54
55
56
57
Feature: As a student, I would like to identify a triangle based on the length of three sides with valid input
Background:
Give I am a geometry student
Scenario Outline: Normal Flow
I would like to identify a 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>
When I request the triangle type
Then I will be informed the type is <TRIANGLE>
Examples:
| SIDEA | SIDEB | SIDEC | TRIANGLE |
| 30 | 30 | 30 | "Equilateral" |
| 20 | 15 | 15 | "Isosceles" |
| 5 | 6 | 7 | "Scalene" |
| 2 | 2 | 30 | "Not A Triangle" |
Scenario Outline: Alternate Flow
I would like to identify a triangle based on the length of three sides and I change the order of A and B
Given length of side A is <SIDEB>
And the length of side B is <SIDEA>
And the length of side C is <SIDEC>
When I request the triangle type
Then I will be informed the type is <TRIANGLE>
Examples:
| SIDEA | SIDEB | SIDEC | TRIANGLE |
| 30 | 30 | 30 | "Equilateral" |
| 15 | 20 | 15 | "Isosceles" |
| 6 | 5 | 7 | "Scalene" |
| 2 | 2 | 30 | "Not A Triangle" |
Scenario Outline: Error Flow
I would like to identify a triangle based on the length of three sides but i only enter two sides
Given length of side A is <SIDEC>
And the length of side B is <SIDEB>
And I dont input side C
When I request the triangle type
Then I should get a error message <error>
Examples:
| SIDEC | SIDEB | error |
| 30 | 30 | "Please enter three sides" |
| 15 | 20 | "Please enter three sides" |
| 5 | 7 | "Please enter three sides" |
| 6 | 5 | "Please enter three sides" |