Module: MobyBehaviour::QT::Gesture
- Includes:
- Behaviour
- Defined in:
- lib/tdriver-devtools/behaviour/old/xml/example/flick-example.rb
Overview
description
This module contains demonstration implementation containing tags for documentation generation using gesture as an example
behaviour
QtExampleGestureBehaviour
requires
testability-driver-sut-qt-plugin
input_type
touch
sut_type
qt
sut_version
*
objects
*;sut
Instance Method Summary collapse
-
#flick(direction, button = :Left, optional_params = {}) ⇒ Object
description Cause a flick operation on the screen.
Instance Method Details
#flick(direction, button = :Left, optional_params = {}) ⇒ Object
description
Cause a flick operation on the screen.
arguments
argument1
Integer
description: Example argument1
example: 10
default:
Hash
description: Example argument 1 type 2
example: { :optional_1 => "value_1", :optional_2 => "value_2" }
default:
argument2
String
description: Example argument2
example: "Hello"
default:
returns
String
description: Return value type
example: "World"
exceptions
RuntimeError
description: example exception
ArgumentError
description: example exception
example
flick( :Down, :Left, { :optional_1 => “value_1”, :optional_2 => “value_2” } )
info
See method X, table at Y
howto
Example1
description: Basic use
code: @sut = TDriver.sut( :Id => "sut_qt" )
app = @sut.application
app.QPushButton( :text => "Close" ).flick :Left
94 95 |
# File 'lib/tdriver-devtools/behaviour/old/xml/example/flick-example.rb', line 94 def flick( direction, = :Left, optional_params = {} ) end |