testcentricity_web 2.0.11 → 2.0.12

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: c7a7836dac38744ccfa198f9b825db641ed1c97f
4
- data.tar.gz: 56a9b58351af6705192de5454dc4645e9d865434
3
+ metadata.gz: 2c24bd636d9f6a5ebd55b16bae227275bebd8ec6
4
+ data.tar.gz: 783057a1b748cc9c6d81e18d82568ba33e2001db
5
5
  SHA512:
6
- metadata.gz: 1c69edfd4bf24d2a6217652d54672150634e79962fb5ca624f2824f15998198c22b5c86983493a2bb00dd65364bad0c851a07a2bab19c0b0add36b70e7ae1adb
7
- data.tar.gz: 376968df032a6af712834d2b4c4879afae50872e328b3916007f34c4647e961b7e382521f5431af0e6af521360126e9e750ee7f0f82463ef9e963415033ad993
6
+ metadata.gz: adb6b3a2bff1718a9168f5314b28c4bda337e1ccfdb24d61823425e96238736439a8f188507d4eb5e2996a36201c5b16b4b639ac71f110856756dc75528a52de
7
+ data.tar.gz: 28d0d8250d49b169cac358a68cc07dc7250daef509183d86518249140639229e12e42a0f9742020607b42d07951ef60368b6069f049078c7dfd7b9b5b7dc0269
@@ -1,6 +1,6 @@
1
1
  module TestCentricity
2
2
  class EnvironData < TestCentricity::ExcelDataSource
3
- attr_accessor :current
3
+ attr_accessor :current
4
4
 
5
5
  WKS_ENVIRONS ||= 'Environments'
6
6
 
@@ -23,11 +23,10 @@ module TestCentricity
23
23
  @session_id = Time.now.strftime('%d%H%M%S%L')
24
24
  @session_time_stamp = Time.now.strftime('%Y%m%d%H%M%S')
25
25
  @session_code
26
-
27
- @test_environment = ENV['TEST_ENVIRONMENT'].downcase.to_sym
28
-
26
+ @test_environment = ENV['TEST_ENVIRONMENT']
29
27
  @screen_shots = []
30
28
 
29
+ attr_accessor :test_environment
31
30
  attr_accessor :browser
32
31
  attr_accessor :os
33
32
  attr_accessor :device
@@ -82,7 +81,11 @@ module TestCentricity
82
81
  end
83
82
 
84
83
  def self.test_environment
85
- @test_environment
84
+ if @test_environment.blank?
85
+ nil
86
+ else
87
+ @test_environment.downcase.to_sym
88
+ end
86
89
  end
87
90
 
88
91
  # @deprecated Please use {#browser=} instead
@@ -352,7 +352,11 @@ module TestCentricity
352
352
  raise "Page object #{self.class.name} does not have a page_locator trait defined" unless defined?(page_locator)
353
353
  unless page.has_selector?(page_locator)
354
354
  body_class = find(:xpath, '//body')[:class]
355
- error_message = "Expected page to have selector '#{page_locator}' but found '#{body_class}' instead.\nURL of page loaded = #{URI.parse(current_url)}"
355
+ error_message = %(
356
+ Expected page to have selector '#{page_locator}' but found '#{body_class}' instead.
357
+ Expected URL of page was #{page_url}.
358
+ Actual URL of page loaded = #{URI.parse(current_url)}.
359
+ )
356
360
  raise error_message
357
361
  end
358
362
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.0.11'
2
+ VERSION = '2.0.12'
3
3
  end
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
34
34
  spec.add_dependency 'test-unit'
35
35
  spec.add_dependency 'selenium-webdriver', ['>= 2.50.0', '< 3.0']
36
36
  spec.add_dependency 'poltergeist'
37
- spec.add_dependency 'faker', '1.7.2'
37
+ spec.add_dependency 'faker'
38
38
  spec.add_dependency 'chronic', '0.10.2'
39
39
  spec.add_dependency 'spreadsheet', '1.1.1'
40
40
  spec.add_dependency 'os'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.11
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-02 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -110,16 +110,16 @@ dependencies:
110
110
  name: faker
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - '='
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 1.7.2
115
+ version: '0'
116
116
  type: :runtime
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
- - - '='
120
+ - - ">="
121
121
  - !ruby/object:Gem::Version
122
- version: 1.7.2
122
+ version: '0'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: chronic
125
125
  requirement: !ruby/object:Gem::Requirement