lib/scoutui/eyes/eye_scout.rb in scoutui-2.0.5.4 vs lib/scoutui/eyes/eye_scout.rb in scoutui-2.0.5.5

- old
+ new

@@ -217,12 +217,13 @@ def generateReport() Scoutui::Logger::LogMgr.instance.info "SCOUTUI VERSION : " + Scoutui::VERSION if Scoutui::Utils::TestUtils.instance.eyesEnabled? - Scoutui::Logger::LogMgr.instance.debug " testResults.methods = #{@testResults.methods.sort.to_s}" +# Scoutui::Logger::LogMgr.instance.debug " testResults.methods = #{@testResults.methods.sort.to_s}" Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.isNew : #{@testResults.is_new.to_s}" + Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.Missing : #{@testResults.missing.to_s}" Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.Matches : #{@testResults.matches.to_s}" Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.Mismatches : #{@testResults.mismatches.to_s}" Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.Passed : #{@testResults.passed?.to_s}" Scoutui::Logger::LogMgr.instance.info " Eyes.TestResults.Steps : #{@testResults.steps.to_s}" end @@ -231,10 +232,18 @@ Scoutui::Logger::LogMgr.instance.info " TestReport.Tap => #{@testResults.to_json}" Testmgr::TestReport.instance.report() + if Scoutui::Utils::TestUtils.instance.abort? + Scoutui::Logger::LogMgr.instance.warn __FILE__ + (__LINE__).to_s + " Aborted:" + + Scoutui::Utils::TestUtils.instance.abortMessage.each do |msg| + Scoutui::Logger::LogMgr.instance.fatal msg + end + end + Testmgr::TestReport.instance.junitReport(Scoutui::Utils::TestUtils.instance.getReporter()) # Testmgr::TestReport.instance.generateReport() metrics=Testmgr::TestReport.instance.getMetrics() @@ -293,11 +302,11 @@ @strategy = Scoutui::Commands::Strategy.new() @eyes=Scoutui::Eyes::EyeFactory.instance.createEyes() - Scoutui::Logger::LogMgr.instance.info __FILE__ + (__LINE__).to_s + " eyes => #{eyes}" if Scoutui::Utils::TestUtils.instance.isDebug? + Scoutui::Logger::LogMgr.instance.info __FILE__ + (__LINE__).to_s + " eyes => #{eyes}" ## TBD - move the following into eye_scout ?? if Scoutui::Utils::TestUtils.instance.eyesEnabled? @driver = @eyes.open( app_name: Scoutui::Base::UserVars.instance.getVar('eyes.app'), # @eyesRecord['app'], @@ -306,10 +315,9 @@ # viewport_size: {width: 800, height: 600}, driver: @strategy.getDriver()) end rescue => ex -# Scoutui::Logger::LogMgr.instance.warn ex.backtrace Scoutui::Logger::LogMgr.instance.warn __FILE__ + (__LINE__).to_s + "Backtrace:\n\t#{ex.backtrace.join("\n\t")}" end end \ No newline at end of file