Sha256: 2cf9d1f21dbd02b925ab2f2d49be50d713802b4331027f402f34747fa8d1db1c
Contents?: true
Size: 970 Bytes
Versions: 5
Compression:
Stored size: 970 Bytes
Contents
require 'rubygems' require 'spec' require 'base64' require 'fileutils' require File.expand_path(File.dirname(__FILE__) + "/rspec_extensions") require File.expand_path(File.dirname(__FILE__) + "/reporting/selenium_test_report_formatter") Spec::Runner.configure do |config| config.prepend_after(:each) do begin Selenium::RSpec::SeleniumTestReportFormatter.capture_system_state(selenium_driver, self) if execution_error if selenium_driver.session_started? selenium_driver.set_context "Ending example '#{self.description}'" end rescue Exception => e STDERR.puts "Problem while capturing system state" + e end end config.append_before(:each) do begin if selenium_driver && selenium_driver.session_started? selenium_driver.set_context "Starting example '#{self.description}'" end rescue Exception => e STDERR.puts "Problem while setting context on example start" + e end end end
Version data entries
5 entries across 5 versions & 1 rubygems