flights_gui_tests 0.3.2 → 0.3.3

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: 6ea530a39a05b6d961f5de65e070bccbb678ead3
4
- data.tar.gz: 76a6f4abe0bf539d012bf69771e73ae0f8929a61
3
+ metadata.gz: f640de027186592b3514fb3a3db441b5e968b203
4
+ data.tar.gz: 03e0edc59cf70b4c039b942ec60eead56922227d
5
5
  SHA512:
6
- metadata.gz: f5d070a3efa28fbc39be4223a722c8976774e979a9688817d584f39481ef5928e2699d23838fbbc6ff3fd4be91644a1eb3fe6316a6fde6eaebde8319c385b1a8
7
- data.tar.gz: 3510b393fb52385c0a3c1c04de08ac1131b9aae5ffd779418d30571efda8975ff00aba7dbaef51ea9ffff5357134e20fba97d5af59dc5d051aafe1fe3eca6f21
6
+ metadata.gz: 50f3e59a55e2e5dbfa7743b980788c51aa2d0b7f2e1bc38ed16546cd0a8bdd33dc49fdb94b098821063a3661dfc4b29931ef35d329ebf60393b1fd4b3797ce93
7
+ data.tar.gz: 74ab6e5d408ea353d0a5e32f18decb5be4179b8e1af53ede7f68f3989bdb97fee58ee54de18863f1ef4ea35bc64eb3bb869b956d4af8c5f86335f82de028d29e
@@ -1,21 +1,24 @@
1
1
  # encoding: utf-8
2
2
  Cuando(/^ingreso a la pagina de checkout de agencia para una busqueda '(.*?)' del tipo '(.*?)'$/) do |tipo, cabotaje|
3
3
  @page = Checkout::CheckoutPage.new($browser)
4
+ @page.cargar_url(tipo,$ENV,cabotaje)
4
5
  begin
5
- @page.cargar_url(tipo,$ENV,cabotaje)
6
+ @page.url_busqueda
6
7
  rescue
7
- pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
8
- end
8
+ pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
9
+ end
9
10
  @page.agregar_parametro_agencia("?agency=AG14073")
10
11
  end
11
12
 
12
13
  Cuando(/^ingreso a un checkout directo para una busqueda '(.*?)' del tipo '(.*?)'$/) do |tipo, cabotaje|
13
14
  @page = Checkout::CheckoutPage.new($browser)
15
+ @page.cargar_url(tipo,$ENV,cabotaje)
14
16
  begin
15
- @page.cargar_url(tipo,$ENV,cabotaje)
17
+ @page.url_busqueda
16
18
  rescue
17
- pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
18
- end
19
+ pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
20
+ end
21
+ pending("No se encontraron resultados para la busqueda #{@page.manage_data.generate_url_results_search}")
19
22
  end
20
23
 
21
24
  Cuando(/^espero que termine de cargar la pagina de checkout$/) do
@@ -16,7 +16,7 @@ Entonces(/^el checkout tiene las nuevas formas de pago en BR$/) do
16
16
  end
17
17
 
18
18
  Entonces(/^seteo el proveedor "(.*)"$/) do |provider|
19
- @page.browser.execute_script("javascript:void(document.cookie='XDESP-FDBS-PROVIDER=#{provider};path=/');")
19
+ @page.ejecutar_script("javascript:void(document.cookie='XDESP-FDBS-PROVIDER=#{provider};path=/');")
20
20
  @page.manage_data.set_header_json({"XDESP-FDBS-PROVIDER"=>provider})
21
21
  @page.refresh
22
22
  end
@@ -26,7 +26,7 @@ module Checkout
26
26
  apellido_elements[@index].set "Romero#{PLUS_NAME[@index]}"
27
27
  documento_elements[@index].set "3245673#{@index}" if documento_elements[@index]
28
28
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
29
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
29
+ tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
30
30
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
31
31
  if edades_adultos?
32
32
  dia_nacimiento_elements[@index_menores].select(@index+1)
@@ -43,7 +43,7 @@ module Checkout
43
43
  apellido_elements[@index].set "Diez jr#{PLUS_NAME[@index]}"
44
44
  documento_elements[@index].set "4245663#{@index}" if documento_elements[@index]
45
45
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
46
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
46
+ tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
47
47
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
48
48
  dia_nacimiento_elements[@index_menores].select(@index+1)
49
49
  mes_nacimiento_elements[@index_menores].select(3)
@@ -58,7 +58,7 @@ module Checkout
58
58
  apellido_elements[@index].set "Dias Herr jrb#{PLUS_NAME[@index]}"
59
59
  documento_elements[@index].set "4249966#{@index}" if documento_elements[@index]
60
60
  nacionalidad_elements[@index].select_value(AllPages.site) if nacionalidad_elements[@index]
