Module: MobyController::QT::Fixture
- Includes:
- Abstraction, MobyUtil::MessageComposer
- Defined in:
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb
Instance Method Summary collapse
-
#make_message ⇒ Object
Creates service command message which will be sent to @sut_adapter by execute method == params == returns == raises.
Methods included from MobyUtil::MessageComposer
#close_message, #encode_string, #hash_to_attributes, #make_filters, #make_fixture_message, #make_parametrized_message, #make_xml_message, #run_message, #state_message
Instance Method Details
#make_message ⇒ Object
Creates service command message which will be sent to @sut_adapter by execute method
params
returns
raises
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb', line 34 def # use local variable for less AST lookups sut_id = @sut_adapter.sut_id.to_sym plugin_name = @params[ :name ].to_s # retrieve plugin details from fixtures configuration plugin_params = $parameters[ sut_id ][ :fixtures ][ plugin_name.to_sym, nil ] # verify that plugin is configured plugin_params.not_nil "Fixture #{ plugin_name.inspect } not found for #{ sut_id.inspect }" # retrieve plugin name fixture_plugin = plugin_params.kind_of?( String ) ? plugin_params : plugin_params[ :plugin ] Comms::MessageGenerator.generate( ( fixture_plugin, @params ) ) end |