Class: Testmgr::AbstractTest
- Inherits:
-
Object
- Object
- Testmgr::AbstractTest
- Defined in:
- lib/testmgr/base/abstract_test.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#xpath ⇒ Object
readonly
Returns the value of attribute xpath.
Instance Method Summary collapse
-
#child(name) ⇒ Object
Virtual.
-
#get_time_required ⇒ Object
Virtual.
-
#initialize(name) ⇒ AbstractTest
constructor
A new instance of AbstractTest.
-
#print ⇒ Object
Virtual.
Constructor Details
#initialize(name) ⇒ AbstractTest
Returns a new instance of AbstractTest.
10 11 12 13 14 |
# File 'lib/testmgr/base/abstract_test.rb', line 10 def initialize(name) @name=name @xpath=nil @id=nil end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/testmgr/base/abstract_test.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/testmgr/base/abstract_test.rb', line 6 def name @name end |
#xpath ⇒ Object (readonly)
Returns the value of attribute xpath.
8 9 10 |
# File 'lib/testmgr/base/abstract_test.rb', line 8 def xpath @xpath end |
Instance Method Details
#child(name) ⇒ Object
Virtual
21 22 23 |
# File 'lib/testmgr/base/abstract_test.rb', line 21 def child(name) raise 'Abstract' end |
#get_time_required ⇒ Object
Virtual
17 18 19 |
# File 'lib/testmgr/base/abstract_test.rb', line 17 def get_time_required raise "Abstract" end |
#print ⇒ Object
Virtual
25 26 27 |
# File 'lib/testmgr/base/abstract_test.rb', line 25 def print raise "Abstract" end |