testcentricity_web 2.0.10 → 2.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 599df69ebfa01cb46d71d9210068a0b12dfa1d19
4
- data.tar.gz: d9e31fdd630c11f83d3ff750020c9b34d70ec2a8
3
+ metadata.gz: c7a7836dac38744ccfa198f9b825db641ed1c97f
4
+ data.tar.gz: 56a9b58351af6705192de5454dc4645e9d865434
5
5
  SHA512:
6
- metadata.gz: c79cbfc62ecd10274cb233cfa76e3e239ce604f440d5b0ea2e3706cd068df9ea3a27c55f6c78ea8f012b5bae40b69f9d25404ec6a6376337e9cfc4fe19fda146
7
- data.tar.gz: 7ca95d921771456b3b16fc7b6d20033274188bdfcde23101f1b01b7be92536460f2bf9cbe4d7879463f6163f72b230053a9d845505329af10bc35c457b4cfc8e
6
+ metadata.gz: 1c69edfd4bf24d2a6217652d54672150634e79962fb5ca624f2824f15998198c22b5c86983493a2bb00dd65364bad0c851a07a2bab19c0b0add36b70e7ae1adb
7
+ data.tar.gz: 376968df032a6af712834d2b4c4879afae50872e328b3916007f34c4647e961b7e382521f5431af0e6af521360126e9e750ee7f0f82463ef9e963415033ad993
@@ -24,6 +24,8 @@ module TestCentricity
24
24
  @session_time_stamp = Time.now.strftime('%Y%m%d%H%M%S')
25
25
  @session_code
26
26
 
27
+ @test_environment = ENV['TEST_ENVIRONMENT'].downcase.to_sym
28
+
27
29
  @screen_shots = []
28
30
 
29
31
  attr_accessor :browser
@@ -79,6 +81,10 @@ module TestCentricity
79
81
  @session_time_stamp
80
82
  end
81
83
 
84
+ def self.test_environment
85
+ @test_environment
86
+ end
87
+
82
88
  # @deprecated Please use {#browser=} instead
83
89
  def self.set_browser(browser)
84
90
  warn "[DEPRECATION] 'TestCentricity::Environ.set_browser' is deprecated. Please use 'browser=' instead."
@@ -577,6 +577,8 @@ module TestCentricity
577
577
  data_field.set_selected_state(data_param.to_bool)
578
578
  when :textfield
579
579
  data_field.set("#{data_param}\t")
580
+ when :section
581
+ data_field.set(data_param)
580
582
  end
581
583
  end
582
584
  end
@@ -16,6 +16,10 @@ module TestCentricity
16
16
  @context = context
17
17
  end
18
18
 
19
+ def get_object_type
20
+ :section
21
+ end
22
+
19
23
  # Define a trait for this page section.
20
24
  #
21
25
  # @param trait_name [Symbol] name of trait (as a symbol)
@@ -649,6 +653,8 @@ module TestCentricity
649
653
  data_field.set_selected_state(data_param.to_bool)
650
654
  when :textfield
651
655
  data_field.set("#{data_param}\t")
656
+ when :section
657
+ data_field.set(data_param)
652
658
  end
653
659
  end
654
660
  end
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.0.10'
2
+ VERSION = '2.0.11'
3
3
  end
@@ -177,8 +177,8 @@ module TestCentricity
177
177
  capabilities['build'] = ENV['AUTOMATE_BUILD'] if ENV['AUTOMATE_BUILD']
178
178
 
179
179
  ENV['TEST_CONTEXT'] ?
180
- context_message = "#{ENV['TEST_ENVIRONMENT']} - #{ENV['TEST_CONTEXT']}" :
181
- context_message = ENV['TEST_ENVIRONMENT']
180
+ context_message = "#{Environ.test_environment} - #{ENV['TEST_CONTEXT']}" :
181
+ context_message = Environ.test_environment
182
182
  if ENV['PARALLEL']
183
183
  thread_num = ENV['TEST_ENV_NUMBER']
184
184
  thread_num = 1 if thread_num.blank?
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.10
4
+ version: 2.0.11
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-03-18 00:00:00.000000000 Z
11
+ date: 2017-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler