Class: TestCentricity::Environ

Inherits:
DataObject show all
Defined in:
lib/testcentricity_web/data_objects/environment.rb

Instance Attribute Summary collapse

Attributes inherited from DataObject

#context, #current, #hash_table

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from DataObject

current, current=

Constructor Details

#initialize(data) ⇒ Environ

Returns a new instance of Environ.



128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# File 'lib/testcentricity_web/data_objects/environment.rb', line 128

def initialize(data)
  @protocol      = data['PROTOCOL']
  @hostname      = data['HOST_NAME']
  @base_url      = data['BASE_URL']
  @user_id	     = data['USER_ID']
  @password	     = data['PASSWORD']
  @append	       = data['APPEND']
  @app_id 	     = data['APP_ID']
  @api_key	     = data['API_KEY']
  @option1	     = data['OPTIONAL_1']
  @option2	     = data['OPTIONAL_2']
  @option3	     = data['OPTIONAL_3']
  @option4	     = data['OPTIONAL_4']
  @dns	         = data['DNS']
  @db_username   = data['DB_USERNAME']
  @db_password   = data['DB_PASSWORD']
  @ios_app_path  = data['IOS_APP_PATH']
  @ios_ipa_path  = data['IOS_IPA_PATH']
  @android_apk_path = data['ANDROID_APK_PATH']
  @deep_link_prefix = data['DEEP_LINK_PREFIX']
  @ios_bundle_id    = data['IOS_BUNDLE_ID']
  @android_app_id   = data['ANDROID_APP_ID']

  url = @hostname.blank? ? "#{@base_url}#{@append}" : "#{@hostname}/#{@base_url}#{@append}"
  @app_host = if @user_id.blank? || @password.blank?
                "#{@protocol}://#{url}"
              else
                "#{@protocol}://#{@user_id}:#{@password}@#{url}"
              end

  super
end

Instance Attribute Details

#a11y_standardObject

Returns the value of attribute a11y_standard.



103
104
105
# File 'lib/testcentricity_web/data_objects/environment.rb', line 103

def a11y_standard
  @a11y_standard
end

#android_apk_pathObject

Returns the value of attribute android_apk_path.



122
123
124
# File 'lib/testcentricity_web/data_objects/environment.rb', line 122

def android_apk_path
  @android_apk_path
end

#android_app_idObject

Returns the value of attribute android_app_id.



126
127
128
# File 'lib/testcentricity_web/data_objects/environment.rb', line 126

def android_app_id
  @android_app_id
end

#api_keyObject

Returns the value of attribute api_key.



112
113
114
# File 'lib/testcentricity_web/data_objects/environment.rb', line 112

def api_key
  @api_key
end

#app_hostObject

Returns the value of attribute app_host.



74
75
76
# File 'lib/testcentricity_web/data_objects/environment.rb', line 74

def app_host
  @app_host
end

#app_idObject

Returns the value of attribute app_id.



111
112
113
# File 'lib/testcentricity_web/data_objects/environment.rb', line 111

def app_id
  @app_id
end

#appendObject

Returns the value of attribute append.



110
111
112
# File 'lib/testcentricity_web/data_objects/environment.rb', line 110

def append
  @append
end

#base_urlObject

Returns the value of attribute base_url.



107
108
109
# File 'lib/testcentricity_web/data_objects/environment.rb', line 107

def base_url
  @base_url
end

#browserObject

Returns the value of attribute browser.



75
76
77
# File 'lib/testcentricity_web/data_objects/environment.rb', line 75

def browser
  @browser
end

#browser_sizeObject

Returns the value of attribute browser_size.



76
77
78
# File 'lib/testcentricity_web/data_objects/environment.rb', line 76

def browser_size
  @browser_size
end

#db_passwordObject

Returns the value of attribute db_password.



119
120
121
# File 'lib/testcentricity_web/data_objects/environment.rb', line 119

def db_password
  @db_password
end

#db_usernameObject

Returns the value of attribute db_username.



118
119
120
# File 'lib/testcentricity_web/data_objects/environment.rb', line 118

def db_username
  @db_username
end

Returns the value of attribute deep_link_prefix.



124
125
126
# File 'lib/testcentricity_web/data_objects/environment.rb', line 124

def deep_link_prefix
  @deep_link_prefix
end

#default_max_wait_timeObject

Returns the value of attribute default_max_wait_time.



123
124
125
# File 'lib/testcentricity_web/data_objects/environment.rb', line 123

