flights_gui_tests 2.4.26 → 2.4.28

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: 321ed6654524a72c2ecb266b7372afeacbb4a3c3
4
- data.tar.gz: cde10b24f750acd311f842035697ec56c1a1996c
3
+ metadata.gz: 7409430c7d043219b91fd844e3272a872f0fb56a
4
+ data.tar.gz: 1ffc7b1750547c166be5e3d090475712ec2c010e
5
5
  SHA512:
6
- metadata.gz: 88336e22c8c1085fa9a28a6e3fba13ff574bb231e9abb745ee29904ca20cf7113b4c575cbf4213bb22ac85522918f59cbde752404b411e6c1d2e2a4af38f3f3a
7
- data.tar.gz: 0a175169c84aba5133d60103a4a2b72efe7d2f25a1ed9199a569dbe39bc2e6e971e7bfc3e74742ab77a7239e9d2c5f2c135a1ed01d537c2c3e546f9049ebf827
6
+ metadata.gz: 8983d8a34ebc55160647fea0fc5f3117e0aa3584ec3ab4963d5448911e6f349fc747f5df244b93c0ba7f508d210113aab3d3dda8f00fe78b10f272fcc981e7b1
7
+ data.tar.gz: 0a62941f89664383a9f8dd4233f9e6fcd22d8b0708c17f428b3832156b1e3a3d17a2062c72ffef232bafa92114ed7c2ac6fc1ade0a968cc4eefac5d2959b0b24
@@ -3,10 +3,12 @@ Entonces(/^cargo los pasajeros$/) do
3
3
  @page.cargar_datos_pasajeros
4
4
  end
5
5
  Y(/^cargo los datos de la tarjeta$/) do
6
- @page.cargar_datos_tarjeta
6
+ status = @page.cargar_datos_tarjeta
7
+ pending(status) if status
7
8
  end
8
9
  Y(/^cargo los datos de la tarjeta de debito$/) do
9
- @page.cargar_datos_tarjeta
10
+ status = @page.cargar_datos_tarjeta
11
+ pending(status) if status
10
12
  @page.radios_opciones_pago_elements[0].set
11
13
  if AllPages.site.upcase.match("PE")
12
14
  @page.tarjeta_element.select_value("1_DEBIT_VD_INB")
@@ -0,0 +1,39 @@
1
+ # -*- encoding : utf-8 -*-
2
+ Cuando(/^busco en connor las ip en "(.*)"$/) do |tipo|
3
+ if $ENV.downcase=="rc"
4
+ host_connor = "http://ba.proxy.despegar.it"
5
+ else
6
+ host_connor = "http://proxy.despexds.net"
7
+ end
8
+ get = HTTParty.get("#{host_connor}/connor/analysis/ip/classifications?scope=flights-gui")
9
+ @ips_connor = get[tipo]
10
+ pending("No se encontraron casos para ips #{tipo}") unless @ips_connor
11
+ end
12
+
13
+ Entonces(/^realizo la busqueda para testear connor en "([^"]*)" "([^"]*)" del tipo "([^"]*)"$/) do |pais, busqueda, cabotage|
14
+ @ip_a_buscar = @ips_connor[rand(0..@ips_connor.length)]["from"]
15
+ Helpers.set_date_language(pais)
16
+ @search = Class.const_get("MockSearch#{busqueda.capitalize}").new(pais,$ENV,cabotage)
17
+ if $ENV.downcase=="rc"
18
+ host_results = "http://f-results-gui-00.servers.despegar.it:9290/"
19
+ else
20
+ host_results = "http://f-results-beta-00:9290/"
21
+ end
22
+ @url_a_buscar = @search.generate_url_results_search.gsub(/(.*)\/shop/,"#{host_results}/shop")
23
+ end
24
+
25
+ Entonces(/^valido la respuesta de la busqueda "(.*)"$/) do |tipo|
26
+ system "curl -v '#{@url_a_buscar}' -H'X-UOW: test-#{tipo}' -H'X-Forwarded-For: #{@ip_a_buscar}' -w '%{http_code}|%{size_download}|%{redirect_url}|' > respond"
27
+ begin
28
+ respond = File.read("respond").split("|")
29
+ if tipo == "weak"
30
+ respond[0].should equal("302")
31
+ respond[2].should match("captcha")
32
+ else
33
+ respond[0].should equal("200")
34
+ respond[1].should equal("0")
35
+ end
36
+ rescue
37
+ FileUtils.rm_rf('respond')
38
+ end
39
+ end
@@ -109,7 +109,7 @@ module NewCheckout
109
109
  mes_vencimiento_tarjeta_element.select('10')
