testability-driver 1.3.1 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. data/bin/start_app_perf +6 -6
  2. data/lib/tdriver-devtools/behaviour/xml/rdoc_behaviour_xml_generator.rb +4 -4
  3. data/lib/tdriver-devtools/doc/xslt/template.xsl +103 -21
  4. data/lib/tdriver/base/behaviour/behaviours/object_behaviour_description.rb +1 -1
  5. data/lib/tdriver/base/command_data/loader.rb +6 -2
  6. data/lib/tdriver/base/loader.rb +21 -14
  7. data/lib/tdriver/base/state_object.rb +1 -1
  8. data/lib/tdriver/base/sut/controller.rb +8 -2
  9. data/lib/tdriver/base/sut/generic/behaviours/sut.rb +103 -46
  10. data/lib/tdriver/base/sut/generic/behaviours/switchbox_behaviour.rb +2 -2
  11. data/lib/tdriver/base/sut/generic/behaviours/verification.rb +1 -1
  12. data/lib/tdriver/base/sut/generic/commands/application.rb +18 -278
  13. data/lib/tdriver/base/sut/generic/commands/key_sequence.rb +1 -1
  14. data/lib/tdriver/base/sut/sut.rb +1 -1
  15. data/lib/tdriver/base/test_object/abstract.rb +1 -1
  16. data/lib/tdriver/base/test_object/adapter.rb +4 -1
  17. data/lib/tdriver/base/test_object/behaviours/syncronization.rb +3 -3
  18. data/lib/tdriver/base/test_object/behaviours/test_object.rb +61 -24
  19. data/lib/tdriver/base/test_object/cache.rb +6 -4
  20. data/lib/tdriver/base/test_object/factory.rb +4 -2
  21. data/lib/tdriver/base/test_object/loader.rb +23 -14
  22. data/lib/tdriver/base/test_object/xml/abstraction.rb +63 -0
  23. data/lib/tdriver/base/test_object/xml/adapter.rb +4 -1
  24. data/lib/tdriver/report/report_test_run.rb +1 -1
  25. data/lib/tdriver/report/report_writer.rb +4 -3
  26. data/lib/tdriver/util/common/boolean.rb +10 -13
  27. data/lib/tdriver/util/common/environment.rb +8 -7
  28. data/lib/tdriver/util/common/hash.rb +5 -5
  29. data/lib/tdriver/util/common/numeric.rb +5 -5
  30. data/lib/tdriver/util/common/object.rb +3 -3
  31. data/lib/tdriver/util/common/retryable.rb +65 -2
  32. data/lib/tdriver/util/common/string.rb +4 -4
  33. data/lib/tdriver/util/database/access.rb +9 -11
  34. data/lib/tdriver/util/fixture/service.rb +54 -0
  35. data/lib/tdriver/util/localisation/localisation.rb +3 -2
  36. data/lib/tdriver/util/logger/logger.rb +55 -41
  37. data/lib/tdriver/util/parameter/parameter.rb +38 -7
  38. data/lib/tdriver/util/xml/abstraction.rb +8 -8
  39. data/lib/tdriver/util/xml/builder.rb +1 -1
  40. data/lib/tdriver/util/xml/xml.rb +11 -11
  41. data/lib/tdriver/verify/verify.rb +33 -36
  42. data/lib/tdriver/version.rb +1 -1
  43. data/xml/defaults/sut_generic.xml +1 -29
  44. data/xml/templates/generic.xml +28 -0
  45. metadata +48 -17
@@ -18,4 +18,4 @@
18
18
  ############################################################################
19
19
 
20
20
 
21
- ENV['TDRIVER_VERSION'] = '1.3.1'
21
+ ENV['TDRIVER_VERSION'] = '1.3.2'
@@ -1,36 +1,8 @@
1
-
2
-
3
1
  <parameters>
4
2
 
5
- <sut id="sut_generic" template="sut_generic">
3
+ <sut id="sut_generic" template="sut_generic;switchbox;flash">
6
4
  <!-- use default values -->
7
5
  <parameter name="sut_plugin" value="tdriver-generic-sut-plugin" />
8
6
  </sut>
9
7
 
