Sha256: 981b117b3afe21b3e14a7a436cfaf689ef5834ec405140f34bad8de7f81a5ca7
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'cucumber' require 'capybara/cucumber' require_relative '../../boot' World(CapybaraSettings) World(DataGenerator) log.settings_as_formatted_text DataStorage.store('sauce', :start_time, Time.now.utc) DataStorage.store('sauce', :status, true) if sauce_driver? Capybara.drivers[:sauce][].options[:desired_capabilities][:name] = CapybaraSettings.suite_name end Before do |scenario| log.print_feature_name(scenario.feature.title) log.print_scenario_name(scenario.name) @session_start = duration(Time.now.utc - DataStorage.extract('sauce', :start_time)) end After do |scenario| Gen.delete_all_mailboxes if sauce_driver? DataStorage.store('sauce', :status, false) if scenario.failed? session_end = duration(Time.now.utc - DataStorage.extract('sauce', :start_time)) log.info "SAUCE VIDEO #@session_start - #{session_end} URL: #{sauce_resource_path('video.flv')}" end DataStorage.clear_ns("user") end at_exit do if sauce_driver? log.info "SAUCE SERVER LOG URL: #{CapybaraSettings.sauce_resource_path('selenium-server.log')}" CapybaraSettings.update_sauce_job_status(passed: DataStorage.extract('sauce', :status)) end Gen.delete_all_mailboxes end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
howitzer-1.0.1 | generators/cucumber/templates/env.rb |
howitzer-0.0.3 | generators/cucumber/templates/env.rb |
howitzer-0.0.1 | generators/cucumber/templates/env.rb |