Class: Cosmos::ScriptResult
Overview
Helper class to collect script result information
Direct Known Subclasses
Constant Summary collapse
- @@suite =
nil
Instance Attribute Summary collapse
-
#exceptions ⇒ Object
Returns the value of attribute exceptions.
-
#group ⇒ Object
Returns the value of attribute group.
-
#message ⇒ Object
Returns the value of attribute message.
-
#output ⇒ Object
Returns the value of attribute output.
-
#result ⇒ Object
Returns the value of attribute result.
-
#script ⇒ Object
Returns the value of attribute script.
-
#stopped ⇒ Object
Returns the value of attribute stopped.
-
#suite ⇒ Object
Returns the value of attribute suite.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ScriptResult
constructor
A new instance of ScriptResult.
Constructor Details
#initialize ⇒ ScriptResult
Returns a new instance of ScriptResult.
526 527 528 529 530 531 532 533 534 535 536 |
# File 'lib/cosmos/script/suite.rb', line 526 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
#exceptions ⇒ Object
Returns the value of attribute exceptions.
519 520 521 |
# File 'lib/cosmos/script/suite.rb', line 519 def exceptions @exceptions end |
#group ⇒ Object
Returns the value of attribute group.
516 517 518 |
# File 'lib/cosmos/script/suite.rb', line 516 def group @group end |
#message ⇒ Object
Returns the value of attribute message.
522 523 524 |
# File 'lib/cosmos/script/suite.rb', line 522 def @message end |
#output ⇒ Object
Returns the value of attribute output.
518 519 520 |
# File 'lib/cosmos/script/suite.rb', line 518 def output @output end |
#result ⇒ Object
Returns the value of attribute result.
521 522 523 |
# File 'lib/cosmos/script/suite.rb', line 521 def result @result end |
#script ⇒ Object
Returns the value of attribute script.
517 518 519 |
# File 'lib/cosmos/script/suite.rb', line 517 def script @script end |
#stopped ⇒ Object
Returns the value of attribute stopped.
520 521 522 |
# File 'lib/cosmos/script/suite.rb', line 520 def stopped @stopped end |
#suite ⇒ Object
Returns the value of attribute suite.
515 516 517 |
# File 'lib/cosmos/script/suite.rb', line 515 def suite @suite end |
Class Method Details
.suite=(suite) ⇒ Object
538 539 540 |
# File 'lib/cosmos/script/suite.rb', line 538 def self.suite=(suite) @@suite = suite end |