Class: Sapphire::Testing::TestPlanResult
- Defined in:
- lib/sapphire/Testing/TestPlanResult.rb
Instance Attribute Summary collapse
-
#execution_time ⇒ Object
readonly
Returns the value of attribute execution_time.
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#stack ⇒ Object
readonly
Returns the value of attribute stack.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(type, item, message, stack, execution_time) ⇒ TestPlanResult
constructor
A new instance of TestPlanResult.
Constructor Details
#initialize(type, item, message, stack, execution_time) ⇒ TestPlanResult
Returns a new instance of TestPlanResult.
13 14 15 16 17 18 19 20 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 13 def initialize(type, item, , stack, execution_time) @item = item @text = "Failure running commands in TestPlan: " + item.text @execution_time = execution_time @messages = @stack = stack @type = type end |
Instance Attribute Details
#execution_time ⇒ Object (readonly)
Returns the value of attribute execution_time.
5 6 7 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 5 def execution_time @execution_time end |
#item ⇒ Object (readonly)
Returns the value of attribute item.
7 8 9 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 7 def item @item end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
6 7 8 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 6 def @message end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
10 11 12 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 10 def @messages end |
#stack ⇒ Object (readonly)
Returns the value of attribute stack.
9 10 11 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 9 def stack @stack end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
11 12 13 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 11 def text @text end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
8 9 10 |
# File 'lib/sapphire/Testing/TestPlanResult.rb', line 8 def type @type end |