def default_max_wait_time
  @default_max_wait_time
end

#deviceObject

Returns the value of attribute device.



81
82
83
# File 'lib/testcentricity_web/data_objects/environment.rb', line 81

def device
  @device
end

#device_nameObject

Returns the value of attribute device_name.



82
83
84
# File 'lib/testcentricity_web/data_objects/environment.rb', line 82

def device_name
  @device_name
end

#device_orientationObject

Returns the value of attribute device_orientation.



86
87
88
# File 'lib/testcentricity_web/data_objects/environment.rb', line 86

def device_orientation
  @device_orientation
end

#device_osObject

Returns the value of attribute device_os.



84
85
86
# File 'lib/testcentricity_web/data_objects/environment.rb', line 84

def device_os
  @device_os
end

#device_os_versionObject

Returns the value of attribute device_os_version.



85
86
87
# File 'lib/testcentricity_web/data_objects/environment.rb', line 85

def device_os_version
  @device_os_version
end

#device_typeObject

Returns the value of attribute device_type.



83
84
85
# File 'lib/testcentricity_web/data_objects/environment.rb', line 83

def device_type
  @device_type
end

#dnsObject

Returns the value of attribute dns.



117
118
119
# File 'lib/testcentricity_web/data_objects/environment.rb', line 117

def dns
  @dns
end

#driverObject

Returns the value of attribute driver.



89
90
91
# File 'lib/testcentricity_web/data_objects/environment.rb', line 89

def driver
  @driver
end

#driver_nameObject

Returns the value of attribute driver_name.



90
91
92
# File 'lib/testcentricity_web/data_objects/environment.rb', line 90

def driver_name
  @driver_name
end

#external_pageObject

Returns the value of attribute external_page.



102
103
104
# File 'lib/testcentricity_web/data_objects/environment.rb', line 102

def external_page
  @external_page
end

#gridObject

Returns the value of attribute grid.



91
92
93
# File 'lib/testcentricity_web/data_objects/environment.rb', line 91

def grid
  @grid
end

#headlessObject

Returns the value of attribute headless.



77
78
79
# File 'lib/testcentricity_web/data_objects/environment.rb', line 77

def headless
  @headless
end

#hostnameObject

Returns the value of attribute hostname.



106
107
108
# File 'lib/testcentricity_web/data_objects/environment.rb', line 106

def hostname
  @hostname
end

#ios_app_pathObject

Returns the value of attribute ios_app_path.



120
121
122
# File 'lib/testcentricity_web/data_objects/environment.rb', line 120

def ios_app_path
  @ios_app_path
end

#ios_bundle_idObject

Returns the value of attribute ios_bundle_id.



125
126
127
# File 'lib/testcentricity_web/data_objects/environment.rb', line 125

def ios_bundle_id
  @ios_bundle_id
end

#ios_ipa_pathObject

Returns the value of attribute ios_ipa_path.



121
122
123
# File 'lib/testcentricity_web/data_objects/environment.rb', line 121

def ios_ipa_path
  @ios_ipa_path
end

#languageObject

Returns the value of attribute language.



94
95
96
# File 'lib/testcentricity_web/data_objects/environment.rb', line 94

def language
  @language
end

#localeObject

Returns the value of attribute locale.



93
94
95
# File 'lib/testcentricity_web/data_objects/environment.rb', line 93

def locale
  @locale
end

#option1Object

Returns the value of attribute option1.



113
114
115
# File 'lib/testcentricity_web/data_objects/environment.rb', line 113

def option1
  @option1
end

#option2Object

Returns the value of attribute option2.



114
115
116
# File 'lib/testcentricity_web/data_objects/environment.rb', line 114

def option2
  @option2
end

#option3Object

Returns the value of attribute option3.



115
116
117
# File 'lib/testcentricity_web/data_objects/environment.rb', line 115

def option3
  @option3
end

#option4Object

Returns the value of attribute option4.



116
117
118
# File 'lib/testcentricity_web/data_objects/environment.rb', line 116

def option4
  @option4
end

#osObject

Returns the value of attribute os.



80
81
82
# File 'lib/testcentricity_web/data_objects/environment.rb', line 80

def os
  @os
end

#parallelObject

Returns the value of attribute parallel.



96
97
98
# File 'lib/testcentricity_web/data_objects/environment.rb', line 96

def parallel
  @parallel
end

#passwordObject