10
- <template name="switchbox">
11
- <!-- switchbox control commands default is for windows environments using foobox -->
12
- <parameter name="switchbox_timeout_between_command_sequence" value="5" /> <!-- timeout in seconds between the switchbox commands -->
13
- <parameter name="switchbox_powerdown_command_sequence" value="foobox USB0|foobox -VBAT1" /> <!-- if the device is connected to other than port 1 then change accordingly -->
14
- <parameter name="switchbox_powerdown_command_success_string" value="" /> <!-- If no error then no string is displayed -->
15
- <parameter name="switchbox_powerup_command_sequence" value="foobox +VBAT1|foobox USB1" /> <!-- if the device is connected to other than port 1 then change accordingly -->
16
- <parameter name="switchbox_powerup_command_success_string" value="" /> <!-- If no error then no string is displayed -->
17
- <parameter name="switchbox_sleep_before_powerup_in_reboot" value="5" /> <!-- need to wait for a couple of seconds before powerup after powerdown -->
18
- <parameter name="switchbox_sleep_after_powerup_in_reboot" value="60" /> <!-- need to wait for the device to come up after poweup -->
19
- <parameter name="switchbox_commands_after_powerup_in_reboot" value="" /> <!-- commands you want to be executed when polling for a device during powerup -->
20
- </template>
21
- <template name="flash">
22
- <!-- flash control commands default is for windows environments using -->
23
- <parameter name="flash_attempts" value="1" /> <!-- how many times will attempt to flash the device -->
24
- <parameter name="timeout_between_command_sequence" value="25" /> <!-- timeout in seconds between the switchbox and commands before and after flash -->
25
- <parameter name="switchbox_commands_before_flash" value="" /> <!-- commands you want to be executed before flash, commands are sparated with | -->
26
- <parameter name="commands_before_flash" value="" /> <!-- flash commands for before flash, commands are sparated with | -->
27
- <parameter name="flash_command" value="" /> <!-- intial flash command for -->
28
- <parameter name="optional_parameters_after_flashing" value="/nm" /> <!-- optional flash parameters -->
29
- <parameter name="flash_images" value="/tmp/image.bin /tmp/image2.bin" /> <!-- images to flash -->
30
- <parameter name="switchbox_commands_after_failed_flash" value="" /> <!-- commands for switchbox after failed flash, commands are sparated with | -->
31
- <parameter name="commands_after_failed_flash" value="" /> <!-- commands for after failed flash, commands are sparated with | -->
32
- <parameter name="command_after_flash" value="" /> <!-- flash command for after flash, commands are sparated with | -->
33
- <parameter name="switchbox_commands_after_flash" value="" /> <!-- commands you want to be executed after flash, commands are sparated with | -->
34
- </template>
35
-
36
8
  </parameters>
@@ -186,6 +186,7 @@
186
186
  <parameter name="behaviour_logging" value="true" />
187
187
  <parameter name="realtime_status_page_update" value="false" />
188
188
  <parameter name="report_exclude_passed_cases" value="false" />
189
+ <parameter name="report_script_steps_to_details" value="false" />
189
190
 
190
191
  <parameter name="report_passed_statuses" value="passed" /> <!-- Different statuses can be separated with | -->
191
192
  <parameter name="report_failed_statuses" value="failed" /> <!-- Different statuses can be separated with | -->
@@ -260,4 +261,31 @@
260
261
 
261
262
  </template>
262
263
 
264
+ <template name="switchbox">
265
+ <!-- switchbox control commands default is for windows environments using foobox -->
266
+ <parameter name="switchbox_timeout_between_command_sequence" value="5" /> <!-- timeout in seconds between the switchbox commands -->
267
+ <parameter name="switchbox_powerdown_command_sequence" value="foobox USB0|foobox -VBAT1" /> <!-- if the device is connected to other than port 1 then change accordingly -->
268
+ <parameter name="switchbox_powerdown_command_success_string" value="" /> <!-- If no error then no string is displayed -->
269
+ <parameter name="switchbox_powerup_command_sequence" value="foobox +VBAT1|foobox USB1" /> <!-- if the device is connected to other than port 1 then change accordingly -->
270
+ <parameter name="switchbox_powerup_command_success_string" value="" /> <!-- If no error then no string is displayed -->
271
+ <parameter name="switchbox_sleep_before_powerup_in_reboot" value="5" /> <!-- need to wait for a couple of seconds before powerup after powerdown -->
272
+ <parameter name="switchbox_sleep_after_powerup_in_reboot" value="60" /> <!-- need to wait for the device to come up after poweup -->
273
+ <parameter name="switchbox_commands_after_powerup_in_reboot" value="" /> <!-- commands you want to be executed when polling for a device during powerup -->
274
+ </template>
275
+
276
+ <template name="flash">
277
+ <!-- flash control commands default is for windows environments using -->
278
+ <parameter name="flash_attempts" value="1" /> <!-- how many times will attempt to flash the device -->
279
+ <parameter name="timeout_between_command_sequence" value="25" /> <!-- timeout in seconds between the switchbox and commands before and after flash -->
280
+ <parameter name="switchbox_commands_before_flash" value="" /> <!-- commands you want to be executed before flash, commands are sparated with | -->
281
+ <parameter name="commands_before_flash" value="" /> <!-- flash commands for before flash, commands are sparated with | -->
282
+ <parameter name="flash_command" value="" /> <!-- intial flash command for -->
283
+ <parameter name="optional_parameters_after_flashing" value="/nm" /> <!-- optional flash parameters -->
284
+ <parameter name="flash_images" value="/tmp/image.bin /tmp/image2.bin" /> <!-- images to flash -->
285
+ <parameter name="switchbox_commands_after_failed_flash" value="" /> <!-- commands for switchbox after failed flash, commands are sparated with | -->
286
+ <parameter name="commands_after_failed_flash" value="" /> <!-- commands for after failed flash, commands are sparated with | -->
287
+ <parameter name="command_after_flash" value="" /> <!-- flash command for after flash, commands are sparated with | -->
288
+ <parameter name="switchbox_commands_after_flash" value="" /> <!-- commands you want to be executed after flash, commands are sparated with | -->
289
+ </template>
290
+
263
291
  </templates>
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testability-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ hash: 31
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 3
9
+ - 2
10
+ version: 1.3.2
5
11
  platform: ruby
