Class: MobyPlugin::Generic::SUT

Inherits:
MobyUtil::Plugin show all
Defined in:
lib/tdriver/base/sut/generic/plugin.rb

Class Method Summary collapse

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_nameObject

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_typeObject



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_pluginObject



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_typeObject

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_pluginObject



59
60
61
62
63
# File 'lib/tdriver/base/sut/generic/plugin.rb', line 59

def self.unregister_plugin

  # unregister plugin

end