testability-driver-qt-sut-plugin 1.0.4 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/application.rb +18 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/fps.rb +172 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/key_press.rb +36 -22
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/sut.rb +2 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb +2 -2
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb +19 -8
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/message_composer.rb +8 -1
- data/xml/behaviour/qt.xml +21 -0
- data/xml/template/qt.xml +5 -3
- metadata +47 -46
data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/application.rb
CHANGED
@@ -218,6 +218,24 @@ module MobyBehaviour
|
|
218
218
|
|
219
219
|
end
|
220
220
|
|
221
|
+
# == description
|
222
|
+
# Resizes the application window so that width becomes height and vice versa.
|
223
|
+
#
|
224
|
+
# == arguments
|
225
|
+
# Symbol
|
226
|
+
# direction
|
227
|
+
# description: For future support
|
228
|
+
#
|
229
|
+
# == returns
|
230
|
+
# NilClass
|
231
|
+
# description: -
|
232
|
+
# example: -
|
233
|
+
#
|
234
|
+
#
|
235
|
+
def change_orientation(direction = nil)
|
236
|
+
self.fixture('qt','change_orientation')
|
237
|
+
end
|
238
|
+
|
221
239
|
private
|
222
240
|
|
223
241
|
def multitouch_operation(&block)
|
@@ -0,0 +1,172 @@
|
|
1
|
+
############################################################################
|
2
|
+
##
|
3
|
+
## Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
4
|
+
## All rights reserved.
|
5
|
+
## Contact: Nokia Corporation (testabilitydriver@nokia.com)
|
6
|
+
##
|
7
|
+
## This file is part of TDriver.
|
8
|
+
##
|
9
|
+
## If you have questions regarding the use of this file, please contact
|
10
|
+
## Nokia at testabilitydriver@nokia.com .
|
11
|
+
##
|
12
|
+
## This library is free software; you can redistribute it and/or
|
13
|
+
## modify it under the terms of the GNU Lesser General Public
|
14
|
+
## License version 2.1 as published by the Free Software Foundation
|
15
|
+
## and appearing in the file LICENSE.LGPL included in the packaging
|
16
|
+
## of this file.
|
17
|
+
##
|
18
|
+
############################################################################
|
19
|
+
|
20
|
+
module MobyBehaviour
|
21
|
+
|
22
|
+
module QT
|
23
|
+
|
24
|
+
# == description
|
25
|
+
#
|
26
|
+
# == behaviour
|
27
|
+
# QtFps
|
28
|
+
#
|
29
|
+
# == requires
|
30
|
+
# testability-driver-qt-sut-plugin
|
31
|
+
#
|
32
|
+
# == input_type
|
33
|
+
# *
|
34
|
+
#
|
35
|
+
# == sut_type
|
36
|
+
# QT
|
37
|
+
#
|
38
|
+
# == sut_version
|
39
|
+
# *
|
40
|
+
#
|
41
|
+
# == objects
|
42
|
+
# *
|
43
|
+
#
|
44
|
+
module Fps
|
45
|
+
|
46
|
+
include MobyBehaviour::QT::Behaviour
|
47
|
+
|
48
|
+
|
49
|
+
# == description
|
50
|
+
# Start collecting frames per second data for the object.
|
51
|
+
# Testability driver qttas package provides a fixture for measuring fps of a component.
|
52
|
+
# This behaviour is a wrapper for the fixture.
|
53
|
+
# The fixture intercepts paint events send to the target of the fps measurement and simply
|
54
|
+
# counts how many occur during each second. The way this is done differs a bit depending
|
55
|
+
# on the target object. For normal QWidgets the fps values are measured to the target
|
56
|
+
# object direclty. QGraphicsItem based objects this is not the case. For QGrapchisItem
|
57
|
+
# based objects the system determines the QGraphicsView the item is in and starts to
|
58
|
+
# listen to paint evets send to the viewport of the QGraphicsView. If you measure the
|
59
|
+
# QGraphicsView object directly the measurement is also done for the viewport.
|
60
|
+
#
|
61
|
+
# == returns
|
62
|
+
# NilClass
|
63
|
+
# description: -
|
64
|
+
# example: -
|
65
|
+
#
|
66
|
+
# == exceptions
|
67
|
+
# ArgumentError
|
68
|
+
# description: In case the given parameters are not valid.
|
69
|
+
#
|
70
|
+
def start_fps_measurement
|
71
|
+
|
72
|
+
begin
|
73
|
+
self.fixture('fps', 'startFps')
|
74
|
+
rescue Exception => e
|
75
|
+
|
76
|
+
$logger.log "behaviour" , "FAIL;Failed start_fps_measurement.;#{ identity };start_fps_measurement;"
|
77
|
+
Kernel::raise e
|
78
|
+
|
79
|
+
end
|
80
|
+
|
81
|
+
$logger.log "behaviour" , "PASS;Operation start_fps_measurement executed successfully.;#{ identity };start_fps_measurement;"
|
82
|
+
|
83
|
+
nil
|
84
|
+
end
|
85
|
+
|
86
|
+
# == description
|
87
|
+
# Stop collecting frames per second data for the object.
|
88
|
+
#
|
89
|
+
# == returns
|
90
|
+
# Array
|
91
|
+
# description: An Array of fps entries. Each entry is a hash table that contains the
|
92
|
+
# value and time stamp {value => 12, time_stamp => 06:49:42.259}
|
93
|
+
# example: [{value => 12, time_stamp => 06:49:42.259}, {value => 11, time_stamp => 06:49:43.259}]
|
94
|
+
#
|
95
|
+
# == exceptions
|
96
|
+
# ArgumentError
|
97
|
+
# description: In case the given parameters are not valid.
|
98
|
+
#
|
99
|
+
def stop_fps_measurement
|
100
|
+
|
101
|
+
begin
|
102
|
+
results = parse_results( self.fixture('fps', 'stopFps') )
|
103
|
+
rescue Exception => e
|
104
|
+
|
105
|
+
$logger.log "behaviour" , "FAIL;Failed stop_fps_measurement.;#{ identity };stop_fps_measurement;"
|
106
|
+
Kernel::raise e
|
107
|
+
|
108
|
+
end
|
109
|
+
|
110
|
+
$logger.log "behaviour" , "PASS;Operation stop_fps_measurement executed successfully.;#{ identity };stop_fps_measurement;"
|
111
|
+
|
112
|
+
results
|
113
|
+
end
|
114
|
+
|
115
|
+
|
116
|
+
# == description
|
117
|
+
# Collect the stored fps results from the target. This will not stop the measurement but it will restart it
|
118
|
+
# so the results returned will not be included in the next data request. Measuring fps will have a small impact
|
119
|
+
# on the software performance and memory consumption so it is recommended that the collection is stopped if no longer
|
120
|
+
# needed.
|
121
|
+
#
|
122
|
+
# == returns
|
123
|
+
# Array
|
124
|
+
# description: An Array of fps entries. Each entry is a hash table that contains the
|
125
|
+
# value and time stamp {value => 12, time_stamp => 06:49:42.259}
|
126
|
+
# example: [{value => 12, time_stamp => 06:49:42.259}, {value => 11, time_stamp => 06:49:43.259}]
|
127
|
+
#
|
128
|
+
# == exceptions
|
129
|
+
# ArgumentError
|
130
|
+
# description: In case the given parameters are not valid.
|
131
|
+
#
|
132
|
+
def collect_fps_data
|
133
|
+
|
134
|
+
begin
|
135
|
+
results = parse_results( self.fixture('fps', 'collectData') )
|
136
|
+
rescue Exception => e
|
137
|
+
|
138
|
+
$logger.log "behaviour" , "FAIL;Failed collect_fps_data.;#{ identity };collect_fps_data;"
|
139
|
+
Kernel::raise e
|
140
|
+
|
141
|
+
end
|
142
|
+
|
143
|
+
$logger.log "behaviour" , "PASS;Operation collect_fps_data executed successfully.;#{ identity };collect_fps_data;"
|
144
|
+
|
145
|
+
results
|
146
|
+
end
|
147
|
+
|
148
|
+
private
|
149
|
+
|
150
|
+
def parse_results(results_xml)
|
151
|
+
xml_as_object = MobyBase::StateObject.new( results_xml )
|
152
|
+
results = []
|
153
|
+
count = xml_as_object.results.attribute('count').to_i
|
154
|
+
for i in 0...count
|
155
|
+
value = xml_as_object.fps(:id => i.to_s).attribute('frameCount').to_i
|
156
|
+
time_stamp = xml_as_object.fps(:id => i.to_s).attribute('timeStamp')
|
157
|
+
entry = {:value => value, :time_stamp => time_stamp}
|
158
|
+
results.push(entry)
|
159
|
+
end
|
160
|
+
results
|
161
|
+
end
|
162
|
+
|
163
|
+
|
164
|
+
# enable hooking for performance measurement & debug logging
|
165
|
+
TDriver::Hooking.hook_methods( self ) if defined?( TDriver::Hooking )
|
166
|
+
|
167
|
+
|
168
|
+
end # Fps
|
169
|
+
|
170
|
+
end
|
171
|
+
|
172
|
+
end # MobyBase
|
data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/key_press.rb
CHANGED
@@ -75,70 +75,84 @@ module MobyBehaviour
|
|
75
75
|
# description: Error occured during keypress (Response: %s)
|
76
76
|
def press_key( key )
|
77
77
|
|
78
|
+
key_sequence = nil
|
79
|
+
|
78
80
|
begin
|
79
81
|
|
80
82
|
command = command_params
|
83
|
+
|
81
84
|
command.command_name('KeyPress')
|
85
|
+
|
82
86
|
command.set_require_response( true )
|
83
87
|
|
88
|
+
#Kernel::raise ArgumentError.new( "Wrong argument type %s for key (Expected: %s)" % [ key.class, "Symbol/Fixnum/KeySequence" ] ) unless [ Fixnum, Symbol, MobyCommand::KeySequence ].include?( key.class )
|
89
|
+
|
84
90
|
# raise exception if value type other than Fixnum or Symbol
|
85
|
-
|
91
|
+
key.check_type [ Fixnum, Symbol, MobyCommand::KeySequence ], 'wrong argument type $1 for key (expected $2)'
|
86
92
|
|
87
93
|
# verify that keymap is defined for sut if symbol used.
|
88
|
-
|
89
|
-
|
90
|
-
"Symbol #{ key.inspect } cannot be used due to no keymap defined for #{ @sut.id } in TDriver configuration file."
|
94
|
+
raise ArgumentError, "Symbol #{ key.inspect } cannot be used due to no keymap defined for #{ @sut.id } in TDriver configuration file." if key.kind_of?( Symbol ) && $parameters[ @sut.id ].has_key?( :keymap ) == false
|
91
95
|
|
92
|
-
) if key.kind_of?( Symbol ) && !$parameters[ @sut.id ].has_key?( :keymap )
|
93
|
-
|
94
|
-
@key_sequence = nil
|
95
96
|
if key.kind_of?( Symbol )
|
96
97
|
|
97
|
-
scancode = $parameters[ @sut.id ][ :keymap ]
|
98
|
+
scancode = TDriver::KeymapUtilities.fetch_keycode( key, $parameters[ @sut.id ][ :keymap ] )
|
99
|
+
|
100
|
+
# convert hexadecimal (string) to fixnum
|
98
101
|
scancode = scancode.hex if scancode.kind_of?( String )
|
102
|
+
|
99
103
|
# raise exception if value is other than fixnum
|
100
|
-
|
104
|
+
raise ArgumentError, "Scan code for :#{ key } not defined in keymap" unless scancode.kind_of?( Fixnum )
|
101
105
|
|
102
106
|
# add scancode for keypress event
|
103
107
|
command.command_value( scancode.to_s )
|
104
108
|
|
105
109
|
elsif key.kind_of?( MobyCommand::KeySequence )
|
106
110
|
|
107
|
-
|
111
|
+
key_sequence = []
|
112
|
+
|
108
113
|
key.get_sequence.each do | key_event |
|
109
|
-
|
110
|
-
|
111
|
-
|
114
|
+
|
115
|
+
#tempcode = $parameters[ @sut.id ][ :keymap ][ key_event[ :value ], nil ]
|
116
|
+
|
117
|
+
tempcode = TDriver::KeymapUtilities.fetch_keycode( key_event[ :value ], $parameters[ @sut.id ][ :keymap ] )
|
118
|
+
|
119
|
+
tempcode = tempcode.hex if tempcode.kind_of?( String )
|
112
120
|
|
113
|
-
|
114
|
-
|
121
|
+
press_type = { :KeyDown => 'KeyPress', :KeyUp => 'KeyRelease' }.fetch( key_event[ :type ] ){ "KeyClick" }
|
122
|
+
|
123
|
+
key_sequence << { :value => tempcode, :params => { :name => press_type, :modifiers => "0", :delay => "0" } }
|
115
124
|
|
116
125
|
end
|
117
|
-
|
126
|
+
|
127
|
+
command.command_value( key_sequence )
|
128
|
+
|
118
129
|
else
|
119
130
|
|
120
|
-
|
131
|
+
scancode = key.to_i
|
121
132
|
|
122
133
|
# raise exception if value is other than fixnum
|
123
134
|
Kernel::raise ArgumentError.new( "Scan code for :%s not defined in keymap" % key ) unless scancode.kind_of?( Fixnum )
|
124
135
|
|
125
136
|
# add scancode for keypress event
|
126
137
|
command.command_value( scancode.to_s )
|
138
|
+
|
127
139
|
end
|
128
140
|
|
129
141
|
# execute command & verify that execution passed ("OK" expected as response)
|
130
142
|
@sut.execute_command(command)
|
143
|
+
|
131
144
|
#Kernel::raise RuntimeError.new("Error occured during keypress (Response: %s)" % @response ) unless ( @response = @sut.execute_command(command) ) == "OK"
|
132
145
|
|
133
|
-
rescue Exception
|
146
|
+
rescue Exception
|
134
147
|
|
135
|
-
$logger.
|
136
|
-
|
148
|
+
$logger.behaviour "FAIL;Failed press_key with key \"#{ key }\".;#{ identity };press_key;"
|
149
|
+
|
150
|
+
raise $!
|
137
151
|
|
138
152
|
end
|
139
153
|
|
140
|
-
$logger.
|
141
|
-
|
154
|
+
$logger.behaviour "PASS;Operation press_key executed successfully with key \"#{ key }\".;#{ identity };press_key;"
|
155
|
+
|
142
156
|
nil
|
143
157
|
|
144
158
|
end
|
@@ -452,6 +452,7 @@ module MobyBehaviour
|
|
452
452
|
nil
|
453
453
|
end
|
454
454
|
|
455
|
+
# == nodoc
|
455
456
|
# == description
|
456
457
|
# Starts process memory logging. Information about the given application's
|
457
458
|
# heap memory usage will be stored in a file. In addition to application,
|
@@ -505,6 +506,7 @@ module MobyBehaviour
|
|
505
506
|
status
|
506
507
|
end
|
507
508
|
|
509
|
+
# == nodoc
|
508
510
|
# == description
|
509
511
|
# Stops process memory logging. Logging of the given application's heap memory usage is stopped. Either the full log file name or the log file
|
510
512
|
# contents will be returned.\n
|
data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb
CHANGED
@@ -120,12 +120,12 @@ module MobyController
|
|
120
120
|
parameters = {'thread_name' => @_application_name,
|
121
121
|
'return_data' => @_flags[ :return_data ]}
|
122
122
|
|
123
|
-
command_xml = make_xml_message({ :service =>'resourceLogging'}, 'ProcessMemLoggingStop',
|
123
|
+
command_xml = make_xml_message({ :service =>'resourceLogging'}, 'ProcessMemLoggingStop',parameters)
|
124
124
|
|
125
125
|
# start CPU load generating
|
126
126
|
elsif @_command == :CpuLoadStart
|
127
127
|
parameters = {'cpu_load' => @_flags[ :cpu_load ]}
|
128
|
-
command_xml = make_xml_message({:service => 'resourceLogging'},'CpuLoadStart',
|
128
|
+
command_xml = make_xml_message({:service => 'resourceLogging'},'CpuLoadStart',parameters)
|
129
129
|
|
130
130
|
# stop CPU load generating
|
131
131
|
elsif @_command == :CpuLoadStop
|
data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb
CHANGED
@@ -21,10 +21,12 @@ module MobyController
|
|
21
21
|
|
22
22
|
module QT
|
23
23
|
|
24
|
-
module KeySequence
|
24
|
+
module KeySequence
|
25
25
|
|
26
26
|
def set_adapter( adapter )
|
27
|
+
|
27
28
|
@sut_adapter = adapter
|
29
|
+
|
28
30
|
end
|
29
31
|
|
30
32
|
# Execute the command(s). Iterated trough the @message_array and sends all
|
@@ -34,8 +36,13 @@ module MobyController
|
|
34
36
|
# == raises
|
35
37
|
# RuntimeError: No service request to be sent due to key sequence is empty
|
36
38
|
def execute
|
37
|
-
|
38
|
-
@sut_adapter.send_service_request(
|
39
|
+
|
40
|
+
@sut_adapter.send_service_request(
|
41
|
+
|
42
|
+
Comms::MessageGenerator.generate( make_message )
|
43
|
+
|
44
|
+
)
|
45
|
+
|
39
46
|
end
|
40
47
|
|
41
48
|
private
|
@@ -48,6 +55,7 @@ module MobyController
|
|
48
55
|
press_types = { :KeyDown => 'KeyPress', :KeyUp => 'KeyRelease' }
|
49
56
|
|
50
57
|
sut = @_sut
|
58
|
+
|
51
59
|
sequence = @sequence
|
52
60
|
|
53
61
|
message = Nokogiri::XML::Builder.new{
|
@@ -66,14 +74,17 @@ module MobyController
|
|
66
74
|
# verify that keymap is defined for sut if symbol used.
|
67
75
|
Kernel::raise ArgumentError.new("Symbol #{ key.inspect } cannot be used due to no keymap defined for #{ sut.id } in TDriver configuration file.") if key.kind_of?( Symbol ) && $parameters[ sut.id ][ :keymap ].nil?
|
68
76
|
|
77
|
+
# fetch keycode from keymap
|
78
|
+
key = TDriver::KeymapUtilities.fetch_keycode( key, $parameters[ sut.id ][ :keymap ] )
|
79
|
+
|
69
80
|
# retrieve corresponding scan code (type of string, convert to fixnum) for symbol from keymap if available
|
70
|
-
key =
|
81
|
+
key = key.hex if key.kind_of?( String )
|
71
82
|
|
72
83
|
# raise exception if value is other than fixnum
|
73
84
|
Kernel::raise ArgumentError.new( "Scan code for :%s not defined in keymap" % key ) unless key.kind_of?( Fixnum )
|
74
85
|
|
75
86
|
# determine keypress type
|
76
|
-
press_type =
|
87
|
+
press_type = press_types.fetch( key_press[ :type ], 'KeyClick' )
|
77
88
|
|
78
89
|
Command( key.to_s, "name" => press_type.to_s, "modifiers" => "0", "delay" => "0")
|
79
90
|
|
@@ -92,8 +103,8 @@ module MobyController
|
|
92
103
|
# enable hooking for performance measurement & debug logging
|
93
104
|
TDriver::Hooking.hook_methods( self ) if defined?( TDriver::Hooking )
|
94
105
|
|
95
|
-
end #
|
106
|
+
end # KeySequence
|
96
107
|
|
97
|
-
end #
|
108
|
+
end # QT
|
98
109
|
|
99
|
-
end #
|
110
|
+
end # MobyController
|
data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/message_composer.rb
CHANGED
@@ -21,7 +21,8 @@ module MobyUtil
|
|
21
21
|
|
22
22
|
module MessageComposer
|
23
23
|
|
24
|
-
def make_parametrized_message( service_details, command_name, params, command_params = {} )
|
24
|
+
def make_parametrized_message( service_details, command_name, params, command_params = {} )
|
25
|
+
service_details[:plugin_timeout] = $parameters[ @_sut.id ][ :qttas_plugin_timeout, 10000 ] if @_sut
|
25
26
|
|
26
27
|
Nokogiri::XML::Builder.new{
|
27
28
|
TasCommands( service_details ) {
|
@@ -44,6 +45,7 @@ module MobyUtil
|
|
44
45
|
end
|
45
46
|
|
46
47
|
def make_xml_message( service_details, command_name, params, command_value = nil )
|
48
|
+
service_details[:plugin_timeout] = $parameters[ @_sut.id ][ :qttas_plugin_timeout, 10000 ] if @_sut
|
47
49
|
|
48
50
|
=begin
|
49
51
|
|
@@ -79,6 +81,7 @@ module MobyUtil
|
|
79
81
|
end
|
80
82
|
|
81
83
|
def make_fixture_message(fixture_plugin, params)
|
84
|
+
service_details[:plugin_timeout] = $parameters[ @_sut.id ][ :qttas_plugin_timeout, 10000 ] if @_sut
|
82
85
|
|
83
86
|
Nokogiri::XML::Builder.new{
|
84
87
|
TasCommands( :id => params[:application_id].to_s, :service => "fixture", :async => params[:async].to_s ) {
|
@@ -169,6 +172,10 @@ module MobyUtil
|
|
169
172
|
'start_command' => @_start_command
|
170
173
|
}
|
171
174
|
|
175
|
+
#set search
|
176
|
+
search_path = $parameters[ @_sut.id ][ :app_path, nil ]
|
177
|
+
parameters[:app_path] = search_path if search_path
|
178
|
+
|
172
179
|
make_xml_message({:service => 'startApplication'}, 'Run', parameters)
|
173
180
|
end
|
174
181
|
|
data/xml/behaviour/qt.xml
CHANGED
@@ -655,6 +655,27 @@
|
|
655
655
|
</behaviour>
|
656
656
|
-->
|
657
657
|
|
658
|
+
<behaviour name="Fps" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
659
|
+
|
660
|
+
<module name="MobyBehaviour::QT::Fps" />
|
661
|
+
|
662
|
+
<methods>
|
663
|
+
<method name="start_fps_measurement">
|
664
|
+
<description>Start measurement of fps</description>
|
665
|
+
<example>start_fps_measurement</example>
|
666
|
+
</method>
|
667
|
+
<method name="stop_fps_measurement">
|
668
|
+
<description>Stop measurement of fps and return the data.</description>
|
669
|
+
<example>start_fps_measurement</example>
|
670
|
+
</method>
|
671
|
+
<method name="collect_fps_data">
|
672
|
+
<description>Returns the collected fps data.</description>
|
673
|
+
<example>collect_fps_data</example>
|
674
|
+
</method>
|
675
|
+
</methods>
|
676
|
+
|
677
|
+
</behaviour>
|
678
|
+
|
658
679
|
<behaviour name="QtInfoLoggerBehaviour" object_type="sut;application" sut_type="QT" env="qt" input_type="*" version="*">
|
659
680
|
|
660
681
|
<module name="MobyBehaviour::QT::InfoLoggerBehaviour" />
|
data/xml/template/qt.xml
CHANGED
@@ -51,10 +51,8 @@
|
|
51
51
|
<!-- tap which are longer than this will be set as long taps (tap down, wait, tap up)-->
|
52
52
|
<parameter name="record_tap_time_treshold" value="1" />
|
53
53
|
|
54
|
-
|
55
|
-
|
56
54
|
<!-- possible values none, static, dynamic -->
|
57
|
-
|
55
|
+
<parameter name="filter_type" value="dynamic"/>
|
58
56
|
|
59
57
|
<!--
|
60
58
|
Filtering settings, use them to make the xml smaller. Do not use whitelists and blacklists combined as it may cause
|
@@ -83,6 +81,8 @@
|
|
83
81
|
<fixture name="popup" plugin="popupfixture" env="qt"/>
|
84
82
|
<fixture name="tap_object" plugin="tapfixture" env="qt"/>
|
85
83
|
<fixture name="mobilitysysinfo" plugin="mobilitysysinfofixture" env="qt"/>
|
84
|
+
<fixture name="contact" plugin="contactfixture" env="qt"/>
|
85
|
+
<fixture name="launch" plugin="launchfixture" env="qt"/>
|
86
86
|
</fixtures>
|
87
87
|
</template>
|
88
88
|
|
@@ -91,6 +91,8 @@
|
|
91
91
|
<!-- Assume that QtTAS server is running at localhost:55535 -->
|
92
92
|
<parameter name="qttas_server_ip" value="127.0.0.1" />
|
93
93
|
<parameter name="qttas_server_port" value="55535" />
|
94
|
+
<!-- Timeout between plugin and qttasserver -->
|
95
|
+
<parameter name="qttas_plugin_timeout" value="10000" />
|
94
96
|
|
95
97
|
<!-- QT Server port -->
|
96
98
|
<parameter name="qt_tcp_server_port" value="1514" /> <!-- JKo: what is this?? is it actually used anywhere? -->
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testability-driver-qt-sut-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TDriver team
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-03-11 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -32,63 +32,64 @@ extra_rdoc_files: []
|
|
32
32
|
|
33
33
|
files:
|
34
34
|
- env.rb
|
35
|
-
- lib/testability-driver-qt-sut-plugin.rb
|
36
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin.rb
|
37
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
38
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
39
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
40
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb
|
41
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/find.rb
|
35
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/action.rb
|
36
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/application.rb
|
37
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/attribute.rb
|
38
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/behaviour.rb
|
39
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/configure_behaviour.rb
|
42
40
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/events.rb
|
43
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/infologger.rb
|
44
41
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/file_transfer.rb
|
45
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
46
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/widget.rb
|
47
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb
|
48
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/key_press.rb
|
49
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/sut.rb
|
50
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/type_text.rb
|
51
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/configure_behaviour.rb
|
42
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/find.rb
|
52
43
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/fixture.rb
|
53
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
54
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/application.rb
|
55
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/behaviour.rb
|
56
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/action.rb
|
44
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/fps.rb
|
57
45
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/gesture.rb
|
58
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
59
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/
|
60
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/synchronization.rb
|
46
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/infologger.rb
|
47
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/key_press.rb
|
61
48
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/locale_db.rb
|
49
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/method.rb
|
62
50
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/multitouch.rb
|
63
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
64
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
65
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
66
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
67
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
68
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
69
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
51
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/os.rb
|
52
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/qt_api_method.rb
|
53
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb
|
54
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/screen_capture.rb
|
55
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/sut.rb
|
56
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/synchronization.rb
|
57
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb
|
58
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/type_text.rb
|
59
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/view_item.rb
|
60
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/webkit.rb
|
61
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/widget.rb
|
62
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/action.rb
|
63
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/configure_command.rb
|
64
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb
|
65
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/find_object.rb
|
66
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/group.rb
|
67
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/infologger_command.rb
|
68
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/qt.rb
|
69
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb
|
70
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/widget.rb
|
71
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb
|
72
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/configure_command.rb
|
70
73
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/find_object.rb
|
74
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb
|
71
75
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/group.rb
|
76
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/infologger_command.rb
|
77
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb
|
72
78
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/screen_capture.rb
|
73
79
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/tap.rb
|
74
80
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/widget.rb
|
75
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/infologger_command.rb
|
76
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/configure_command.rb
|
77
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb
|
78
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb
|
79
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb
|
80
81
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/plugin.rb
|
81
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
82
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
83
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
84
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
85
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
86
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
87
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/
|
88
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin
|
89
|
-
- lib/testability-driver-
|
90
|
-
- xml/defaults/sut_qt.xml
|
82
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/adapter.rb
|
83
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb
|
84
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/controller.rb
|
85
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/find_object_generator.rb
|
86
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/fixture_parameter.rb
|
87
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/message_composer.rb
|
88
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/widget.rb
|
89
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin.rb
|
90
|
+
- lib/testability-driver-qt-sut-plugin.rb
|
91
91
|
- xml/behaviour/qt.xml
|
92
|
+
- xml/defaults/sut_qt.xml
|
92
93
|
- xml/keymap/qt.xml
|
93
94
|
- xml/template/qt.xml
|
94
95
|
has_rdoc: true
|