Module: MobyBehaviour::QT::Record
- Includes:
- Behaviour
- Defined in:
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb
Overview
description
Record specific behaviours
behaviour
QtRecord
requires
testability-driver-qt-sut-plugin
input_type
*
sut_type
QT
sut_version
*
objects
application
Instance Method Summary collapse
-
#print_recordings ⇒ Object
nodoc.
-
#start_recording ⇒ Object
nodoc == returns NilClass description: - example: -.
-
#stop_recording ⇒ Object
nodoc == returns NilClass description: - example: -.
Methods included from Behaviour
Instance Method Details
#print_recordings ⇒ Object
nodoc
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb', line 103 def print_recordings ret = nil begin command = plugin_command(true) #in qt_behaviour command.command_name( 'Print' ) command.service( 'recordEvents' ) ret = @sut.execute_command( command ) rescue Exception => e $logger.behaviour "FAIL;Failed print_recordings.;#{ identity };print_recordings;" raise e end $logger.behaviour "PASS;Operation print_recordings executed successfully.;#{ identity };print_recordings;" return ret end |
#start_recording ⇒ Object
nodoc
returns
NilClass
description: -
example: -
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb', line 54 def start_recording begin command = plugin_command() #in qt_behaviour command.command_name( 'Start' ) command.service( 'recordEvents' ) @sut.execute_command( command) rescue Exception => e $logger.behaviour "FAIL;Failed start_recording.;#{ identity };start_recording;" raise e end $logger.behaviour "PASS;Operation start_recording executed successfully.;#{ identity };start_recording;" nil end |
#stop_recording ⇒ Object
nodoc
returns
NilClass
description: -
example: -
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb', line 80 def stop_recording begin command = plugin_command() #in qt_behaviour command.command_name( 'Stop' ) command.service( 'recordEvents' ) @sut.execute_command( command) rescue Exception => e $logger.behaviour "FAIL;Failed stop_recording.;#{ identity };stop_recording;" raise e end $logger.behaviour "PASS;Operation stop_recording executed successfully.;#{ identity };stop_recording;" nil end |