flights_gui_tests 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ff7c78b697bea3ff7ded2c1e8edebe885431490d
4
- data.tar.gz: ba08856fe7b286f1b17f0786bbd47e63d3eff823
3
+ metadata.gz: 89958fc6d9f6cd30102875dd6264854d92fe865a
4
+ data.tar.gz: c9e2a740ea3477492600cc8ef730f49c0c7b554a
5
5
  SHA512:
6
- metadata.gz: 1ad6f7712d62722a306e67f86c51623aaa08e922a2dec639b7ccd493a2ea834bc178b8e63ccb9c1ad67ef4cf56300bfd93cde84f725d4519cd4fd9ec7cad178c
7
- data.tar.gz: f68627df0fddb461fba54bc4b403bbee819f7b9ca35df1d225052389c509622b1c2f37f5d6e70b254e05631a1bb775efa54a40049d409dbcd66a4651ef0c9480
6
+ metadata.gz: 899e2764aa6fbb5284f52f9b1abb7001647c72e48aa91e732a11ea3ce7727f75f12259ce61f2da425163f69ded5772e6ac0c0fe316b58095e1f39d344cf4d8ef
7
+ data.tar.gz: 2ae0cc944226ce6544479b4ebbc569698f4c6a93b29641232a3d33acd22b3ffe74f3f001cfe0b548cdd9a1416712753cbbbd4bff621bd3932322ad8c7e894c7a
@@ -0,0 +1 @@
1
+ sao;ssa;2015-01-01;1
@@ -19,4 +19,34 @@ end
19
19
 
20
20
  Entonces(/^es ida y vuelta$/) do
21
21
  @page.manage_data.description.should equal("roundtrip")
22
- end
22
+ end
23
+
24
+ Cuando(/^realizo las busquedas para promos$/) do
25
+ file=File.open("features/data/promos.csv")
26
+ file.each_line do |line|
27
+ data=line.split(';')
28
+ puts data
29
+ data[3].to_i.times do |i|
30
+ aux = Date.parse(data[2])
31
+ date = aux + i
32
+ url_rt = "http://www.decolar.com/shop/flights/results/roundtrip/#{data[0]}/#{data[1]}/#{date}/#{date+8}/1/0/0"
33
+ url_ow = "http://www.decolar.com/shop/flights/results/oneway/#{data[0]}/#{data[1]}/#{date}/1/0/0"
34
+ rt = "http://www.decolar.com/shop/flights/data/search/roundtrip/#{data[0]}/#{data[1]}/#{date}/#{date+8}/1/0/0/TOTALFARE/ASCENDING/NA/NA/NA/NA/NA?hashForData=#{Digest::MD5.hexdigest(url_rt+'despegar')}"
35
+ ow = "http://www.decolar.com/shop/flights/data/search/oneway/#{data[0]}/#{data[1]}/#{date}/1/0/0/TOTALFARE/ASCENDING/NA/NA/NA/NA?hashForData=#{Digest::MD5.hexdigest(url_ow+'despegar')}"
36
+ #Thread.new(rt,ow,ok,fail,oks,fails) do |rt,ow,ok,fail,oks,fails|
37
+ begin
38
+ get_rt = HTTParty.get(rt,:headers => {"X-UOW" => "ROBOT_ALERTA_PRCIO","referer"=>url_rt})
39
+ puts rt
40
+ rescue Errno::ECONNRESET,Timeout::Error
41
+ puts "fail: #{rt}"
42
+ end
43
+ begin
44
+ get_ow = HTTParty.get(ow,:headers => {"X-UOW" => "ROBOT_ALERTA_PRCIO","referer"=>url_ow})
45
+ puts ow
46
+ rescue Errno::ECONNRESET,Timeout::Error
47
+ puts "fail: #{ow}"
48
+ end
49
+ #end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,13 @@
1
+ #language: es
2
+ @checkout
3
+ Característica: checkout.busquedas_promo
4
+ Se realiza la carga de promociones con una busqueda
5
+
6
+ @busquedas_promo
7
+ Esquema del escenario: Recarga de promociones
8
+ Cuando realizo las busquedas para promos
9
+
10
+ @ar
11
+ Ejemplos:
12
+ |pais|tipo|cabotage|
13
+ |AR |roundtrip|nil|
@@ -14,7 +14,7 @@ Gem::Specification.new do |gem|
14
14
 
15
15
  gem.require_paths = ["lib"] # Usualmente es solo lib -> ["lib"]
16
16
 
17
- gem.version = '0.4.0' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '0.4.1' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
18
18
 
19
19
  gem.add_dependency('henry-container', '>= 0.1.39')
20
20
  gem.add_dependency('page-object')
data/henry-context.yml CHANGED
@@ -1351,6 +1351,35 @@ tasks:
1351
1351
  recipients:
1352
1352
  - estebanldh@gmail.com
1353
1353
  - nsimean@despegar.com
1354
+ - name: checkout.busquedas_promo
1355
+ class_name: Henry::Task::CucumberTask
1356
+ options:
1357
+ tags:
1358
+ - checkout
1359
+ - busquedas_promo
1360
+ expand: true
1361
+ no-source: true
1362
+ reports:
1363
+ - format: html
1364
+ name: ${DATE}_${TASK_NAME}.html
1365
+ recipients:
1366
+ - estebanldh@gmail.com
1367
+ - nsimean@despegar.com
1368
+ - name: checkout.busquedas_promo.ar
1369
+ class_name: Henry::Task::CucumberTask
1370
+ options:
1371
+ tags:
1372
+ - checkout
1373
+ - busquedas_promo
1374
+ - ar
1375
+ expand: true
1376
+ no-source: true
1377
+ reports:
1378
+ - format: html
1379
+ name: ${DATE}_${TASK_NAME}.html
1380
+ recipients:
1381
+ - estebanldh@gmail.com
1382
+ - nsimean@despegar.com
1354
1383
  - name: results.errors
