Class: OpenC3::ScriptResult

Inherits:
Object show all
Defined in:
lib/openc3/script/suite.rb

Overview

Helper class to collect script result information

Direct Known Subclasses

TestResult

Constant Summary collapse

@@suite =
nil

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScriptResult

Returns a new instance of ScriptResult.



538
539
540
541
542
543
544
545
546
547
548
# File 'lib/openc3/script/suite.rb', line 538

def initialize
  @suite = nil
  @suite = @@suite.clone if @@suite
  @group = nil
  @script = nil
  @output = nil
  @exceptions = nil
  @stopped = false
  @result = :SKIP
  @message = nil
end

Instance Attribute Details

#exceptionsObject

Returns the value of attribute exceptions.



531
532
533
# File 'lib/openc3/script/suite.rb', line 531

def exceptions
  @exceptions
end

#groupObject

Returns the value of attribute group.



528
529
530
# File 'lib/openc3/script/suite.rb', line 528

def group
  @group
end

#messageObject

Returns the value of attribute message.



534
535
536
# File 'lib/openc3/script/suite.rb', line 534

def message
  @message
end

#outputObject

Returns the value of attribute output.



530
531
532
# File 'lib/openc3/script/suite.rb', line 530

def output
  @output
end

#resultObject

Returns the value of attribute result.



533
534
535
# File 'lib/openc3/script/suite.rb', line 533

def result
  @result
end

#scriptObject

Returns the value of attribute script.



529
530
531
# File 'lib/openc3/script/suite.rb', line 529

def script
  @script
end

#stoppedObject

Returns the value of attribute stopped.



532
533
534
# File 'lib/openc3/script/suite.rb', line 532

def stopped
  @stopped
end

#suiteObject

Returns the value of attribute suite.



527
528
529
# File 'lib/openc3/script/suite.rb', line 527

def suite
  @suite
end

Class Method Details

.suite=(suite) ⇒ Object



550
551
552
# File 'lib/openc3/script/suite.rb', line 550

def self.suite=(suite)
  @@suite = suite
end