Module: MobyController::QT::ScreenCapture

Includes:
Abstraction
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/screen_capture.rb

Instance Method Summary collapse

Instance Method Details

#make_messageObject

Creates service command message which will be sent to @sut_adapter by execute method

params

returns

raises



32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/screen_capture.rb', line 32

def make_message

  Comms::MessageGenerator.generate(
    Nokogiri::XML::Builder.new{
      TasCommands( :id=> 1, :service => "screenShot" ) {
        Target( :TasId => 1, :type => "Application" ) {
          Command( :name => "Screenshot", :format => @context.image_mime_type, :draw => @context.redraw.to_s )
        }
      }
    }.to_xml
  )

end