110
110
  ano_vencimiento_tarjeta_element.select(Date.today.year+1)
111
111
  else
112
- pending("No se encuentran tarjetas validas.")
112
+ return "No se encuentran tarjetas validas."
113
113
  end
114
114
  end
115
115
  banco_emisor_element.set "galicia" if banco_emisor_element.present?
@@ -126,6 +126,7 @@ module NewCheckout
126
126
  sexo_titular_tarjeta_element.select_value "MALE" if sexo_titular_tarjeta_element.present?
127
127
  #datos extras de tarjeta
128
128
  self.cargar_datos_extras_de_tarjeta
129
+ return nil
129
130
  end
130
131
 
131
132
  def cargar_datos_tarjeta_nuevo_formulario
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.4.26"
2
+ VERSION = "2.4.28"
3
3
  end
@@ -0,0 +1,30 @@
1
+ #language: es
2
+ @results
3
+ Característica: results.busquedas_connor
4
+ Se realiza la carga de promociones con una busqueda
5
+
6
+ @busquedas_connor
7
+ Esquema del escenario: Probar el captcha en connor con ip weak
8
+ Cuando busco en connor las ip en "weak"
9
+ Entonces realizo la busqueda para testear connor en "<pais>" "<tipo>" del tipo "<cabotage>"
10
+ Y valido la respuesta de la busqueda "weak"
11
+
12
+ @br
13
+ Ejemplos:
14
+ |pais|tipo|cabotage|
15
+ |BR |roundtrip|nil|
16
+ |BR |roundtrip|nil|
17
+ |BR |roundtrip|nil|
18
+
19
+ @busquedas_connor
20
+ Esquema del escenario: Probar el captcha en connor con ip strong
21
+ Cuando busco en connor las ip en "strong"
22
+ Entonces realizo la busqueda para testear connor en "<pais>" "<tipo>" del tipo "<cabotage>"
23
+ Y valido la respuesta de la busqueda "strong"
24
+
25
+ @br
26
+ Ejemplos:
27
+ |pais|tipo|cabotage|
28
+ |BR |roundtrip|nil|
29
+ |BR |roundtrip|nil|
30
+ |BR |roundtrip|nil|
data/henry-context.yml CHANGED
@@ -986,6 +986,36 @@ tasks:
986
986
  recipients:
987
987
  - estebanldh@gmail.com
988
988
  - nsimean@despegar.com
989
+ - name: results.multipleoneway.br
990
+ class_name: Henry::Task::CucumberTask
991
+ options:
992
+ tags:
993
+ - results
994
+ - multipleoneway
995
+ - br
996
+ expand: true
997
+ no-source: true
998
+ reports:
999
+ - format: html
1000
+ name: ${DATE}_${TASK_NAME}.html
1001
+ recipients:
1002
+ - estebanldh@gmail.com
1003
+ - nsimean@despegar.com
1004
+ - name: results.multipleoneway.co
1005
+ class_name: Henry::Task::CucumberTask
1006
+ options:
1007
+ tags:
1008
+ - results
1009
+ - multipleoneway
1010
+ - co
1011
+ expand: true
1012
+ no-source: true
1013
+ reports:
1014
+ - format: html
1015
+ name: ${DATE}_${TASK_NAME}.html
1016
+ recipients:
1017
+ - estebanldh@gmail.com
1018
+ - nsimean@despegar.com
989
1019
  - name: results.multipleoneway.ar
990
1020
  class_name: Henry::Task::CucumberTask
991
1021
  options:
@@ -1001,6 +1031,36 @@ tasks:
1001
1031
  recipients:
1002
1032
  - estebanldh@gmail.com
1003
1033
  - nsimean@despegar.com
