ds-gui-automation 0.1.44 → 0.1.45
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/fenix.feature +76 -0
- data/features/step_definitions/fenix_steps.rb +73 -0
- data/henry-context.yml +98 -0
- data/lib/ds/version.rb +1 -1
- metadata +3 -1
@@ -0,0 +1,76 @@
|
|
1
|
+
Feature: Destination Services Issue Indexes
|
2
|
+
|
3
|
+
@collection
|
4
|
+
Scenario Outline: collection percentages
|
5
|
+
Given I call the bam service for "<country>"
|
6
|
+
Then I should see an acceptable percentage of reservations cancelled in collection for "<country>"
|
7
|
+
|
8
|
+
@br
|
9
|
+
Examples:
|
10
|
+
|country|
|
11
|
+
|BR|
|
12
|
+
|
13
|
+
@ar
|
14
|
+
Examples:
|
15
|
+
|country|
|
16
|
+
|AR|
|
17
|
+
|
18
|
+
@issue
|
19
|
+
Scenario Outline: issue percentages
|
20
|
+
Given I call the bam service for "<country>"
|
21
|
+
Then I should see an acceptable percentage of reservations cancelled in issue for "<country>"
|
22
|
+
|
23
|
+
@br
|
24
|
+
Examples:
|
25
|
+
|country|
|
26
|
+
|BR|
|
27
|
+
|
28
|
+
@ar
|
29
|
+
Examples:
|
30
|
+
|country|
|
31
|
+
|AR|
|
32
|
+
|
33
|
+
@vcc
|
34
|
+
Scenario Outline: VCC percentages
|
35
|
+
Given I call the bam service for "<country>"
|
36
|
+
Then I should see an acceptable percentage of reservations cancelled in VCC for "<country>"
|
37
|
+
|
38
|
+
@br
|
39
|
+
Examples:
|
40
|
+
|country|
|
41
|
+
|BR|
|
42
|
+
|
43
|
+
@ar
|
44
|
+
Examples:
|
45
|
+
|country|
|
46
|
+
|AR|
|
47
|
+
|
48
|
+
@successful
|
49
|
+
Scenario Outline: successful percentages
|
50
|
+
Given I call the bam service for "<country>"
|
51
|
+
Then I should see an acceptable percentage of successful reservations for "<country>"
|
52
|
+
|
53
|
+
@br
|
54
|
+
Examples:
|
55
|
+
|country|
|
56
|
+
|BR|
|
57
|
+
|
58
|
+
@ar
|
59
|
+
Examples:
|
60
|
+
|country|
|
61
|
+
|AR|
|
62
|
+
|
63
|
+
@others
|
64
|
+
Scenario Outline: others percentages
|
65
|
+
Given I call the bam service for "<country>"
|
66
|
+
Then I should see an acceptable percentage of reservations in others for "<country>"
|
67
|
+
|
68
|
+
@br
|
69
|
+
Examples:
|
70
|
+
|country|
|
71
|
+
|BR|
|
72
|
+
|
73
|
+
@ar
|
74
|
+
Examples:
|
75
|
+
|country|
|
76
|
+
|AR|
|
@@ -0,0 +1,73 @@
|
|
1
|
+
Given(/^I call the bam service for "(.*)"$/) do | country |
|
2
|
+
|
3
|
+
month_ago = (Time.now - 2628000).strftime('%Y-%m-%dT%H:%M:%S')
|
4
|
+
|
5
|
+
day_ago = (Time.now - 86400).strftime('%Y-%m-%dT%H:%M:%S')
|
6
|
+
|
7
|
+
today = (Time.now).strftime('%Y-%m-%dT%H:%M:%S')
|
8
|
+
|
9
|
+
@@month_call = HTTParty.get("http://10.2.7.16:80/fenix/ds/monitor?from_date=#{month_ago}Z&to_date=#{today}Z").reject { | item | !item['country'].eql?(country) }.first
|
10
|
+
|
11
|
+
@@day_call = HTTParty.get("http://10.2.7.16:80/fenix/ds/monitor?from_date=#{day_ago}Z&to_date=#{today}Z").reject { | item | !item['country'].eql?(country) }.first
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
Then(/^I should see an acceptable percentage of reservations cancelled in collection for "(.*)"$/) do | country |
|
16
|
+
|
17
|
+
month_index = (@@month_call['cancelled_in_collection'].to_f / @@month_call['created'].to_f) * 100
|
18
|
+
|
19
|
+
day_index = (@@day_call['cancelled_in_collection'].to_f / @@day_call['created'].to_f) * 100
|
20
|
+
|
21
|
+
((day_index - month_index) <= 3) if country == 'AR'
|
22
|
+
|
23
|
+
((day_index - month_index) <= 5) if country == 'BR'
|
24
|
+
|
25
|
+
end
|
26
|
+
|
27
|
+
Then(/^I should see an acceptable percentage of reservations cancelled in issue for "(.*)"$/) do | country |
|
28
|
+
|
29
|
+
month_index = (@@month_call['cancelled_in_issuance'].to_f / @@month_call['created'].to_f) * 100
|
30
|
+
|
31
|
+
day_index = (@@day_call['cancelled_in_issuance'].to_f / @@day_call['created'].to_f) * 100
|
32
|
+
|
33
|
+
((day_index - month_index) <= 1) if country == 'AR'
|
34
|
+
|
35
|
+
((day_index - month_index) <= 1) if country == 'BR'
|
36
|
+
|
37
|
+
end
|
38
|
+
|
39
|
+
Then(/^I should see an acceptable percentage of reservations cancelled in VCC for "(.*)"$/) do | country |
|
40
|
+
|
41
|
+
month_index = (@@month_call['error_vcc'].to_f / @@month_call['created'].to_f) * 100
|
42
|
+
|
43
|
+
day_index = (@@day_call['error_vcc'].to_f / @@day_call['created'].to_f) * 100
|
44
|
+
|
45
|
+
((day_index - month_index) <= 1) if country == 'AR'
|
46
|
+
|
47
|
+
((day_index - month_index) <= 1) if country == 'BR'
|
48
|
+
|
49
|
+
end
|
50
|
+
|
51
|
+
Then(/^I should see an acceptable percentage of successful reservations for "(.*)"$/) do | country |
|
52
|
+
|
53
|
+
month_index = (@@month_call['issued'].to_f / @@month_call['created'].to_f) * 100
|
54
|
+
|
55
|
+
day_index = (@@day_call['issued'].to_f / @@day_call['created'].to_f) * 100
|
56
|
+
|
57
|
+
((day_index - month_index) <= 10) if country == 'AR'
|
58
|
+
|
59
|
+
((day_index - month_index) <= 10) if country == 'BR'
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
Then(/^I should see an acceptable percentage of reservations in others for "(.*)"$/) do | country |
|
64
|
+
|
65
|
+
month_index = (@@month_call['others'].to_f / @@month_call['created'].to_f) * 100
|
66
|
+
|
67
|
+
day_index = (@@day_call['others'].to_f / @@day_call['created'].to_f) * 100
|
68
|
+
|
69
|
+
((day_index - month_index) <= 15) if country == 'AR'
|
70
|
+
|
71
|
+
((day_index - month_index) <= 15) if country == 'BR'
|
72
|
+
|
73
|
+
end
|
data/henry-context.yml
CHANGED
@@ -1410,4 +1410,102 @@ tasks:
|
|
1410
1410
|
- format: html
|
1411
1411
|
name: ${DATE}_${TASK_NAME}.html
|
1412
1412
|
|
1413
|
+
- name: collection_ar
|
1414
|
+
class_name: Henry::Task::CucumberTask
|
1415
|
+
options:
|
1416
|
+
tags:
|
1417
|
+
- collection
|
1418
|
+
- ar
|
1419
|
+
reports:
|
1420
|
+
- format: html
|
1421
|
+
name: ${DATE}_${TASK_NAME}.html
|
1422
|
+
|
1423
|
+
- name: collection_br
|
1424
|
+
class_name: Henry::Task::CucumberTask
|
1425
|
+
options:
|
1426
|
+
tags:
|
1427
|
+
- collection
|
1428
|
+
- br
|
1429
|
+
reports:
|
1430
|
+
- format: html
|
1431
|
+
name: ${DATE}_${TASK_NAME}.html
|
1432
|
+
|
1433
|
+
- name: issue_br
|
1434
|
+
class_name: Henry::Task::CucumberTask
|
1435
|
+
options:
|
1436
|
+
tags:
|
1437
|
+
- issue
|
1438
|
+
- br
|
1439
|
+
reports:
|
1440
|
+
- format: html
|
1441
|
+
name: ${DATE}_${TASK_NAME}.html
|
1442
|
+
|
1443
|
+
- name: issue_ar
|
1444
|
+
class_name: Henry::Task::CucumberTask
|
1445
|
+
options:
|
1446
|
+
tags:
|
1447
|
+
- issue
|
1448
|
+
- ar
|
1449
|
+
reports:
|
1450
|
+
- format: html
|
1451
|
+
name: ${DATE}_${TASK_NAME}.html
|
1452
|
+
|
1453
|
+
- name: vcc_ar
|
1454
|
+
class_name: Henry::Task::CucumberTask
|
1455
|
+
options:
|
1456
|
+
tags:
|
1457
|
+
- vcc
|
1458
|
+
- ar
|
1459
|
+
reports:
|
1460
|
+
- format: html
|
1461
|
+
name: ${DATE}_${TASK_NAME}.html
|
1413
1462
|
|
1463
|
+
- name: vcc_br
|
1464
|
+
class_name: Henry::Task::CucumberTask
|
1465
|
+
options:
|
1466
|
+
tags:
|
1467
|
+
- vcc
|
1468
|
+
- br
|
1469
|
+
reports:
|
1470
|
+
- format: html
|
1471
|
+
name: ${DATE}_${TASK_NAME}.html
|
1472
|
+
|
1473
|
+
- name: successful_ar
|
1474
|
+
class_name: Henry::Task::CucumberTask
|
1475
|
+
options:
|
1476
|
+
tags:
|
1477
|
+
- successful
|
1478
|
+
- ar
|
1479
|
+
reports:
|
1480
|
+
- format: html
|
1481
|
+
name: ${DATE}_${TASK_NAME}.html
|
1482
|
+
|
1483
|
+
- name: successful_br
|
1484
|
+
class_name: Henry::Task::CucumberTask
|
1485
|
+
options:
|
1486
|
+
tags:
|
1487
|
+
- successful
|
1488
|
+
- br
|
1489
|
+
reports:
|
1490
|
+
- format: html
|
1491
|
+
name: ${DATE}_${TASK_NAME}.html
|
1492
|
+
|
1493
|
+
- name: others_ar
|
1494
|
+
class_name: Henry::Task::CucumberTask
|
1495
|
+
options:
|
1496
|
+
tags:
|
1497
|
+
- others
|
1498
|
+
- ar
|
1499
|
+
reports:
|
1500
|
+
- format: html
|
1501
|
+
name: ${DATE}_${TASK_NAME}.html
|
1502
|
+
|
1503
|
+
- name: others_br
|
1504
|
+
class_name: Henry::Task::CucumberTask
|
1505
|
+
options:
|
1506
|
+
tags:
|
1507
|
+
- others
|
1508
|
+
- br
|
1509
|
+
reports:
|
1510
|
+
- format: html
|
1511
|
+
name: ${DATE}_${TASK_NAME}.html
|
data/lib/ds/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ds-gui-automation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.45
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -100,6 +100,7 @@ extra_rdoc_files: []
|
|
100
100
|
files:
|
101
101
|
- ds-gui-automation.gemspec
|
102
102
|
- Gemfile
|
103
|
+
- features/step_definitions/fenix_steps.rb
|
103
104
|
- features/step_definitions/detail_steps.rb
|
104
105
|
- features/step_definitions/checkout_steps.rb
|
105
106
|
- features/step_definitions/thanks_steps.rb
|
@@ -113,6 +114,7 @@ files:
|
|
113
114
|
- features/search.feature
|
114
115
|
- features/results.feature
|
115
116
|
- features/aftersale.feature
|
117
|
+
- features/fenix.feature
|
116
118
|
- features/checkout.feature
|
117
119
|
- henry-context.yml
|
118
120
|
- lib/ds-gui-automation.rb
|