flights_gui_tests 2.3.63 → 2.3.64

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: 65c2641c28d90ea67feba33fa40795d2bdda7b58
4
- data.tar.gz: 20085f5a2ab0d03845cb6cda6e49e0ca380bf52e
3
+ metadata.gz: 064cf5c5c46635038aceca41299c0ebeb83d68dd
4
+ data.tar.gz: 00fe7f1e8c455aff569a62dcd1488177d1d788e3
5
5
  SHA512:
6
- metadata.gz: 15ba2f63919d13d249cb867992202746ff5bceec8f3d2bae3f4b69c722447469b7ea726d18ca077e93c4e6ae507244c739fd70e227bd1d9772e77ac395c2a6f2
7
- data.tar.gz: e8f74b0a4c0ec8e2f1576bbf4117630ab6604b9b01ce33eb1510d9cd178f692b7bb9c1398e6231d7a58a0170feee20ca41fa028a06cfc0947f026bb74cf3b856
6
+ metadata.gz: 24b513350198fd75d4930cc9e48274e808ffe1d738008943285a8fe41e1e1d188d5415712fdbf092d07bd282dfc8f84e1455d395d197e3f7672e2f66adf77320
7
+ data.tar.gz: ac62f951d6b589cc002329b4ad320a3a0d302897e479cd3adac18538e65f3a4e271a18ef6115113d87c410facb8434670d9ddd79c41ba82a437e026589b00bc5
@@ -13,8 +13,6 @@ Cuando(/^(?:verifico|valido) las reviews de aerolineas$/) do
13
13
  aerolinea.click
14
14
  @page.popup_reviews_aerolineas_element.when_visible(timeout=10)
15
15
  doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
16
- #@page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
17
- #@page.nombre_aerolinea_en_matriz(index).should equal((doc/"h4.name").inner_text.strip.downcase)
18
16
  aerolinea.text.should match((doc/"span.popup-reviews-summary-points-container span").first.inner_text)
19
17
  @page.close_popup_reviews_aerolineas_element.click
20
18
  @page.popup_reviews_aerolineas_element.when_not_visible(timeout=10)
@@ -38,7 +36,6 @@ Entonces(/^verifico que se muestren las reviews de aerolineas$/) do
38
36
  @page.popup_reviews_aerolineas_element.when_visible(timeout=2)
39
37
  doc = Hpricot.parse(@page.popup_reviews_aerolineas_element.html)
40
38
  @page.logo_aerolinea_en_matriz(index).should match((doc/"span.logo/img").first.attributes['src'].strip.downcase)
41
- #aerolinea.text.strip.downcase.should equal((doc/"h4.name").inner_text.strip.downcase)
42
39
  @page.close_popup_reviews_aerolineas_element.click
43
40
  @page.popup_reviews_aerolineas_element.when_not_visible(timeout=2)
44
41
  rescue Selenium::WebDriver::Error::UnknownError
@@ -10,6 +10,7 @@ require 'httparty'
10
10
  require 'henry/environment'
11
11
  require 'sanitize'
12
12
  require 'uri'
13
+ require 'henry_process_cleaner'
13
14
  #require 'byebug'
14
15
  require 'henry/config'
15
16
  require 'mock_search'
@@ -70,6 +71,8 @@ require_relative 'pages/landing/new_landing_page'
70
71
  require_relative 'matchers'
71
72
  require_relative 'hooks'
72
73
 
74
+ $process = Henry::ProcessCleaner.new
75
+
73
76
  # carga de parametros globales
74
77
  if Henry::Environment.params.empty?
75
78
  $HENRY_PARAMS = ENV
@@ -88,7 +91,8 @@ begin
88
91
  $browser = Browser.iniciar($HENRY_PARAMS['browser'])
89
92
  rescue Net::ReadTimeout, Selenium::WebDriver::Error::WebDriverError, ChildProcess::TimeoutError
90
93
  $browser = nil
91
- ProcessManager.kill_all_childs(Process.pid)
94
+ $process.pid = Process.pid
95
+ $process.clean
92
96
  reintentos -= 1
93
97
  sleep 5
94
98
  if reintentos > 0
@@ -4,6 +4,7 @@ Before do |scenario|
4
4
  end
5
5
 
6
6
  After do |scenario|
7
+ $process.pid= Process.pid
7
8
  if $HENRY_PARAMS['browser']
8
9
  if scenario.failed?
9
10
  FileUtils.mkdir_p(Henry::Environment.output_path + '/reports/html/screenshots/')
@@ -17,4 +18,5 @@ end
17
18
 
18
19
  at_exit do
19
20
  $browser.close
21
+ $process.clean
20
22
  end
@@ -1,3 +1,3 @@
1
1
  module FlightsGui
2
- VERSION = "2.3.63"
2
+ VERSION = "2.3.64"
3
3
  end
@@ -30,6 +30,7 @@ Gem::Specification.new do |gem|
30
30
  gem.add_dependency('mock_search', '>= 1.0.0')
31
31
  gem.add_dependency('mysql2')
32
32
  gem.add_dependency('dater')
33
+ gem.add_dependency('henry_process_cleaner')
33
34
  #gem.add_dependency('byebug')
34
35
  gem.add_dependency('auto_uy_utils')
35
36
  #gem.add_dependency('roma_automation')
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.3.63
4
+ version: 2.3.64
5
5
  platform: ruby
6
6
  authors:
7
7
  - lgonzalez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-03 00:00:00.000000000 Z
11
+ date: 2015-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: henry-container
@@ -178,6 +178,20 @@ dependencies:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: henry_process_cleaner
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
181
195
  - !ruby/object:Gem::Dependency
182
196
  name: auto_uy_utils
183
197
  requirement: !ruby/object:Gem::Requirement