1034
+ - name: results.multipleoneway.br
1035
+ class_name: Henry::Task::CucumberTask
1036
+ options:
1037
+ tags:
1038
+ - results
1039
+ - multipleoneway
1040
+ - br
1041
+ expand: true
1042
+ no-source: true
1043
+ reports:
1044
+ - format: html
1045
+ name: ${DATE}_${TASK_NAME}.html
1046
+ recipients:
1047
+ - estebanldh@gmail.com
1048
+ - nsimean@despegar.com
1049
+ - name: results.multipleoneway.co
1050
+ class_name: Henry::Task::CucumberTask
1051
+ options:
1052
+ tags:
1053
+ - results
1054
+ - multipleoneway
1055
+ - co
1056
+ expand: true
1057
+ no-source: true
1058
+ reports:
1059
+ - format: html
1060
+ name: ${DATE}_${TASK_NAME}.html
1061
+ recipients:
1062
+ - estebanldh@gmail.com
1063
+ - nsimean@despegar.com
1004
1064
  - name: results.search
1005
1065
  class_name: Henry::Task::CucumberTask
1006
1066
  options:
@@ -12358,6 +12418,35 @@ tasks:
12358
12418
  recipients:
12359
12419
  - estebanldh@gmail.com
12360
12420
  - nsimean@despegar.com
12421
+ - name: results.busquedas_connor
12422
+ class_name: Henry::Task::CucumberTask
12423
+ options:
12424
+ tags:
12425
+ - results
12426
+ - busquedas_connor
12427
+ expand: true
12428
+ no-source: true
12429
+ reports:
12430
+ - format: html
12431
+ name: ${DATE}_${TASK_NAME}.html
12432
+ recipients:
12433
+ - estebanldh@gmail.com
12434
+ - nsimean@despegar.com
12435
+ - name: results.busquedas_connor.ar
12436
+ class_name: Henry::Task::CucumberTask
12437
+ options:
12438
+ tags:
12439
+ - results
12440
+ - busquedas_connor
12441
+ - ar
12442
+ expand: true
12443
+ no-source: true
12444
+ reports:
12445
+ - format: html
12446
+ name: ${DATE}_${TASK_NAME}.html
12447
+ recipients:
12448
+ - estebanldh@gmail.com
12449
+ - nsimean@despegar.com
12361
12450
  - name: checkout.booking_2_ow
12362
12451
  class_name: Henry::Task::CucumberTask
12363
12452
  options:
@@ -13519,6 +13608,36 @@ tasks:
13519
13608
  recipients:
13520
13609
  - estebanldh@gmail.com
13521
13610
  - nsimean@despegar.com
13611
+ - name: checkout.multipleoneway.br
13612
+ class_name: Henry::Task::CucumberTask
13613
+ options:
13614
+ tags:
13615
+ - checkout
13616
+ - multipleoneway
13617
+ - br
13618
+ expand: true
13619
+ no-source: true
13620
+ reports:
13621
+ - format: html
13622
+ name: ${DATE}_${TASK_NAME}.html
13623
+ recipients:
13624
+ - estebanldh@gmail.com
13625
+ - nsimean@despegar.com
13626
+ - name: checkout.multipleoneway.br
13627
+ class_name: Henry::Task::CucumberTask
13628
+ options:
13629
+ tags:
13630
+ - checkout
13631
+ - multipleoneway
13632
+ - br
13633
+ expand: true
13634
+ no-source: true
13635
+ reports:
13636
+ - format: html
13637
+ name: ${DATE}_${TASK_NAME}.html
13638
+ recipients:
13639
+ - estebanldh@gmail.com
13640
+ - nsimean@despegar.com
13522
13641
  - name: checkout.braspag
13523
13642
  class_name: Henry::Task::CucumberTask
13524
13643
  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: 2.4.26
4
+ version: 2.4.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-22 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -290,6 +290,7 @@ files:
290
290
  - features/step_definitions/landing/new_landing_steps.rb
291
291
  - features/step_definitions/page_steps.rb
292
292
  - features/step_definitions/results/basefare_steps.rb
293
+ - features/step_definitions/results/connor_steps.rb
293
294
  - features/step_definitions/results/errors_steps.rb
294
295
  - features/step_definitions/results/filters_steps.rb
295
296
  - features/step_definitions/results/load_steps.rb
@@ -374,6 +375,7 @@ files:
374
375
  - features/support/pages/thanks/thanks_page/new_thanks_page.rb
375
376
  - features/support/pages/thanks/thanks_page/old_thanks_page.rb
376
377
  - features/support/version.rb
378
+ - features/tests/black_list/busquedas_connor.feature
377
379
  - features/tests/black_list/busquedas_promo.feature
378
380
  - features/tests/black_list/cac.feature
379
381
  - features/tests/black_list/cash_payment.feature