Sha256: 1122d39f2923c2469c634a49f0b1fb02fa50f29bcd28891c90a27694611a5a77

Contents?: true

Size: 666 Bytes

Versions: 6

Compression:

Stored size: 666 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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
selenium-client-1.2.7 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.4 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.6 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.5 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.8 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.9 lib/selenium/rspec/spec_helper.rb