testability-driver-qt-sut-plugin 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -231,10 +231,18 @@ module MobyBehaviour
231
231
  use_tap_screen = optional_params[:use_tap_screen].nil? ? MobyUtil::Parameter[ @sut.id][ :use_tap_screen, 'false'] :
232
232
  optional_params[:use_tap_screen].to_s
233
233
  optional_params[:useTapScreen] = use_tap_screen
234
+ optional_params['x_off'] = MobyUtil::Parameter[ @sut.id ][:tap_x_offset , '0' ],
235
+ optional_params['y_off'] = MobyUtil::Parameter[ @sut.id ][:tap_y_offset , '0' ]
236
+
234
237
 
235
238
 
236
239
  #do_gesture(direction, speed, distance, isDrag, button)
237
- params = {:gesture_type => :MouseGesture, :direction => direction, :speed => speed, :distance => distance}
240
+ params = {
241
+ :gesture_type => :MouseGesture,
242
+ :direction => direction,
243
+ :speed => speed,
244
+ :distance => distance
245
+ }
238
246
  params.merge!(optional_params)
239
247
  do_gesture(params)
240
248
  do_sleep(speed)
@@ -223,7 +223,8 @@ module MobyBehaviour
223
223
  # puts "tap: " + (Time.now - tapMeasure).to_s + " s - before 2 webs"
224
224
 
225
225
  if(attribute('objectType') == 'Web')
226
- if type != "QWebFrame"
226
+ #check that type is not QWebFrame and that QWebFrame is found for object
227
+ if type != "QWebFrame" and self.attributes.key?('webFrame')
227
228
  # puts "tap: " + (Time.now - tapMeasure).to_s + " s - Not q webframe"
228
229
 
229
230
  x_absolute = (@sut.xml_data.xpath( "//object[@id='%s']/attributes/attribute[@name ='x_absolute']/value/text()" % self.attribute('webFrame') )[0]).to_s.to_i
@@ -33,7 +33,7 @@ module MobyController
33
33
  def execute
34
34
  Kernel::raise ArgumentError.new( "Fixture '%s' not found for sut id '%s'" % [ @name, @sut_adapter.sut_id ] ) if ( plugin_params = MobyUtil::Parameter[ @sut_adapter.sut_id.to_sym ][ :fixtures ][ @params[:name].to_sym, nil ] ).nil?
35
35
 
36
- fixture_plugin = plugin_params[:plugin]
36
+ fixture_plugin = plugin_params.kind_of?(String) ? plugin_params : plugin_params[:plugin]
37
37
  @sut_adapter.send_service_request(Comms::MessageGenerator.generate(make_fixture_message(fixture_plugin, @params)))
38
38
 
39
39
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testability-driver-qt-sut-plugin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
4
+ version: 1.0.1
11
5
  platform: ruby
12
6
  authors:
13
7
  - TDriver team
@@ -15,25 +9,19 @@ autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
11
 
18
- date: 2010-12-20 00:00:00 +02:00
12
+ date: 2011-01-20 00:00:00 +02:00
19
13
  default_executable:
20
14
  dependencies:
21
15
  - !ruby/object:Gem::Dependency
22
16
  name: testability-driver
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
25
- none: false
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
26
20
  requirements:
27
21
  - - ">="
28
22
  - !ruby/object:Gem::Version
29
- hash: 57
30
- segments:
31
- - 0
32
- - 8
33
- - 3
34
23
  version: 0.8.3
35
- type: :runtime
36
- version_requirements: *id001
24
+ version:
37
25
  description:
38
26
  email: testabilitydriver@nokia.com
39
27
  executables: []
@@ -45,65 +33,64 @@ extra_rdoc_files: []
45
33
  files:
46
34
  - env.rb
47
35
  - lib/testability-driver-qt-sut-plugin.rb
48
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/plugin.rb
49
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/group.rb
50
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/action.rb
51
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/find_object.rb
52
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/infologger_command.rb
53
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/configure_command.rb
54
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/widget.rb
55
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/qt.rb
56
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb
57
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb
58
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb
59
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/adapter.rb
60
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/controller.rb
61
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/infologger.rb
62
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/qt_api_method.rb
63
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/action.rb
64
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/configure_behaviour.rb
65
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/method.rb
66
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb
67
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/locale_db.rb
68
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/multitouch.rb
69
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/events.rb
36
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin.rb
70
37
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/os.rb
71
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/widget.rb
72
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/gesture.rb
73
38
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/view_item.rb
74
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/attribute.rb
75
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/type_text.rb
39
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/qt_api_method.rb
40
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb
76
41
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/find.rb
42
+ - 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
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/file_transfer.rb
77
45
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/screen_capture.rb
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
78
49
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/sut.rb
79
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/behaviour.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
80
52
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/fixture.rb
53
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/attribute.rb
81
54
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/application.rb
82
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/synchronization.rb
83
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/file_transfer.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
57
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/gesture.rb
58
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/method.rb
84
59
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/webkit.rb
85
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/key_press.rb
86
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/record.rb
60
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/synchronization.rb
61
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/locale_db.rb
62
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/multitouch.rb
63
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/communication.rb
64
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/controller.rb
65
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/sut/adapter.rb
66
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/find_object_generator.rb
87
67
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/widget.rb
88
68
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/util/fixture_parameter.rb
89
69
  - 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
91
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/group.rb
92
70
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/find_object.rb
71
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/group.rb
72
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/screen_capture.rb
73
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/tap.rb
74
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/widget.rb
93
75
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/infologger_command.rb
94
76
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/configure_command.rb
95
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/widget.rb
96
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/screen_capture.rb
97
77
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/fixture.rb
98
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb
99
78
  - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/application.rb
100
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/tap.rb
101
- - lib/testability-driver-plugins/testability-driver-qt-sut-plugin.rb
102
- - xml/template/qt.xml
103
- - xml/behaviour/qt.xml
79
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/controllers/key_sequence.rb
80
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/plugin.rb
81
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/find_object.rb
82
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/group.rb
83
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/tap.rb
84
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/widget.rb
85
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/infologger_command.rb
86
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/qt.rb
87
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/configure_command.rb
88
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/action.rb
89
+ - lib/testability-driver-plugins/testability-driver-qt-sut-plugin/commands/drag.rb
104
90
  - xml/defaults/sut_qt.xml
91
+ - xml/behaviour/qt.xml
105
92
  - xml/keymap/qt.xml
106
- - installer/extconf.rb
93
+ - xml/template/qt.xml
107
94
  has_rdoc: true
108
95
  homepage: http://gitorious.org/tdriver
109
96
  licenses: []
@@ -114,27 +101,21 @@ rdoc_options: []
114
101
  require_paths:
115
102
  - lib/testability-driver-plugins/
116
103
  required_ruby_version: !ruby/object:Gem::Requirement
117
- none: false
118
104
  requirements:
119
105
  - - ">="
120
106
  - !ruby/object:Gem::Version
121
- hash: 3
122
- segments:
123
- - 0
124
107
  version: "0"
108
+ version:
125
109
  required_rubygems_version: !ruby/object:Gem::Requirement
126
- none: false
127
110
  requirements:
128
111
  - - ">="
129
112
  - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
113
  version: "0"
114
+ version:
134
115
  requirements: []
135
116
 
136
117
  rubyforge_project:
137
- rubygems_version: 1.3.7
118
+ rubygems_version: 1.3.5
138
119
  signing_key:
139
120
  specification_version: 3
140
121
  summary: Testability Driver - Testability Driver Interface Qt SUT plugin