Class: Jasmine::Sauce::CI::SauceConfig
- Inherits:
-
Object
- Object
- Jasmine::Sauce::CI::SauceConfig
- Defined in:
- lib/jasmine-selenium-sauce/sauce_config.rb
Direct Known Subclasses
Instance Method Summary collapse
- #browser ⇒ Object
- #browser_version ⇒ Object
- #idle_timeout ⇒ Object
- #jasmine_server_url ⇒ Object
- #max_duration ⇒ Object
- #platform ⇒ Object
- #record_screenshots ⇒ Object
- #record_video ⇒ Object
- #saucelabs_server_url ⇒ Object
- #selenium_client_timeout ⇒ Object
- #validate ⇒ Object
Instance Method Details
#browser ⇒ Object
21 22 23 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 21 def browser ENV['SAUCE_BROWSER'] end |
#browser_version ⇒ Object
29 30 31 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 29 def browser_version ENV['SAUCE_BROWSER_VERSION'] end |
#idle_timeout ⇒ Object
41 42 43 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 41 def idle_timeout ENV['SAUCE_IDLE_TIMEOUT'] ? ENV['SAUCE_IDLE_TIMEOUT'] : 90 end |
#jasmine_server_url ⇒ Object
17 18 19 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 17 def jasmine_server_url ENV['JASMINE_URL'] end |
#max_duration ⇒ Object
45 46 47 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 45 def max_duration ENV['SAUCE_MAX_DURATION'] ? ENV['SAUCE_MAX_DURATION'] : 180 end |
#platform ⇒ Object
25 26 27 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 25 def platform ENV['SAUCE_PLATFORM'] ? ENV['SAUCE_PLATFORM'].to_s.upcase.to_sym : :VISTA end |
#record_screenshots ⇒ Object
33 34 35 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 33 def record_screenshots ENV['SAUCE_SCREENSHOTS'] ? ENV['SAUCE_SCREENSHOTS'] : false end |
#record_video ⇒ Object
37 38 39 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 37 def record_video ENV['SAUCE_VIDEO'] ? ENV['SAUCE_VIDEO'] : false end |
#saucelabs_server_url ⇒ Object
13 14 15 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 13 def saucelabs_server_url ENV['SAUCELABS_URL'] end |
#selenium_client_timeout ⇒ Object
49 50 51 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 49 def selenium_client_timeout ENV['SELENIUM_CLIENT_TIMEOUT'] ? ENV['SELENIUM_CLIENT_TIMEOUT'] : 120 end |
#validate ⇒ Object
7 8 9 10 11 |
# File 'lib/jasmine-selenium-sauce/sauce_config.rb', line 7 def validate raise ArgumentError.new("SAUCELABS_URL was not set") unless saucelabs_server_url raise ArgumentError.new("JASMINE_URL was not set") unless jasmine_server_url raise ArgumentError.new("SAUCE_BROWSER was not set") unless browser end |