Class: MobyPlugin::Generic::SUT
- Inherits:
-
MobyUtil::Plugin
- Object
- MobyUtil::Plugin
- MobyPlugin::Generic::SUT
- Defined in:
- lib/tdriver/base/sut/generic/plugin.rb
Class Method Summary collapse
-
.make_sut(sut_id) ⇒ Object
returns SUT object - this method will be called from TDriver::SUTFactory.
-
.plugin_name ⇒ Object
plugin configuration, constructor and deconstructor methods.
- .plugin_type ⇒ Object
- .register_plugin ⇒ Object
-
.sut_type ⇒ Object
return sut type that plugin implements.
- .unregister_plugin ⇒ Object
Methods inherited from MobyUtil::Plugin
plugin_required_tdriver_version
Class Method Details
.make_sut(sut_id) ⇒ Object
returns SUT object - this method will be called from TDriver::SUTFactory
76 77 78 79 80 81 82 83 84 85 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 76 def self.make_sut( sut_id ) MobyBase::SUT.new( MobyBase::SutController.new( "", MobyController::SutAdapter.new() ), TDriver.TestObjectFactory.new( TDriver::TestObjectAdapter ), sut_id ) end |
.plugin_name ⇒ Object
plugin configuration, constructor and deconstructor methods
30 31 32 33 34 35 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 30 def self.plugin_name # return plugin name as string "testability-driver-generic-sut-plugin" end |
.plugin_type ⇒ Object
37 38 39 40 41 42 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 37 def self.plugin_type # return plugin type as symbol :sut end |
.register_plugin ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 44 def self.register_plugin # load plugin specific implementation or other initialization etc. MobyUtil::FileHelper.load_modules( # load behaviour(s) 'behaviours/*.rb', # load commands(s) 'commands/*.rb' ) end |
.sut_type ⇒ Object
return sut type that plugin implements
68 69 70 71 72 73 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 68 def self.sut_type # return sut type as string "generic" end |
.unregister_plugin ⇒ Object
59 60 61 62 63 |
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 59 def self.unregister_plugin # unregister plugin end |