Module: QAT::Cucumber

Extended by:
Logger, Time
Includes:
Logger
Defined in:
lib/qat/cucumber.rb,
lib/qat/cucumber/time.rb,
lib/qat/cucumber/hooks.rb,
lib/qat/cucumber/world.rb,
lib/qat/cucumber/logger.rb,
lib/qat/cucumber/version.rb,
lib/qat/cucumber/hooks/scenario.rb

Overview

Namespace for various helpers when running with cucumber. Just require ‘qat/cucumber’ to automatically integrate all the available helpers.

Since:

  • 0.1.0

Defined Under Namespace

Modules: Hooks, Logger, Time, World Classes: EmptyConfiguration, InvalidConfiguration

Constant Summary collapse

VERSION =

Represents QAT’s version

Since:

  • 0.1.0

'9.0.2'

Constants included from Time

Time::MANDATORY_KEYS

Class Method Summary collapse

Methods included from Time

set_time_zone, start_time_sync, time_sync, validate_time_options

Methods included from Logger

config_logger, load_logger_config, validate_logger_config, validate_logger_yaml_config

Class Method Details

.launch!Object

Launches the pre-test configurations and integrations This includes:

  • Time Synchronization between the host running tests and a target host (test environment?) if configured

  • Setups the Jenkins integration if running this CI Server

Since:

  • 0.1.0



39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/qat/cucumber.rb', line 39

def launch!
  current_configuration = QAT.configuration

  raise EmptyConfiguration.new "No valid configuration exists to run tests!" unless current_configuration
  raise InvalidConfiguration.new "No valid environment is defined, aborting test execution!" unless current_configuration.environment

  config_logger(current_configuration)

  time_sync if current_configuration[:time]

  setup_jenkins((current_configuration)) if ENV['JENKINS_URL']
end