Class: QAT::Reporter::Opentest

Inherits:
Object
  • Object
show all
Defined in:
lib/qat/reporter/opentest/version.rb,
lib/qat/reporter/opentest/config.rb,
lib/qat/reporter/opentest/publisher/base.rb,
lib/qat/reporter/opentest/publisher/hosted.rb

Overview

Namespace for QAT Reporter’s Xray integrations

Defined Under Namespace

Modules: Config, Publisher Classes: OpentestTokenUndefinedError, OpentestUrlUndefinedError

Constant Summary collapse

VERSION =

Represents QAT Reporter’s Xray integrations’ version

'1.3'

Class Method Summary collapse

Class Method Details

.configure {|Config| ... } ⇒ Object

Yields:

Raises:



72
73
74
75
76
77
78
79
80
# File 'lib/qat/reporter/opentest/config.rb', line 72

def configure(&block)
	yield Config
	
	QAT::Reporter::Opentest::Config.publisher = QAT::Reporter::Opentest::Publisher.const_get(QAT::Reporter::Opentest::Config.default_publisher.capitalize).new
	
	raise(OpentestUrlUndefinedError, 'Opentest URL must be defined!') unless QAT::Reporter::Opentest::Config.open_test_url
	raise(OpentestTokenUndefinedError, 'Opentest Token must be defined!') unless QAT::Reporter::Opentest::Config.bearer
	return QAT::Reporter::Opentest::Config.publisher
end