1355
1384
  class_name: Henry::Task::CucumberTask
1356
1385
  options:
@@ -2911,6 +2940,68 @@ tasks:
2911
2940
  recipients:
2912
2941
  - estebanldh@gmail.com
2913
2942
  - nsimean@despegar.com
2943
+ - name: results.matrix_price.br
2944
+ class_name: Henry::Task::CucumberTask
2945
+ options:
2946
+ tags:
2947
+ - results
2948
+ - matrix_price
2949
+ - br
2950
+ expand: true
2951
+ no-source: true
2952
+ reports:
2953
+ - format: html
2954
+ name: ${DATE}_${TASK_NAME}.html
2955
+ recipients:
2956
+ - estebanldh@gmail.com
2957
+ - nsimean@despegar.com
2958
+ - name: results.matrix_price.br.roundtrip
2959
+ class_name: Henry::Task::CucumberTask
2960
+ options:
2961
+ tags:
2962
+ - results
2963
+ - matrix_price
2964
+ - br
2965
+ - roundtrip
2966
+ expand: true
2967
+ no-source: true
2968
+ reports:
2969
+ - format: html
2970
+ name: ${DATE}_${TASK_NAME}.html
2971
+ recipients:
2972
+ - estebanldh@gmail.com
2973
+ - nsimean@despegar.com
2974
+ - name: results.matrix_price.mx
2975
+ class_name: Henry::Task::CucumberTask
2976
+ options:
2977
+ tags:
2978
+ - results
2979
+ - matrix_price
2980
+ - mx
2981
+ expand: true
2982
+ no-source: true
2983
+ reports:
2984
+ - format: html
2985
+ name: ${DATE}_${TASK_NAME}.html
2986
+ recipients:
2987
+ - estebanldh@gmail.com
2988
+ - nsimean@despegar.com
2989
+ - name: results.matrix_price.mx.roundtrip
2990
+ class_name: Henry::Task::CucumberTask
2991
+ options:
2992
+ tags:
2993
+ - results
2994
+ - matrix_price
2995
+ - mx
2996
+ - roundtrip
2997
+ expand: true
2998
+ no-source: true
2999
+ reports:
3000
+ - format: html
3001
+ name: ${DATE}_${TASK_NAME}.html
3002
+ recipients:
3003
+ - estebanldh@gmail.com
3004
+ - nsimean@despegar.com
2914
3005
  - name: results.matrix_airlines
2915
3006
  class_name: Henry::Task::CucumberTask
2916
3007
  options:
@@ -12613,11 +12704,11 @@ tasks:
12613
12704
  recipients:
12614
12705
  - estebanldh@gmail.com
12615
12706
  - nsimean@despegar.com
12616
- - name: landing
12707
+ - name: checkout
12617
12708
  class_name: Henry::Task::CucumberTask
12618
12709
  options:
12619
12710
  tags:
12620
- - landing
12711
+ - checkout
12621
12712
  expand: true
12622
12713
  no-source: true
12623
12714
  reports:
@@ -12626,11 +12717,11 @@ tasks:
12626
12717
  recipients:
12627
12718
  - estebanldh@gmail.com
12628
12719
  - nsimean@despegar.com
12629
- - name: flights_tracker
12720
+ - name: landing
12630
12721
  class_name: Henry::Task::CucumberTask
12631
12722
  options:
12632
12723
  tags:
12633
- - flights_tracker
12724
+ - landing
12634
12725
  expand: true
12635
12726
  no-source: true
12636
12727
  reports:
@@ -12639,11 +12730,11 @@ tasks:
12639
12730
  recipients:
12640
12731
  - estebanldh@gmail.com
12641
12732
  - nsimean@despegar.com
12642
- - name: checkout
12733
+ - name: flights_tracker
12643
12734
  class_name: Henry::Task::CucumberTask
12644
12735
  options:
12645
12736
  tags:
12646
- - checkout
12737
+ - flights_tracker
12647
12738
  expand: true
12648
12739
  no-source: true
12649
12740
  reports:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flights_gui_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2014-12-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -202,6 +202,7 @@ files:
202
202
  - Gemfile
203
203
  - features/data/host.yml
204
204
  - features/data/miles.yml
205
+ - features/data/promos.csv
205
206
  - features/data/sites.yml
206
207
  - features/data/tag_microsoft.yml
207
208
  - features/step_definitions/checkout/cash_payment_steps.rb
@@ -339,6 +340,7 @@ files:
339
340
  - features/tests/landing/sort.feature
340
341
  - features/tests/landing/tags.feature
341
342
  - features/tests/results/basefare.feature
343
+ - features/tests/results/busquedas_promo.feature
342
344
  - features/tests/results/desambiguation/airports.feature
343
345
  - features/tests/results/desambiguation/city.feature
344
346
  - features/tests/results/errors.feature
@@ -376,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
378
  version: '0'
377
379
  requirements: []
378
380
  rubyforge_project:
379
- rubygems_version: 2.4.3
381
+ rubygems_version: 2.2.2
380
382
  signing_key:
381
383
  specification_version: 4
382
384
  summary: test para results, checkout y landing