Returns the value of attribute password.



109
110
111
# File 'lib/testcentricity_web/data_objects/environment.rb', line 109

def password
  @password
end

#platformObject

Returns the value of attribute platform.



88
89
90
# File 'lib/testcentricity_web/data_objects/environment.rb', line 88

def platform
  @platform
end

#portal_contextObject

Returns the value of attribute portal_context.



101
102
103
# File 'lib/testcentricity_web/data_objects/environment.rb', line 101

def portal_context
  @portal_context
end

#portal_statusObject

Returns the value of attribute portal_status.



100
101
102
# File 'lib/testcentricity_web/data_objects/environment.rb', line 100

def portal_status
  @portal_status
end

#process_numObject

Returns the value of attribute process_num.



97
98
99
# File 'lib/testcentricity_web/data_objects/environment.rb', line 97

def process_num
  @process_num
end

#protocolObject

Returns the value of attribute protocol.



105
106
107
# File 'lib/testcentricity_web/data_objects/environment.rb', line 105

def protocol
  @protocol
end

#screen_sizeObject

Returns the value of attribute screen_size.



87
88
89
# File 'lib/testcentricity_web/data_objects/environment.rb', line 87

def screen_size
  @screen_size
end

#session_codeObject

Returns the value of attribute session_code.



79
80
81
# File 'lib/testcentricity_web/data_objects/environment.rb', line 79

def session_code
  @session_code
end

#session_stateObject

Returns the value of attribute session_state.



78
79
80
# File 'lib/testcentricity_web/data_objects/environment.rb', line 78

def session_state
  @session_state
end

#signed_inObject

Returns the value of attribute signed_in.



99
100
101
# File 'lib/testcentricity_web/data_objects/environment.rb', line 99

def signed_in
  @signed_in
end

#test_environmentObject

Returns the value of attribute test_environment.



73
74
75
# File 'lib/testcentricity_web/data_objects/environment.rb', line 73

def test_environment
  @test_environment
end

#tunnelingObject

Returns the value of attribute tunneling.



92
93
94
# File 'lib/testcentricity_web/data_objects/environment.rb', line 92

def tunneling
  @tunneling
end

#user_idObject

Returns the value of attribute user_id.



108
109
110
# File 'lib/testcentricity_web/data_objects/environment.rb', line 108

def user_id
  @user_id
end

Class Method Details

.app_hostObject



200
201
202
# File 'lib/testcentricity_web/data_objects/environment.rb', line 200

def self.app_host
  @app_host
end

.browserObject



258
259
260
# File 'lib/testcentricity_web/data_objects/environment.rb', line 258

def self.browser
  @browser
end

.browser=(browser) ⇒ Object



254
255
256
# File 'lib/testcentricity_web/data_objects/environment.rb', line 254

def self.browser=(browser)
  @browser = browser.downcase.to_sym
end

.browser_sizeObject



266
267
268
# File 'lib/testcentricity_web/data_objects/environment.rb', line 266

def self.browser_size
  @browser_size
end

.browser_size=(size) ⇒ Object



262
263
264
# File 'lib/testcentricity_web/data_objects/environment.rb', line 262

def self.browser_size=(size)
  @browser_size = size
end

.default_max_wait_timeObject



250
251
252
# File 'lib/testcentricity_web/data_objects/environment.rb', line 250

def self.default_max_wait_time
  @default_max_wait_time
end

.default_max_wait_time=(timeout) ⇒ Object



244
245
246
247
248
# File 'lib/testcentricity_web/data_objects/environment.rb', line 244

def self.default_max_wait_time=(timeout)
  @default_max_wait_time = timeout

  Capybara.default_max_wait_time = timeout if driver == :webdriver
end

.deviceObject



298
299
300
# File 'lib/testcentricity_web/data_objects/environment.rb', line 298

def self.device
  @device
end

.device=(device) ⇒ Object



294
295
296
# File 'lib/testcentricity_web/data_objects/environment.rb', line 294

def self.device=(device)
  @device = device
end

.device_nameObject



327
328
329
# File 'lib/testcentricity_web/data_objects/environment.rb', line 327

def self.device_name
  @device_name
end

.device_name=(name) ⇒ Object



323
324
325
# File 'lib/testcentricity_web/data_objects/environment.rb', line 323

def self.device_name=(name)
  @device_name = name
end

.device_orientationObject



361
362
363
# File 'lib/testcentricity_web/data_objects/environment.rb', line 361

