Sha256: 3e18a8dc034923a4658e65f5a8b231fbe6f5a168f3e0e3bc6fed42f04b3e1512

Contents?: true

Size: 658 Bytes

Versions: 4

Compression:

Stored size: 658 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.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

4 entries across 4 versions & 1 rubygems

Version Path
selenium-client-1.2.2 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.3 lib/selenium/rspec/spec_helper.rb
selenium-client-1.2.1 lib/selenium/rspec/spec_helper.rb