Module: MobyBehaviour::QT::Os

Includes:
Behaviour
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/os.rb

Overview

description

OS specific behaviours

behaviour

QtOs

requires

testability-driver-qt-sut-plugin

input_type

*

sut_type

QT

sut_version

*

objects

sut

Instance Method Summary collapse

Methods included from Behaviour

#command_params

Instance Method Details

#press_enter(interval = nil) ⇒ Object

This method is now deprecated as recent version of Agent Qt server never loads PlatformService



80
81
82
83
84
85
86
87
88
89
90
91
92
93
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/os.rb', line 80

def press_enter(interval = nil)
	begin   				  
	  if interval
		interval = (interval*1000).to_i
		params = {:interval => interval}
	  end
	  execute_command( MobyCommand::WidgetCommand.new( nil, nil, nil, 'PressEnter', params, nil, 'uiCommand') )
	rescue Exception => e
		$logger.behaviour "FAIL;Failed to send an Enter keystroke request to the qttas server;press_enter;"
		raise e
	end
		$logger.behaviour "PASS;Successfuly sent an Enter keystroke request to the qttas server;press_enter;"
	nil
end