def self.device_orientation
  @device_orientation
end

.device_orientation=(orientation) ⇒ Object



356
357
358
359
# File 'lib/testcentricity_web/data_objects/environment.rb', line 356

def self.device_orientation=(orientation)
  orientation = orientation.downcase.to_sym if orientation.is_a?(String)
  @device_orientation = orientation
end

.device_osObject



336
337
338
# File 'lib/testcentricity_web/data_objects/environment.rb', line 336

def self.device_os
  @device_os
end

.device_os=(os) ⇒ Object



331
332
333
334
# File 'lib/testcentricity_web/data_objects/environment.rb', line 331

def self.device_os=(os)
  os = os.downcase.to_sym if os.is_a?(String)
  @device_os = os
end

.device_os_versionObject



344
345
346
# File 'lib/testcentricity_web/data_objects/environment.rb', line 344

def self.device_os_version
  @device_os_version
end

.device_os_version=(version) ⇒ Object



340
341
342
# File 'lib/testcentricity_web/data_objects/environment.rb', line 340

def self.device_os_version=(version)
  @device_os_version = version
end

.device_typeObject



319
320
321
# File 'lib/testcentricity_web/data_objects/environment.rb', line 319

def self.device_type
  @device_type
end

.device_type=(type) ⇒ Object



314
315
316
317
# File 'lib/testcentricity_web/data_objects/environment.rb', line 314

def self.device_type=(type)
  type = type.downcase.to_sym if type.is_a?(String)
  @device_type = type
end

.driverObject



377
378
379
# File 'lib/testcentricity_web/data_objects/environment.rb', line 377

def self.driver
  @driver
end

.driver=(type) ⇒ Object



373
374
375
# File 'lib/testcentricity_web/data_objects/environment.rb', line 373

def self.driver=(type)
  @driver = type
end

.driver_nameObject



386
387
388
# File 'lib/testcentricity_web/data_objects/environment.rb', line 386

def self.driver_name
  @driver_name
end

.driver_name=(name) ⇒ Object



381
382
383
384
# File 'lib/testcentricity_web/data_objects/environment.rb', line 381

def self.driver_name=(name)
  name = name.gsub(/\s+/, '_').downcase.to_sym if name.is_a?(String)
  @driver_name = name
end

.driver_stateObject



161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
# File 'lib/testcentricity_web/data_objects/environment.rb', line 161

def self.driver_state
  {
    driver_name:        @driver_name,
    driver:             @driver,
    app_host:           @app_host,
    browser:            @browser,
    browser_size:       @browser_size,
    headless:           @headless,
    os:                 @os,
    device:             @device,
    device_name:        @device_name,
    device_type:        @device_type,
    device_os:          @device_os,
    device_os_version:  @device_os_version,
    device_orientation: @device_orientation,
    platform:           @platform,
    grid:               @grid,
    tunneling:          @tunneling
  }
end

.external_pageObject



466
467
468
# File 'lib/testcentricity_web/data_objects/environment.rb', line 466

def self.external_page
  @external_page
end

.get_screen_shotsObject



474
475
476
# File 'lib/testcentricity_web/data_objects/environment.rb', line 474

def self.get_screen_shots
  @screen_shots
end

.gridObject



394
395
396
# File 'lib/testcentricity_web/data_objects/environment.rb', line 394

def self.grid
  @grid
end

.grid=(type) ⇒ Object



390
391
392
# File 'lib/testcentricity_web/data_objects/environment.rb', line 390

def self.grid=(type)
  @grid = type
end

.headlessObject



274
275
276
# File 'lib/testcentricity_web/data_objects/environment.rb', line 274

def self.headless
  @headless
end

.headless=(state) ⇒ Object



270
271
272
# File 'lib/testcentricity_web/data_objects/environment.rb', line 270

def self.headless=(state)
  @headless = state
end

.is_android?Boolean

Returns:

  • (Boolean)


352
353
354
# File 'lib/testcentricity_web/data_objects/environment.rb', line 352

def self.is_android?
  @device_os == :android
end

.is_desktop?Boolean

Returns:

  • (Boolean)


434
435
436
# File 'lib/testcentricity_web/data_objects/environment.rb', line 434

def self.is_desktop?
  @platform == :desktop
end

.is_device?Boolean

Returns:

  • (Boolean)


302
303
304
# File 'lib/testcentricity_web/data_objects/environment.rb', line 302

