lib/scoutui/commands/strategy.rb in scoutui-2.0.3.5.pre vs lib/scoutui/commands/strategy.rb in scoutui-2.0.3.6.pre
- old
+ new
@@ -209,11 +209,11 @@
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Capabilities => #{caps.to_s}"
sauce_endpoint = "http://#{ENV['SAUCE_USERNAME']}:#{ENV['SAUCE_ACCESS_KEY']}@ondemand.saucelabs.com:80/wd/hub"
caps[:name]=Scoutui::Utils::TestUtils.instance.getSauceName()
- caps[:tags]=["Concur QE", "ScoutUI"]
+ caps[:tags]=[caps[:name], "ScoutUI"]
begin
if client.nil?
@drv=Selenium::WebDriver.for :remote, :url => sauce_endpoint, :desired_capabilities => caps # setup(caps)
else
@@ -223,9 +223,13 @@
rescue => ex
Scoutui::Logger::LogMgr.instance.debug "Error during processing: #{$!}"
Scoutui::Logger::LogMgr.instance.debug "Backtrace:\n\t#{ex.backtrace.join("\n\t")}"
end
+ # The following print to STDOUT is useful when running on JENKINS with SauceLabs plugin
+ # Reference:
+ # https://wiki.saucelabs.com/display/DOCS/Setting+Up+Reporting+between+Sauce+Labs+and+Jenkins
+ puts "SauceOnDemandSessionID=#{@drv.session_id} job-name=#{caps[:name]}"
else
Scoutui::Logger::LogMgr.instance.debug __FILE__ + (__LINE__).to_s + " Create WebDriver: #{browserType.to_s}"
@drv=Selenium::WebDriver.for browserType.to_sym, :profile => @profile
end