6
12
  authors:
7
13
  - Testability Driver team
@@ -9,39 +15,57 @@ autorequire:
9
15
  bindir: bin/
10
16
  cert_chain: []
11
17
 
12
- date: 2011-09-14 00:00:00 +03:00
18
+ date: 2011-10-26 00:00:00 +03:00
13
19
  default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: log4r
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 29
30
+ segments:
31
+ - 1
32
+ - 1
33
+ - 7
23
34
  version: 1.1.7
24
- version:
35
+ type: :runtime
36
+ version_requirements: *id001
25
37
  - !ruby/object:Gem::Dependency
26
38
  name: nokogiri
27
- type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
43
  - - ">="
32
44
  - !ruby/object:Gem::Version
45
+ hash: 5
46
+ segments:
47
+ - 1
48
+ - 4
49
+ - 1
33
50
  version: 1.4.1
34
- version:
51
+ type: :runtime
52
+ version_requirements: *id002
35
53
  - !ruby/object:Gem::Dependency
36
54
  name: builder
37
- type: :runtime
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
55
+ prerelease: false
56
+ requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
40
58
  requirements:
41
59
  - - ">="
42
60
  - !ruby/object:Gem::Version
61
+ hash: 15
62
+ segments:
63
+ - 2
64
+ - 1
65
+ - 2
43
66
  version: 2.1.2
44
- version:
67
+ type: :runtime
68
+ version_requirements: *id003
45
69
  description:
46
70
  email: testabilitydriver@nokia.com
47
71
  executables:
@@ -96,6 +120,7 @@ files:
96
120
  - lib/tdriver/base/test_object/behaviours/test_object.rb
97
121
  - lib/tdriver/base/test_object/behaviours/syncronization.rb
98
122
  - lib/tdriver/base/test_object/cache.rb
123
+ - lib/tdriver/base/test_object/xml/abstraction.rb
99
124
  - lib/tdriver/base/test_object/xml/adapter.rb
100
125
  - lib/tdriver/base/test_object/factory.rb
101
126
  - lib/tdriver/base/test_object/verification.rb
@@ -285,21 +310,27 @@ rdoc_options: []
285
310
  require_paths:
286
311
  - lib/.
287
312
  required_ruby_version: !ruby/object:Gem::Requirement
313
+ none: false
288
314
  requirements:
289
315
  - - ">="
290
316
  - !ruby/object:Gem::Version
317
+ hash: 3
318
+ segments:
319
+ - 0
291
320
  version: "0"
292
- version:
293
321
  required_rubygems_version: !ruby/object:Gem::Requirement
322
+ none: false
294
323
  requirements:
295
324
  - - ">="
296
325
  - !ruby/object:Gem::Version
326
+ hash: 3
327
+ segments:
328
+ - 0
297
329
  version: "0"
298
- version:
299
330
  requirements: []
300
331
 
301
332
  rubyforge_project:
302
- rubygems_version: 1.3.5
333
+ rubygems_version: 1.3.7
303
334
  signing_key:
304
335
  specification_version: 3
305
336
  summary: Testability Driver