61
- tipo_documento_elements[@index].select_value(AllPages.site.match("AR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
61
+ tipo_documento_elements[@index].select_value(AllPages.site.match("AR|BR") ? "LOCAL" : "PASSPORT") if tipo_documento_elements[@index]
62
62
  sexo_elements[@index].select_value("MALE") if sexo_elements[@index]
63
63
  dia_nacimiento_elements[@index_menores].select(@index+1)
64
64
  mes_nacimiento_elements[@index_menores].select(3)
@@ -59,6 +59,10 @@ class AllPages
59
59
  @@manage_data.description
60
60
  end
61
61
 
62
+ def execute_script(script)
63
+ @browser.execute_script(script)
64
+ end
65
+
62
66
  def elegir_idioma()
63
67
  if @@site=="US"
64
68
  if @browser.li(:class,'nibbler-common-header-language').image(:src,/es.png/).present?
@@ -83,6 +87,7 @@ class AllPages
83
87
  when 'PRISM' then "prism=beta"
84
88
  when 'NIBBLER' then "nibbler=beta"
85
89
  when 'CHASIC' then "chas-flight=chas-flight-ci"
90
+ when 'CHASALPHA' then "chas-flight=alpha"
86
91
  end
87
92
  end
88
93
 
@@ -97,7 +97,7 @@ Característica: checkout.error_messages
97
97
  @roundtrip
98
98
  Ejemplos:
99
99
  |pais|tipo|cabotage|
100
- |BR |roundtrip|true|
100
+ |BR |roundtrip|nil|
101
101
  @br
102
102
  @oneway
103
103
  Ejemplos:
@@ -1,8 +1,8 @@
1
1
  # multi_test_flight.gemspec
2
2
  # -*- encoding: utf-8 -*-
3
3
  Gem::Specification.new do |gem|
4
- gem.authors = ["lgonzalez,lsimean"]
5
- gem.email = ["lgonzalez@despegar.com,nsimean@despegar.com"]
4
+ gem.authors = ["lgonzalez"]
5
+ gem.email = ["lgonzalez@despegar.com"]
6
6
  gem.description = %q{test automatizado para el proyecto flights gui}
7
7
  gem.summary = %q{test para results, checkout y landing}
8
8
 
@@ -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.3.2' # La version se debe incrementar cada vez que se desea publicar una nueva version del test.
17
+ gem.version = '0.3.3' # 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
@@ -9512,6 +9512,51 @@ tasks:
9512
9512
  recipients:
9513
9513
  - estebanldh@gmail.com
9514
9514
  - nsimean@despegar.com
9515
+ - name: prueba.busqueda
9516
+ class_name: Henry::Task::CucumberTask
9517
+ options:
9518
+ tags:
9519
+ - prueba
9520
+ - busqueda
9521
+ expand: true
9522
+ no-source: true
9523
+ reports:
9524
+ - format: html
9525
+ name: ${DATE}_${TASK_NAME}.html
9526
+ recipients:
9527
+ - estebanldh@gmail.com
9528
+ - nsimean@despegar.com
9529
+ - name: prueba.busqueda.ar
9530
+ class_name: Henry::Task::CucumberTask
9531
+ options:
9532
+ tags:
9533
+ - prueba
9534
+ - busqueda
9535
+ - ar
9536
+ expand: true
9537
+ no-source: true
9538
+ reports:
9539
+ - format: html
9540
+ name: ${DATE}_${TASK_NAME}.html
9541
+ recipients:
9542
+ - estebanldh@gmail.com
9543
+ - nsimean@despegar.com
9544
+ - name: prueba.busqueda.ar.roundtrip
9545
+ class_name: Henry::Task::CucumberTask
9546
+ options:
9547
+ tags:
9548
+ - prueba
9549
+ - busqueda
9550
+ - ar
9551
+ - roundtrip
9552
+ expand: true
9553
+ no-source: true
9554
+ reports:
9555
+ - format: html
9556
+ name: ${DATE}_${TASK_NAME}.html
9557
+ recipients:
9558
+ - estebanldh@gmail.com
9559
+ - nsimean@despegar.com
9515
9560
  - name: checkout.low_cost
9516
9561
  class_name: Henry::Task::CucumberTask
9517
9562
  options:
@@ -12430,6 +12475,19 @@ tasks:
12430
12475
  recipients:
12431
12476
  - estebanldh@gmail.com
12432
12477
  - nsimean@despegar.com
12478
+ - name: prueba
12479
+ class_name: Henry::Task::CucumberTask
12480
+ options:
12481
+ tags:
12482
+ - prueba
12483
+ expand: true
12484
+ no-source: true
12485
+ reports:
12486
+ - format: html
12487
+ name: ${DATE}_${TASK_NAME}.html
12488
+ recipients:
12489
+ - estebanldh@gmail.com
12490
+ - nsimean@despegar.com
12433
12491
  - name: checkout
12434
12492
  class_name: Henry::Task::CucumberTask
12435
12493
  options:
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.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
- - lgonzalez,lsimean
7
+ - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-13 00:00:00.000000000 Z
11
+ date: 2014-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -194,7 +194,7 @@ dependencies:
194
194
  version: '0'
195
195
  description: test automatizado para el proyecto flights gui
196
196
  email:
197
- - lgonzalez@despegar.com,nsimean@despegar.com
197
+ - lgonzalez@despegar.com
198
198
  executables: []
199
199
  extensions: []
200
200
  extra_rdoc_files: []