def self.is_device?
  @device == :device
end

.is_ios?Boolean

Returns:

  • (Boolean)


348
349
350
# File 'lib/testcentricity_web/data_objects/environment.rb', line 348

def self.is_ios?
  @device_os == :ios
end

.is_mobile?Boolean

Returns:

  • (Boolean)


430
431
432
# File 'lib/testcentricity_web/data_objects/environment.rb', line 430

def self.is_mobile?
  @platform == :mobile
end

.is_signed_in?Boolean

Returns:

  • (Boolean)


442
443
444
# File 'lib/testcentricity_web/data_objects/environment.rb', line 442

def self.is_signed_in?
  @signed_in
end

.is_simulator?Boolean

Returns:

  • (Boolean)


306
307
308
# File 'lib/testcentricity_web/data_objects/environment.rb', line 306

def self.is_simulator?
  @device == :simulator
end

.is_web?Boolean

Returns:

  • (Boolean)


310
311
312
# File 'lib/testcentricity_web/data_objects/environment.rb', line 310

def self.is_web?
  @device == :web
end

.languageObject



410
411
412
# File 'lib/testcentricity_web/data_objects/environment.rb', line 410

def self.language
  @language
end

.language=(language) ⇒ Object



406
407
408
# File 'lib/testcentricity_web/data_objects/environment.rb', line 406

def self.language=(language)
  @language = language
end

.localeObject



418
419
420
# File 'lib/testcentricity_web/data_objects/environment.rb', line 418

def self.locale
  @locale
end

.locale=(locale) ⇒ Object



414
415
416
# File 'lib/testcentricity_web/data_objects/environment.rb', line 414

def self.locale=(locale)
  @locale = locale
end

.osObject



290
291
292
# File 'lib/testcentricity_web/data_objects/environment.rb', line 290

def self.os
  @os
end

.os=(os) ⇒ Object



286
287
288
# File 'lib/testcentricity_web/data_objects/environment.rb', line 286

def self.os=(os)
  @os = os
end

.parallelObject



224
225
226
# File 'lib/testcentricity_web/data_objects/environment.rb', line 224

def self.parallel
  @parallel
end

.parallel=(state) ⇒ Object



220
221
222
# File 'lib/testcentricity_web/data_objects/environment.rb', line 220

def self.parallel=(state)
  @parallel = state
end

.platformObject



426
427
428
# File 'lib/testcentricity_web/data_objects/environment.rb', line 426

def self.platform
  @platform
end

.platform=(platform) ⇒ Object



422
423
424
# File 'lib/testcentricity_web/data_objects/environment.rb', line 422

def self.platform=(platform)
  @platform = platform
end

.portal_contextObject



458
459
460
# File 'lib/testcentricity_web/data_objects/environment.rb', line 458

def self.portal_context
  @portal_context
end

.portal_context=(portal_context) ⇒ Object



454
455
456
# File 'lib/testcentricity_web/data_objects/environment.rb', line 454

def self.portal_context=(portal_context)
  @portal_context = portal_context
end

.portal_stateObject



450
451
452
# File 'lib/testcentricity_web/data_objects/environment.rb', line 450

def self.portal_state
  @portal_status
end

.portal_state=(portal_state) ⇒ Object



446
447
448
# File 'lib/testcentricity_web/data_objects/environment.rb', line 446

def self.portal_state=(portal_state)
  @portal_status = portal_state
end

.process_numObject



232
233
234
# File 'lib/testcentricity_web/data_objects/environment.rb', line 232

def self.process_num
  @process_num
end

.process_num=(num) ⇒ Object



228
229
230
# File 'lib/testcentricity_web/data_objects/environment.rb', line 228

def self.process_num=(num)
  @process_num = num
end

.report_headerObject



482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
# File 'lib/testcentricity_web/data_objects/environment.rb', line 482

