testability-driver-qt-sut-plugin 0.9.2 → 1.0.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 +11 -8
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/configure_behaviour.rb +3 -3
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/events.rb +76 -74
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/find.rb +2 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/fixture.rb +10 -4
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/gesture.rb +49 -42
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/infologger.rb +0 -9
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/locale_db.rb +5 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb +11 -1
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/sut.rb +441 -324
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/synchronization.rb +32 -11
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb +54 -34
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/view_item.rb +26 -26
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/webkit.rb +61 -21
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/widget.rb +528 -344
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb +16 -138
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/find_object.rb +3 -67
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb +4 -18
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/plugin.rb +1 -1
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/adapter.rb +166 -149
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb +80 -75
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/find_object_generator.rb +93 -0
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/message_composer.rb +161 -0
- data/xml/behaviour/qt.xml +26 -26
- data/xml/template/qt.xml +9 -7
- metadata +7 -6
- data/lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/fixture.rb +0 -45
data/xml/behaviour/qt.xml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<behaviours plugin="testability-driver-qt-sut-plugin">
|
4
4
|
|
5
|
-
<behaviour name="QtSut" object_type="sut" sut_type="QT" input_type="*" version="*">
|
5
|
+
<behaviour name="QtSut" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
6
6
|
|
7
7
|
<module name="MobyBehaviour::QT::SUT" />
|
8
8
|
|
@@ -86,7 +86,7 @@
|
|
86
86
|
|
87
87
|
</behaviour>
|
88
88
|
|
89
|
-
<behaviour name="QtApplication" object_type="application" sut_type="QT" input_type="*" version="*">
|
89
|
+
<behaviour name="QtApplication" object_type="application" sut_type="QT" env="qt" input_type="*" version="*">
|
90
90
|
|
91
91
|
<module name="MobyBehaviour::QT::Application" />
|
92
92
|
|
@@ -136,7 +136,7 @@
|
|
136
136
|
|
137
137
|
</behaviour>
|
138
138
|
|
139
|
-
<behaviour name="QtEvents" object_type="*;application" sut_type="QT" input_type="*" version="*">
|
139
|
+
<behaviour name="QtEvents" object_type="*;application" sut_type="QT" env="qt" input_type="*" version="*">
|
140
140
|
|
141
141
|
<module name="MobyBehaviour::QT::Events" />
|
142
142
|
|
@@ -158,7 +158,7 @@
|
|
158
158
|
</behaviour>
|
159
159
|
|
160
160
|
|
161
|
-
<behaviour name="QtRecord" object_type="application" sut_type="QT" input_type="*" version="*">
|
161
|
+
<behaviour name="QtRecord" object_type="application" sut_type="QT" env="qt" input_type="*" version="*">
|
162
162
|
|
163
163
|
<module name="MobyBehaviour::QT::Record" />
|
164
164
|
|
@@ -180,7 +180,7 @@
|
|
180
180
|
</behaviour>
|
181
181
|
|
182
182
|
|
183
|
-
<behaviour name="QtOs" object_type="sut" sut_type="QT" input_type="*" version="*">
|
183
|
+
<behaviour name="QtOs" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
184
184
|
|
185
185
|
<module name="MobyBehaviour::QT::Os" />
|
186
186
|
|
@@ -197,7 +197,7 @@
|
|
197
197
|
|
198
198
|
</behaviour>
|
199
199
|
|
200
|
-
<behaviour name="QtWidget" object_type="*" sut_type="QT" input_type="touch" version="*">
|
200
|
+
<behaviour name="QtWidget" object_type="*" sut_type="QT" env="qt" input_type="touch" version="*">
|
201
201
|
|
202
202
|
<module name="MobyBehaviour::QT::Widget" />
|
203
203
|
|
@@ -258,7 +258,7 @@
|
|
258
258
|
|
259
259
|
</behaviour>
|
260
260
|
|
261
|
-
<behaviour name="QtWebkit" object_type="*" sut_type="QT;S60QT" input_type="*" version="*">
|
261
|
+
<behaviour name="QtWebkit" object_type="*" sut_type="QT;S60QT" env="qt" input_type="*" version="*">
|
262
262
|
|
263
263
|
<module name="MobyBehaviour::QT::Webkit" />
|
264
264
|
|
@@ -280,7 +280,7 @@
|
|
280
280
|
</behaviour>
|
281
281
|
|
282
282
|
|
283
|
-
<behaviour name="QtSynchronization" object_type="*" sut_type="QT" input_type="touch" version="*">
|
283
|
+
<behaviour name="QtSynchronization" object_type="*" sut_type="QT" env="qt" input_type="touch" version="*">
|
284
284
|
|
285
285
|
<module name="MobyBehaviour::QT::Synchronization" />
|
286
286
|
|
@@ -293,7 +293,7 @@
|
|
293
293
|
|
294
294
|
</behaviour>
|
295
295
|
|
296
|
-
<behaviour name="QtFixture" object_type="sut;*" sut_type="QT" input_type="*" version="*">
|
296
|
+
<behaviour name="QtFixture" object_type="sut;*" sut_type="QT" env="qt" input_type="*" version="*">
|
297
297
|
|
298
298
|
<module name="MobyBehaviour::QT::Fixture" />
|
299
299
|
|
@@ -310,7 +310,7 @@
|
|
310
310
|
|
311
311
|
</behaviour>
|
312
312
|
|
313
|
-
<behaviour name="QtFileTransfer" object_type="sut" sut_type="QT" input_type="*" version="*">
|
313
|
+
<behaviour name="QtFileTransfer" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
314
314
|
|
315
315
|
<module name="MobyBehaviour::QT::FileTransfer" />
|
316
316
|
|
@@ -336,7 +336,7 @@
|
|
336
336
|
</behaviour>
|
337
337
|
|
338
338
|
|
339
|
-
<behaviour name="QtTypeText" object_type="*" sut_type="QT" input_type="*" version="*">
|
339
|
+
<behaviour name="QtTypeText" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
340
340
|
|
341
341
|
<module name="MobyBehaviour::QT::TypeText" />
|
342
342
|
|
@@ -349,7 +349,7 @@
|
|
349
349
|
|
350
350
|
</behaviour>
|
351
351
|
|
352
|
-
<behaviour name="QtKeyPress" object_type="*" sut_type="QT" input_type="*" version="*">
|
352
|
+
<behaviour name="QtKeyPress" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
353
353
|
|
354
354
|
<module name="MobyBehaviour::QT::KeyPress" />
|
355
355
|
|
@@ -362,7 +362,7 @@
|
|
362
362
|
|
363
363
|
</behaviour>
|
364
364
|
|
365
|
-
<behaviour name="QtAttribute" object_type="*" sut_type="QT" input_type="*" version="*">
|
365
|
+
<behaviour name="QtAttribute" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
366
366
|
|
367
367
|
<module name="MobyBehaviour::QT::Attribute" />
|
368
368
|
|
@@ -375,7 +375,7 @@
|
|
375
375
|
|
376
376
|
</behaviour>
|
377
377
|
|
378
|
-
<behaviour name="QtMethod" object_type="*" sut_type="QT" input_type="*" version="*">
|
378
|
+
<behaviour name="QtMethod" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
379
379
|
|
380
380
|
<module name="MobyBehaviour::QT::Method" />
|
381
381
|
|
@@ -388,7 +388,7 @@
|
|
388
388
|
|
389
389
|
</behaviour>
|
390
390
|
|
391
|
-
<behaviour name="QtGesture" object_type="*" sut_type="QT" input_type="touch" version="*">
|
391
|
+
<behaviour name="QtGesture" object_type="*" sut_type="QT" env="qt" input_type="touch" version="*">
|
392
392
|
|
393
393
|
<module name="MobyBehaviour::QT::Gesture" />
|
394
394
|
|
@@ -445,7 +445,7 @@
|
|
445
445
|
|
446
446
|
</behaviour>
|
447
447
|
|
448
|
-
<behaviour name="QtScreenCapture" object_type="*" sut_type="QT" input_type="*" version="*">
|
448
|
+
<behaviour name="QtScreenCapture" object_type="*" sut_type="QT" env="qt" input_type="*" version="*">
|
449
449
|
|
450
450
|
<module name="MobyBehaviour::QT::ScreenCapture" />
|
451
451
|
|
@@ -466,7 +466,7 @@
|
|
466
466
|
|
467
467
|
</behaviour>
|
468
468
|
|
469
|
-
<behaviour name="QtAction" object_type="QAction" sut_type="QT" input_type="touch" version="*">
|
469
|
+
<behaviour name="QtAction" object_type="QAction" sut_type="QT" env="qt" input_type="touch" version="*">
|
470
470
|
|
471
471
|
<module name="MobyBehaviour::QT::Action" />
|
472
472
|
|
@@ -483,7 +483,7 @@
|
|
483
483
|
|
484
484
|
</behaviour>
|
485
485
|
|
486
|
-
<behaviour name="QtFind" object_type="*" sut_type="QT" input_type="touch" version="*">
|
486
|
+
<behaviour name="QtFind" object_type="*" sut_type="QT" env="qt" input_type="touch" version="*">
|
487
487
|
|
488
488
|
<module name="MobyBehaviour::QT::Find" />
|
489
489
|
|
@@ -496,7 +496,7 @@
|
|
496
496
|
|
497
497
|
</behaviour>
|
498
498
|
|
499
|
-
<behaviour name="QtViewItem" object_type="ItemData;QTreeWidgetItem;QListWidgetItem;QTableWidgetItem" sut_type="QT" input_type="*" version="*">
|
499
|
+
<behaviour name="QtViewItem" object_type="ItemData;QTreeWidgetItem;QListWidgetItem;QTableWidgetItem" sut_type="QT" env="qt" input_type="*" version="*">
|
500
500
|
|
501
501
|
<module name="MobyBehaviour::QT::ViewItem" />
|
502
502
|
|
@@ -510,7 +510,7 @@
|
|
510
510
|
</behaviour>
|
511
511
|
|
512
512
|
|
513
|
-
<behaviour name="QtTreeWidgetItemColumn" object_type="TreeWidgetItemColumn" sut_type="QT" input_type="*" version="*">
|
513
|
+
<behaviour name="QtTreeWidgetItemColumn" object_type="TreeWidgetItemColumn" sut_type="QT" env="qt" input_type="*" version="*">
|
514
514
|
|
515
515
|
<module name="MobyBehaviour::QT::TreeWidgetItemColumn" />
|
516
516
|
|
@@ -524,7 +524,7 @@
|
|
524
524
|
</behaviour>
|
525
525
|
|
526
526
|
|
527
|
-
<behaviour name="QtConfigureBehaviour" object_type="sut;application" sut_type="QT" input_type="*" version="*">
|
527
|
+
<behaviour name="QtConfigureBehaviour" object_type="sut;application" sut_type="QT" env="qt" input_type="*" version="*">
|
528
528
|
|
529
529
|
<module name="MobyBehaviour::QT::ConfigureBehaviour" />
|
530
530
|
|
@@ -578,7 +578,7 @@
|
|
578
578
|
</behaviour>
|
579
579
|
|
580
580
|
|
581
|
-
<behaviour name="QtMultitouch" object_type="*" sut_type="QT" input_type="touch" version="*">
|
581
|
+
<behaviour name="QtMultitouch" object_type="*" sut_type="QT" env="qt" input_type="touch" version="*">
|
582
582
|
|
583
583
|
<module name="MobyBehaviour::QT::Multitouch" />
|
584
584
|
|
@@ -611,7 +611,7 @@
|
|
611
611
|
|
612
612
|
</behaviour>
|
613
613
|
|
614
|
-
<behaviour name="Switchbox" object_type="sut" sut_type="QT" input_type="*" version="*">
|
614
|
+
<behaviour name="Switchbox" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
615
615
|
|
616
616
|
<module name="MobyBehaviour::SwitchboxBehaviour" />
|
617
617
|
|
@@ -637,7 +637,7 @@
|
|
637
637
|
</behaviour>
|
638
638
|
|
639
639
|
<!--
|
640
|
-
<behaviour name="Flash" object_type="sut" sut_type="QT" input_type="*" version="*">
|
640
|
+
<behaviour name="Flash" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
641
641
|
|
642
642
|
<module name="MobyBehaviour::FlashBehaviour" />
|
643
643
|
|
@@ -655,7 +655,7 @@
|
|
655
655
|
</behaviour>
|
656
656
|
-->
|
657
657
|
|
658
|
-
<behaviour name="QtInfoLoggerBehaviour" object_type="sut;application" sut_type="QT" input_type="*" version="*">
|
658
|
+
<behaviour name="QtInfoLoggerBehaviour" object_type="sut;application" sut_type="QT" env="qt" input_type="*" version="*">
|
659
659
|
|
660
660
|
<module name="MobyBehaviour::QT::InfoLoggerBehaviour" />
|
661
661
|
|
@@ -701,7 +701,7 @@
|
|
701
701
|
</behaviour>
|
702
702
|
|
703
703
|
|
704
|
-
<behaviour name="QtLocalisationDB" object_type="sut" sut_type="QT" input_type="*" version="*">
|
704
|
+
<behaviour name="QtLocalisationDB" object_type="sut" sut_type="QT" env="qt" input_type="*" version="*">
|
705
705
|
|
706
706
|
<module name="MobyBehaviour::QT::LocalisationDB" />
|
707
707
|
|
data/xml/template/qt.xml
CHANGED
@@ -11,6 +11,7 @@
|
|
11
11
|
<parameter name="type" value="QT" /> <!-- overwrites default value -->
|
12
12
|
<parameter name="product" value="qt_windows" /> <!-- overwrites default value -->
|
13
13
|
<parameter name="version" value="200839" /> <!-- overwrites default value -->
|
14
|
+
<parameter name="env" value="qt" /> <!-- overwrites default value -->
|
14
15
|
|
15
16
|
<!-- device input type (e.g. key, touch) -->
|
16
17
|
<parameter name="input_type" value="touch" /> <!-- overwrites default value -->
|
@@ -74,13 +75,14 @@
|
|
74
75
|
|
75
76
|
<template name="qt_fixtures">
|
76
77
|
<fixtures>
|
77
|
-
<fixture name="signal" plugin="tassignal" />
|
78
|
-
<fixture name="qt" plugin="tasfixture" />
|
79
|
-
|
80
|
-
|
81
|
-
<fixture name="fps" plugin="fpsfixture" />
|
82
|
-
<fixture name="popup" plugin="popupfixture" />
|
83
|
-
<fixture name="tap_object" plugin="tapfixture" />
|
78
|
+
<fixture name="signal" plugin="tassignal" env="qt"/>
|
79
|
+
<fixture name="qt" plugin="tasfixture" env="qt"/>
|
80
|
+
<fixture name="dialog" plugin="dialogfixture" env="qt"/>
|
81
|
+
<fixture name="file" plugin="filefixture" env="qt"/>
|
82
|
+
<fixture name="fps" plugin="fpsfixture" env="qt"/>
|
83
|
+
<fixture name="popup" plugin="popupfixture" env="qt"/>
|
84
|
+
<fixture name="tap_object" plugin="tapfixture" env="qt"/>
|
85
|
+
<fixture name="mobilitysysinfo" plugin="mobilitysysinfofixture" env="qt"/>
|
84
86
|
</fixtures>
|
85
87
|
</template>
|
86
88
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: testability-driver-qt-sut-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
|
+
- 1
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
|
10
|
-
version: 0.9.2
|
9
|
+
- 0
|
10
|
+
version: 1.0.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- TDriver team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-20 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -54,7 +54,6 @@ files:
|
|
54
54
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/widget.rb
|
55
55
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/qt.rb
|
56
56
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb
|
57
|
-
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/fixture.rb
|
58
57
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb
|
59
58
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb
|
60
59
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/adapter.rb
|
@@ -87,6 +86,8 @@ files:
|
|
87
86
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb
|
88
87
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/widget.rb
|
89
88
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/fixture_parameter.rb
|
89
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/message_composer.rb
|
90
|
+
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/find_object_generator.rb
|
90
91
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/group.rb
|
91
92
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/find_object.rb
|
92
93
|
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/infologger_command.rb
|
@@ -1,45 +0,0 @@
|
|
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
|
-
|
21
|
-
|
22
|
-
module MobyCommand
|
23
|
-
|
24
|
-
class Fixture < MobyCommand::CommandData
|
25
|
-
|
26
|
-
attr_accessor :application_id, :name, :command, :params, :transitions, :object_id, :object_type, :asynchronous
|
27
|
-
|
28
|
-
def initialize(application_id = "", object_id ="" , object_type = "", name = nil, command_name = nil, parameter_hash = {}, async = false)
|
29
|
-
|
30
|
-
@application_id = application_id
|
31
|
-
|
32
|
-
@name = name
|
33
|
-
@command = command_name
|
34
|
-
@params = parameter_hash
|
35
|
-
|
36
|
-
@transitions = false
|
37
|
-
@object_id = object_id
|
38
|
-
@object_type = object_type
|
39
|
-
@asynchronous = async
|
40
|
-
|
41
|
-
end
|
42
|
-
|
43
|
-
end # Fixture
|
44
|
-
|
45
|
-
end # MobyCommand
|