Class: MobyCommand::Tap

Inherits:
CommandData
  • Object
show all
Defined in:
lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb

Instance Method Summary collapse

Constructor Details

#initialize(xcoordinate = nil, ycoordinate = nil, time_to_hold = 1, times_to_tap = 1, time_between_taps = 1) ⇒ Tap

Constructor to Tap

params

text

(optional) String to be added to text sequence if given.

returns

Instance of TypeText



33
34
35
36
37
38
39
40
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb', line 33

def initialize( xcoordinate = nil, ycoordinate = nil, time_to_hold = 1, times_to_tap = 1, time_between_taps = 1 )    
	# Set status value to nil (not executed)
	@_xcoordinate = xcoordinate
	@_ycoordinate = ycoordinate
	@_time_to_hold = time_to_hold
	@_times_to_tap = times_to_tap
	@_time_between_taps = time_between_taps
end

Instance Method Details

#get_holdObject



48
49
50
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb', line 48

def get_hold
  @_time_to_hold
end

#get_xObject



42
43
44
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb', line 42

def get_x
  @_xcoordinate
end

#get_yObject



45
46
47
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb', line 45

def get_y
  @_ycoordinate
end