def self.report_header
  report_header = "\n<b><u>TEST ENVIRONMENT</u>:</b> #{ENV['TEST_ENVIRONMENT']}\n"
  report_header = "#{report_header}  <b>Browser:</b>\t #{@browser.capitalize}\n" if @browser
  report_header = "#{report_header}  <b>Device:</b>\t #{@device_name}\n" if @device_name
  report_header = "#{report_header}  <b>Device OS:</b>\t #{@device_os} #{@device_os_version}\n" if @device_os
  report_header = "#{report_header}  <b>Device type:</b>\t #{@device_type}\n" if @device_type
  report_header = "#{report_header}  <b>Driver:</b>\t #{@driver}\n" if @driver
  report_header = "#{report_header}  <b>Grid:</b>\t\t #{@grid}\n" if @grid
  report_header = "#{report_header}  <b>OS:</b>\t\t #{@os}\n" if @os
  report_header = "#{report_header}  <b>Locale:</b>\t #{@locale}\n" if @locale
  report_header = "#{report_header}  <b>Language:</b>\t #{@language}\n" if @language
  report_header = "#{report_header}  <b>Country:</b>\t #{ENV['COUNTRY']}\n" if ENV['COUNTRY']
  report_header = "#{report_header}  <b>WCAG Accessibility Standard:</b>\t #{ENV['ACCESSIBILITY_STANDARD']}\n" if ENV['ACCESSIBILITY_STANDARD']
  "#{report_header}\n\n"
end

.reset_contextsObject



478
479
480
# File 'lib/testcentricity_web/data_objects/environment.rb', line 478

def self.reset_contexts
  @screen_shots = []
end

.restore_driver_state(driver_state) ⇒ Object



182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
# File 'lib/testcentricity_web/data_objects/environment.rb', line 182

def self.restore_driver_state(driver_state)
  @driver = driver_state[:driver]
  @app_host = driver_state[:app_host]
  @browser = driver_state[:browser]
  @browser_size = driver_state[:browser_size]
  @headless = driver_state[:headless]
  @os = driver_state[:os]
  @device = driver_state[:device]
  @device_name = driver_state[:device_name]
  @device_type = driver_state[:device_type]
  @device_os = driver_state[:device_os]
  @device_os_version = driver_state[:device_os_version]
  @device_orientation = driver_state[:device_orientation]
  @platform = driver_state[:platform]
  @grid = driver_state[:grid]
  @tunneling = driver_state[:tunneling]
end

.save_screen_shot(screen_shot) ⇒ Object



470
471
472
# File 'lib/testcentricity_web/data_objects/environment.rb', line 470

def self.save_screen_shot(screen_shot)
  @screen_shots.push(screen_shot)
end

.screen_sizeObject



369
370
371
# File 'lib/testcentricity_web/data_objects/environment.rb', line 369

def self.screen_size
  @screen_size
end

.screen_size=(size) ⇒ Object



365
366
367
# File 'lib/testcentricity_web/data_objects/environment.rb', line 365

def self.screen_size=(size)
  @screen_size = size
end

.session_codeObject



204
205
206
207
208
209
210
# File 'lib/testcentricity_web/data_objects/environment.rb', line 204

def self.session_code
  if @session_code.nil?
    characters = ('a'..'z').to_a
    @session_code = (0..12).map { characters.sample }.join
  end
  @session_code
end

.session_idObject



212
213
214
# File 'lib/testcentricity_web/data_objects/environment.rb', line 212

def self.session_id
  @session_id
end

.session_stateObject



282
283
284
# File 'lib/testcentricity_web/data_objects/environment.rb', line 282

def self.session_state
  @session_state
end

.session_state=(session_state) ⇒ Object



278
279
280
# File 'lib/testcentricity_web/data_objects/environment.rb', line 278

def self.session_state=(session_state)
  @session_state = session_state
end

.session_time_stampObject



216
217
218
# File 'lib/testcentricity_web/data_objects/environment.rb', line 216

def self.session_time_stamp
  @session_time_stamp
end

.set_external_page(state) ⇒ Object



462
463
464
# File 'lib/testcentricity_web/data_objects/environment.rb', line 462

def self.set_external_page(state)
  @external_page = state
end

.set_signed_in(signed_in) ⇒ Object



438
439
440
# File 'lib/testcentricity_web/data_objects/environment.rb', line 438

def self.set_signed_in(signed_in)
  @signed_in = signed_in
end

.test_environmentObject



236
237
238
239
240
241
242
# File 'lib/testcentricity_web/data_objects/environment.rb', line 236

def self.test_environment
  if @test_environment.blank?
    nil
  else
    @test_environment.downcase.to_sym
  end
end

.tunnelingObject



402
403
404
# File 'lib/testcentricity_web/data_objects/environment.rb', line 402

def self.tunneling
  @tunneling
end

.tunneling=(state) ⇒ Object



398
399
400
# File 'lib/testcentricity_web/data_objects/environment.rb', line 398

def self.tunneling=(state)
  @tunneling = state
end