ds-gui-automation 0.1.46 → 0.1.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/features/step_definitions/fenix_steps.rb +45 -10
- data/lib/ds/version.rb +1 -1
- metadata +1 -1
@@ -18,9 +18,16 @@ Then(/^I should see an acceptable percentage of reservations cancelled in collec
|
|
18
18
|
|
19
19
|
day_index = (@@day_call['cancelled_in_collection'].to_f / @@day_call['created'].to_f) * 100
|
20
20
|
|
21
|
-
|
21
|
+
if country == 'AR'
|
22
|
+
((day_index - month_index) <= 3).should be_true
|
23
|
+
puts "Porcentaje setteado ==> 3%"
|
24
|
+
end
|
25
|
+
if country == 'BR'
|
26
|
+
((day_index - month_index) <= 5).should be_true
|
27
|
+
puts "Porcentaje setteado ==> 5%"
|
28
|
+
end
|
22
29
|
|
23
|
-
|
30
|
+
puts "Porcentaje devuelto ==> #{day_index}"
|
24
31
|
|
25
32
|
end
|
26
33
|
|
@@ -30,9 +37,16 @@ Then(/^I should see an acceptable percentage of reservations cancelled in issue
|
|
30
37
|
|
31
38
|
day_index = (@@day_call['cancelled_in_issuance'].to_f / @@day_call['created'].to_f) * 100
|
32
39
|
|
33
|
-
|
40
|
+
if country == 'AR'
|
41
|
+
((day_index - month_index) <= 1).should be_true
|
42
|
+
puts "Porcentaje setteado ==> 1%"
|
43
|
+
end
|
44
|
+
if country == 'BR'
|
45
|
+
((day_index - month_index) <= 1).should be_true
|
46
|
+
puts "Porcentaje setteado ==> 1%"
|
47
|
+
end
|
34
48
|
|
35
|
-
|
49
|
+
puts "Porcentaje devuelto ==> #{day_index}"
|
36
50
|
|
37
51
|
end
|
38
52
|
|
@@ -42,9 +56,16 @@ Then(/^I should see an acceptable percentage of reservations cancelled in VCC fo
|
|
42
56
|
|
43
57
|
day_index = (@@day_call['error_vcc'].to_f / @@day_call['created'].to_f) * 100
|
44
58
|
|
45
|
-
|
59
|
+
if country == 'AR'
|
60
|
+
((day_index - month_index) <= 1).should be_true
|
61
|
+
puts "Porcentaje setteado ==> 1%"
|
62
|
+
end
|
63
|
+
if country == 'BR'
|
64
|
+
((day_index - month_index) <= 1).should be_true
|
65
|
+
puts "Porcentaje setteado ==> 1%"
|
66
|
+
end
|
46
67
|
|
47
|
-
|
68
|
+
puts "Porcentaje devuelto ==> #{day_index}"
|
48
69
|
|
49
70
|
end
|
50
71
|
|
@@ -54,9 +75,16 @@ Then(/^I should see an acceptable percentage of successful reservations for "(.*
|
|
54
75
|
|
55
76
|
day_index = (@@day_call['issued'].to_f / @@day_call['created'].to_f) * 100
|
56
77
|
|
57
|
-
|
78
|
+
if country == 'AR'
|
79
|
+
((day_index - month_index) <= 10).should be_true
|
80
|
+
puts "Porcentaje setteado ==> 10%"
|
81
|
+
end
|
82
|
+
if country == 'BR'
|
83
|
+
((day_index - month_index) <= 10).should be_true
|
84
|
+
puts "Porcentaje setteado ==> 10%"
|
85
|
+
end
|
58
86
|
|
59
|
-
|
87
|
+
puts "Porcentaje devuelto ==> #{day_index}"
|
60
88
|
|
61
89
|
end
|
62
90
|
|
@@ -66,8 +94,15 @@ Then(/^I should see an acceptable percentage of reservations in others for "(.*)
|
|
66
94
|
|
67
95
|
day_index = (@@day_call['others'].to_f / @@day_call['created'].to_f) * 100
|
68
96
|
|
69
|
-
|
97
|
+
if country == 'AR'
|
98
|
+
((day_index - month_index) <= 15).should be_true
|
99
|
+
puts "Porcentaje setteado ==> 15%"
|
100
|
+
end
|
101
|
+
if country == 'BR'
|
102
|
+
((day_index - month_index) <= 15).should be_true
|
103
|
+
puts "Porcentaje setteado ==> 15%"
|
104
|
+
end
|
70
105
|
|
71
|
-
|
106
|
+
puts "Porcentaje devuelto ==> #{day_index}"
|
72
107
|
|
73
108
|
end
|
data/lib/ds/version.rb
CHANGED