testability-driver 0.9.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. data/lib/tdriver/base/behaviour/behaviours/object_behaviour_composition.rb +1 -1
  2. data/lib/tdriver/base/behaviour/behaviours/object_behaviour_description.rb +11 -7
  3. data/lib/tdriver/base/behaviour/behaviours/object_composition.rb +8 -0
  4. data/lib/tdriver/base/behaviour/factory.rb +229 -209
  5. data/lib/tdriver/base/errors.rb +3 -0
  6. data/lib/tdriver/base/state_object.rb +11 -20
  7. data/lib/tdriver/base/sut/controller.rb +4 -4
  8. data/lib/tdriver/base/sut/factory.rb +205 -170
  9. data/lib/tdriver/base/sut/generic/behaviours/application.rb +256 -174
  10. data/lib/tdriver/base/sut/generic/behaviours/find.rb +17 -11
  11. data/lib/tdriver/base/sut/generic/behaviours/flash_behaviour.rb +57 -66
  12. data/lib/tdriver/base/sut/generic/behaviours/sut.rb +578 -497
  13. data/lib/tdriver/base/sut/generic/behaviours/switchbox_behaviour.rb +41 -15
  14. data/lib/tdriver/base/sut/generic/behaviours/verification.rb +48 -19
  15. data/lib/tdriver/base/sut/generic/commands/fixture.rb +47 -0
  16. data/lib/tdriver/base/sut/generic/commands/key_sequence.rb +25 -13
  17. data/lib/tdriver/base/sut/generic/commands/screen_capture.rb +16 -10
  18. data/lib/tdriver/base/sut/generic/plugin.rb +9 -3
  19. data/lib/tdriver/base/sut/sut.rb +41 -33
  20. data/lib/tdriver/base/test_object/abstract.rb +26 -3
  21. data/lib/tdriver/base/test_object/adapter.rb +399 -0
  22. data/lib/tdriver/base/test_object/behaviours/syncronization.rb +56 -14
  23. data/lib/tdriver/base/test_object/behaviours/test_object.rb +663 -197
  24. data/lib/tdriver/base/test_object/cache.rb +132 -0
  25. data/lib/tdriver/base/test_object/factory.rb +677 -426
  26. data/lib/tdriver/base/test_object/factory_new.rb +202 -0
  27. data/lib/tdriver/base/test_object/identificator.rb +24 -17
  28. data/lib/tdriver/base/test_object/loader.rb +9 -3
  29. data/lib/tdriver/base/test_object/verification.rb +181 -0
  30. data/lib/tdriver/loader.rb +1 -1
  31. data/lib/tdriver/report/report.rb +2 -0
  32. data/lib/tdriver/report/report_api.rb +4 -4
  33. data/lib/tdriver/report/report_creator.rb +29 -3
  34. data/lib/tdriver/report/report_data_presentation.rb +7 -3
  35. data/lib/tdriver/report/report_execution_statistics.rb +80 -21
  36. data/lib/tdriver/report/report_javascript.rb +192 -0
  37. data/lib/tdriver/report/report_test_case_run.rb +22 -0
  38. data/lib/tdriver/report/report_test_run.rb +62 -55
  39. data/lib/tdriver/report/report_writer.rb +57 -56
  40. data/lib/tdriver/tdriver.rb +14 -41
  41. data/lib/tdriver/util/common/error.rb +1 -0
  42. data/lib/tdriver/util/common/exceptions.rb +12 -0
  43. data/lib/tdriver/util/common/file.rb +12 -6
  44. data/lib/tdriver/util/common/gem.rb +2 -1
  45. data/lib/tdriver/util/common/hash.rb +152 -0
  46. data/lib/tdriver/util/common/kernel.rb +49 -34
  47. data/lib/tdriver/util/common/loader.rb +21 -17
  48. data/lib/tdriver/util/common/numeric.rb +39 -0
  49. data/lib/tdriver/util/common/object.rb +115 -0
  50. data/lib/tdriver/util/common/string.rb +55 -2
  51. data/lib/tdriver/util/dbaccess/dbaccess.rb +194 -161
  52. data/lib/tdriver/util/dynamic_attribute_filter.rb +6 -0
  53. data/lib/tdriver/util/hooking.rb +2 -2
  54. data/lib/tdriver/util/loader.rb +2 -2
  55. data/lib/tdriver/util/localisation/localisation.rb +277 -18
  56. data/lib/tdriver/util/logger.rb +142 -13
  57. data/lib/tdriver/util/parameter/parameter_hash.rb +8 -5
  58. data/lib/tdriver/util/parameter/parameter_xml.rb +18 -2
  59. data/lib/tdriver/util/recorder.rb +17 -12
  60. data/lib/tdriver/util/user_data/user_data.rb +3 -2
  61. data/lib/tdriver/util/{video_rec.rb → video_utils.rb} +136 -16
  62. data/lib/tdriver/util/xml/abstraction.rb +7 -0
  63. data/lib/tdriver/util/xml/attribute.rb +32 -0
  64. data/lib/tdriver/util/xml/loader.rb +8 -2
  65. data/lib/tdriver/util/xml/nil_node.rb +95 -0
  66. data/lib/tdriver/util/xml/parsers/nokogiri/abstraction.rb +46 -7
  67. data/lib/tdriver/util/xml/parsers/nokogiri/attribute.rb +19 -9
  68. data/lib/tdriver/util/xml/parsers/nokogiri/document.rb +1 -1
  69. data/lib/tdriver/util/xml/parsers/nokogiri/element.rb +13 -1
  70. data/lib/tdriver/util/xml/parsers/nokogiri/loader.rb +6 -0
  71. data/lib/tdriver/util/xml/parsers/nokogiri/nodeset.rb +27 -15
  72. data/lib/tdriver/util/xml/parsers/nokogiri/text.rb +57 -0
  73. data/lib/tdriver/util/xml/text.rb +32 -0
  74. data/lib/tdriver/util/xml/xml.rb +35 -22
  75. data/lib/tdriver/version.rb +1 -1
  76. data/lib/tdriver-devtools/behaviour/xml/rdoc_behaviour_xml_generator.rb +41 -34
  77. data/lib/tdriver-devtools/doc/generate.rb +31 -6
  78. data/lib/tdriver-devtools/doc/xslt/template.xsl +46 -25
  79. data/lib/tdriver-devtools/tests/feature_tests/example/behaviour_example.rb +100 -0
  80. data/lib/tdriver-devtools/tests/feature_tests/update +1 -1
  81. data/lib/tdriver.rb +0 -3
  82. data/xml/behaviours/generic.xml +1 -1
  83. data/xml/defaults/generic.xml +4 -90
  84. data/xml/templates/generic.xml +33 -25
  85. metadata +21 -29
  86. data/lib/tdriver-devtools/behaviour/xml_generator/example/flick-example.rb +0 -245
  87. data/lib/tdriver-devtools/behaviour/xml_generator/example/sut.rb +0 -964
  88. data/lib/tdriver-devtools/behaviour/xml_generator/generate.rb +0 -68
  89. data/lib/tdriver-devtools/behaviour/xml_generator/lib/custom_rdoc_generator.rb +0 -1865
  90. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.default.template +0 -1
  91. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.template +0 -3
  92. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument_type.template +0 -4
  93. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.exception.template +0 -4
  94. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.arguments.template +0 -4
  95. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.deprecated.template +0 -3
  96. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.exceptions.template +0 -3
  97. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.info.template +0 -1
  98. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.returns.template +0 -3
  99. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.tables.template +0 -3
  100. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.template +0 -12
  101. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.returns.template +0 -5
  102. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.item.template +0 -1
  103. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.row.template +0 -2
  104. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.template +0 -7
  105. data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.template +0 -14
  106. data/lib/tdriver-devtools/behaviour/xml_generator/update +0 -3
  107. data/lib/tdriver-devtools/tests/feature_tests/example/flick-example.rb +0 -233
  108. data/lib/tdriver-devtools/tests/feature_tests/example/impl.rb +0 -194
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env sh
2
2
  rm -rf output
3
- ruby generate.rb example/flick-example.rb
3
+ ruby generate.rb example/behaviour_example.rb
data/lib/tdriver.rb CHANGED
@@ -17,9 +17,6 @@
17
17
  ##
18
18
  ############################################################################
19
19
 
20
-
21
-
22
-
23
20
  # load tdriver resources and framework
24
21
  require File.expand_path( File.join( File.dirname( __FILE__ ), 'tdriver/env' ) )
25
22
  require File.expand_path( File.join( File.dirname( __FILE__ ), 'tdriver/version' ) )
@@ -453,7 +453,7 @@
453
453
 
454
454
  </behaviour>
455
455
 
456
- <behaviour name="GenericVerification" object_type="*;sut" sut_type="*" input_type="*" version="*">
456
+ <behaviour name="GenericVerification" object_type="*" sut_type="*" input_type="*" version="*">
457
457
 
458
458
  <module name="MobyBehaviour::Verification" />
459
459
 
@@ -1,97 +1,11 @@
1
-
2
-
3
1
  <parameters>
4
2
 
5
- <!-- orbit test application path -->
6
- <parameter name="app_path" value="" />
7
-
8
- <!-- default behaviours file -->
9
- <parameter name="behaviours" value="behaviours.xml" />
10
-
11
- <!--default timeout for verify if called without timeout or with nil -->
12
- <parameter name="synchronization_timeout" value="10" />
13
-
14
- <!-- default parameters for dbaccess server settings -->
15
- <parameter name="localisation_db_type" value="mysql" />
16
- <parameter name="localisation_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
17
- <parameter name="localisation_server_username" value="root" /> <!--valid only for mysql! -->
18
- <parameter name="localisation_server_password" value="" /> <!--valid only for mysql! -->
19
- <parameter name="localisation_server_database_name" value="default_tdriver_db" /> <!--path to the file for sqlite -->
20
-
21
- <parameter name="user_data_db_type" value="mysql" />
22
- <parameter name="user_data_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
23
- <parameter name="user_data_server_username" value="root" /> <!--valid only for mysql! -->
24
- <parameter name="user_data_server_password" value="" /> <!--valid only for mysql! -->
25
- <parameter name="user_data_server_database_name" value="default_tdriver_db" /> <!--path to the file for sqlite -->
26
-
27
- <parameter name="operator_data_db_type" value="sqlite" />
28
- <parameter name="operator_data_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
29
- <parameter name="operator_data_server_username" value="root" /> <!--valid only for mysql! -->
30
- <parameter name="operator_data_server_password" value="" /> <!--valid only for mysql! -->
31
- <parameter name="operator_data_server_database_name" value="c:\operator_data.sqlite" /> <!--path to the file for sqlite -->
32
-
33
-
34
- <!-- Logging levels:
35
- 0 = DISABLED No logging done (default)
36
- 1 = DEBUG Debug level logging
37
- 2 = BEHAVIOUR Behaviour logging enabled (including all levels below)
38
- 2 = INFO All levels below (suitable for most cases)
39
- 3 = WARNING Warnings and all errors (not implemented)
40
- 4 = ERROR All errors (not implemented)
41
- 5 = FATAL Only fatal errors (not implemented)
42
- -->
43
-
44
- <parameter name="logging_level" value="0" />
45
- <parameter name="logging_outputter_enabled" value="false" />
46
- <parameter name="logging_outputter_path" value="logfiles/" />
47
- <parameter name="logging_outputter_unique_filename" value="false" />
48
- <parameter name="logging_outputter_append" value="false" />
49
- <parameter name="logging_include_behaviour_info" value="false" />
50
-
51
- <!-- pattern macros: %d date, %c log name, %l log level, %M text -->
52
- <parameter name="logging_outputter_pattern" value="%d [%c] [%l] %M" />
53
-
54
- <!-- Parameters for report crash file monitoring -->
55
- <parameter name="report_crash_file_monitor" value="false" />
56
- <parameter name="report_crash_file_monitored_sut_ids" value="s60,qt_sut" />
57
- <parameter name="report_crash_file_locations" value="C:,c:\data,E:,F:" />
58
- <parameter name="report_crash_file_names" value="MobileCrash" />
59
- <parameter name="report_disconnect_connected_devices" value="false" />
60
-
61
- <!-- Parameters for report details -->
62
- <parameter name="report_outputter_path" value="tdriver_reports/" />
63
- <parameter name="behaviour_logging" value="true" />
64
- <parameter name="realtime_status_page_update" value="false" />
65
- <parameter name="report_passed_statuses" value="passed" /> <!-- Different statuses can be separated with | -->
66
- <parameter name="report_failed_statuses" value="failed" /> <!-- Different statuses can be separated with | -->
67
- <parameter name="report_not_run_statuses" value="not run" /> <!-- Different statuses can be separated with | -->
68
- <parameter name="report_editable" value="false" /> <!-- Set to true to make report editable -->
69
- <parameter name="report_trace_capture" value="false" /> <!-- capture traces to test case -->
70
- <parameter name="report_trace_folder" value="C:/my_trace_folder/" /> <!-- Folder that contains the trace files that are attached to test case -->
71
- <parameter name="report_trace_capture_only_in_failed_case" value="true" /> <!-- capture trace files only when test case fails -->
72
- <parameter name="report_monitor_memory" value="false" /> <!-- monitor memory consumption in test cases if set to true -->
73
- <parameter name="report_collect_environment_data_from_sut" value="false" /> <!-- collect enviroment data from sut -->
74
-
75
- <!-- Parameters for generic file capturing -->
76
- <parameter name="report_file_monitor" value="false" />
77
- <parameter name="report_file_monitored_sut_ids" value="sut_s60_qt,qt_sut" />
78
- <parameter name="report_file_locations" value="C:\logs,E:\logs" />
79
- <parameter name="report_file_names" value="*.log" />
80
- <parameter name="report_clean_files_from_sut_after_capture" value="true" />
81
- <parameter name="report_fail_test_if_files_found" value="true" />
3
+ <!-- NOTICE:
82
4
 
83
-
84
- <!-- Parameters for error recovery situations -->
85
- <parameter name="error_recovery_enabled" value="false" />
86
- <parameter name="ats4_error_recovery_enabled" value="false" />
87
- <parameter name="wait_time_for_ats4_error_recovery" value="60" />
88
- <parameter name="error_recovery_monitored_sut_ids" value="s60" />
5
+ Values defined in this file overwrites ALL EXISTING parameters set in templates.
89
6
 
90
- <!-- Parameters for pinging the connection -->
91
- <parameter name="ping_connection" value="true" />
7
+ If default value of parameter needs to be changed permanently please modify template file, not this one.
92
8
 
93
- <!-- Parameters for reconnect attempts -->
94
- <parameter name="reconnect_device" value="true" />
95
- <parameter name="reconnect_attempts" value="1" />
9
+ -->
96
10
 
97
11
  </parameters>
@@ -4,10 +4,9 @@
4
4
  <version>0.1</version>
5
5
 
6
6
  <!--
7
-
8
- *** DO NOT MODIFY THIS FILE - Use TDriver parameters XML to configure your environment ***
9
7
 
10
8
  Notice:
9
+ *** DO NOT MODIFY THIS FILE - Use TDriver parameters XML to configure your environment ***
11
10
 
12
11
  Due to this file will be updated by TDriver development team, please use TDriver parameters XML file instead.
13
12
  See TDriver parameters example XML (../tdriver_parameters.xml) for how to configure TDriver using templates.
@@ -17,12 +16,15 @@
17
16
  <!-- this template will be loaded automatically as global parameters; usage example: value = MobyUtil::Parameter[:app_path] -->
18
17
  <template name="global" inherits="logging;dbaccess;reporting">
19
18
 
20
- <!-- orbit test application path -->
19
+ <!-- test application path -->
21
20
  <parameter name="app_path" value="" />
22
21
 
23
22
  <!-- default behaviours file -->
24
23
  <parameter name="behaviours" value="behaviours.xml" />
25
-
24
+
25
+ <!-- synchronization timeout for verify when used as a global method -->
26
+ <parameter name="synchronization_timeout" value="10" />
27
+
26
28
  </template>
27
29
 
28
30
  <!-- default values for each SUT. Usage example: value = MobyUtil::Parameter[sut_id][:type]-->
@@ -30,18 +32,19 @@
30
32
 
31
33
  <parameter name="type" value="" />
32
34
  <parameter name="product" value="" />
35
+ <parameter name="env" value="" />
33
36
 
34
37
  <parameter name="version" value="0" />
35
38
  <parameter name="language" value="English-GB" />
36
39
  <parameter name="read_lang_from_app" value="false" />
37
-
38
- <!-- default dbaccess sut-specific values -->
39
- <parameter name="localisation_server_database_tablename" value="default_localization_tablename" />
40
+
41
+ <!-- default dbaccess sut-specific values -->
42
+ <parameter name="localisation_server_database_tablename" value="default_localization_tablename" />
40
43
  <parameter name="user_data_server_database_tablename" value="default_userinputs_tablename" />
41
44
  <parameter name="operator_data_server_database_tablename" value="default_operatorimputs_tablename" />
42
45
  <parameter name="operator_selected" value="orange" /> <!-- vodafone, etc... -->
43
46
 
44
- <!-- default sut specific localisation table name -->
47
+ <!-- default sut specific localisation table name -->
45
48
  <parameter name="localisation_server_database_tablename" value="TB10_1_week16_loc" />
46
49
 
47
50
  <!-- default device input type (e.g. key, touch) -->
@@ -74,8 +77,7 @@
74
77
 
75
78
  <parameter name="verify_blocks" value="" />
76
79
 
77
- <parameter name="use_find_object" value="false" />
78
-
80
+ <parameter name="use_find_object" value="false" />
79
81
 
80
82
  </template>
81
83
 
@@ -88,20 +90,20 @@
88
90
  <parameter name="localisation_server_username" value="root" /> <!--valid only for mysql! -->
89
91
  <parameter name="localisation_server_password" value="" /> <!--valid only for mysql! -->
90
92
  <parameter name="localisation_server_database_name" value="default_tdriver_db" /> <!--path to the file for sqlite -->
91
-
92
- <!-- default parameters for user data settings -->
93
+
94
+ <!-- default parameters for user data settings -->
93
95
  <parameter name="user_data_db_type" value="mysql" />
94
96
  <parameter name="user_data_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
95
97
  <parameter name="user_data_server_username" value="root" /> <!--valid only for mysql! -->
96
98
  <parameter name="user_data_server_password" value="" /> <!--valid only for mysql! -->
97
99
  <parameter name="user_data_server_database_name" value="default_tdriver_db" /> <!--path to the file for sqlite -->
98
100
 
99
- <!-- default parameters for operator data settings -->
100
- <parameter name="operator_data_db_type" value="sqlite" />
101
- <parameter name="operator_data_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
102
- <parameter name="operator_data_server_username" value="root" /> <!--valid only for mysql! -->
103
- <parameter name="operator_data_server_password" value="" /> <!--valid only for mysql! -->
104
- <parameter name="operator_data_server_database_name" value="c:\operator_data.sqlite" /> <!--path to the file for sqlite -->
101
+ <!-- default parameters for operator data settings -->
102
+ <parameter name="operator_data_db_type" value="sqlite" />
103
+ <parameter name="operator_data_server_ip" value="127.0.0.1" /> <!--valid only for mysql! -->
104
+ <parameter name="operator_data_server_username" value="root" /> <!--valid only for mysql! -->
105
+ <parameter name="operator_data_server_password" value="" /> <!--valid only for mysql! -->
106
+ <parameter name="operator_data_server_database_name" value="c:\operator_data.sqlite" /> <!--path to the file for sqlite --> <!-- posix="..." -->
105
107
 
106
108
  </template>
107
109
 
@@ -112,7 +114,7 @@
112
114
 
113
115
  Logging levels:
114
116
  0 = DISABLED No logging done (default)
115
- 1 = DEBUG Debug level logging
117
+ 1 = DEBUG Debug level logging
116
118
  2 = BEHAVIOUR Behaviour logging enabled (including all levels below)
117
119
  2 = INFO All levels below (suitable for most cases)
118
120
  3 = WARNING Warnings and all errors (not implemented)
@@ -124,7 +126,10 @@
124
126
  <parameter name="logging_level" value="0" />
125
127
 
126
128
  <parameter name="logging_outputter_enabled" value="false" />
127
- <parameter name="logging_outputter_path" value="logfiles/" />
129
+
130
+ <!-- default path: /logs/testability/tdriver, windows: logfiles/ under TDriver home folder -->
131
+ <parameter name="logging_outputter_path" value="/logs/testability/tdriver" windows="logfiles/" />
132
+
128
133
  <parameter name="logging_outputter_unique_filename" value="false" />
129
134
  <parameter name="logging_outputter_append" value="false" />
130
135
 
@@ -142,7 +147,7 @@
142
147
  <parameter name="logging_xml_parse_error_dump" value="true" />
143
148
 
144
149
  <!-- where to store errorneous xml dump -->
145
- <parameter name="logging_xml_parse_error_dump_path" value="logfiles/" />
150
+ <parameter name="logging_xml_parse_error_dump_path" value="/logs/testability/tdriver" windows="logfiles/" />
146
151
 
147
152
  <!-- use static or unique filename for xml dump -->
148
153
  <parameter name="logging_xml_parse_error_dump_overwrite" value="false" />
@@ -155,14 +160,14 @@
155
160
  <!-- Parameters for report crash file monitoring -->
156
161
  <parameter name="report_crash_file_monitor" value="false" />
157
162
  <parameter name="report_crash_file_monitored_sut_ids" value="s60,qt_sut" />
158
- <parameter name="report_crash_file_locations" value="C:,c:\data,E:,F:" />
163
+ <parameter name="report_crash_file_locations" value="C:,c:\data,E:,F:" /> <!-- posix="..." -->
159
164
  <parameter name="report_crash_file_names" value="MobileCrash" />
160
165
  <parameter name="report_disconnect_connected_devices" value="false" />
161
166
 
162
167
  <!-- Parameters for report details -->
163
168
  <parameter name="report_outputter_path" value="tdriver_reports/" />
164
169
  <parameter name="behaviour_logging" value="true" />
165
- <parameter name="realtime_status_page_update" value="true" />
170
+ <parameter name="realtime_status_page_update" value="false" />
166
171
 
167
172
  <parameter name="report_passed_statuses" value="passed" /> <!-- Different statuses can be separated with | -->
168
173
  <parameter name="report_failed_statuses" value="failed" /> <!-- Different statuses can be separated with | -->
@@ -170,13 +175,16 @@
170
175
  <parameter name="report_editable" value="false" /> <!-- Set to true to make report editable -->
171
176
 
172
177
  <parameter name="report_trace_capture" value="false" /> <!-- capture traces to test case -->
173
- <parameter name="report_trace_folder" value="C:/my_trace_folder/" /> <!-- Folder that contains the trace files that are attached to test case -->
178
+ <parameter name="report_trace_folder" value="C:/my_trace_folder/" /> <!-- Folder that contains the trace files that are attached to test case --> <!-- posix="..." -->
174
179
  <parameter name="report_trace_capture_only_in_failed_case" value="true" /> <!-- capture trace files only when test case fails -->
175
180
 
181
+ <parameter name="report_monitor_memory" value="false" /> <!-- monitor memory consumption in test cases if set to true -->
182
+ <parameter name="report_collect_environment_data_from_sut" value="false" /> <!-- collect enviroment data from sut -->
183
+
176
184
  <!-- Parameters for generic file capturing -->
177
185
  <parameter name="report_file_monitor" value="false" />
178
186
  <parameter name="report_file_monitored_sut_ids" value="sut_s60_qt,qt_sut" />
179
- <parameter name="report_file_locations" value="C:\logs,E:\logs" />
187
+ <parameter name="report_file_locations" value="C:\logs,E:\logs" /> <!-- posix="..." -->
180
188
  <parameter name="report_file_names" value="*.log" />
181
189
  <parameter name="report_clean_files_from_sut_after_capture" value="true" />
182
190
  <parameter name="report_fail_test_if_files_found" value="true" />
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testability-driver
3
3
  version: !ruby/object:Gem::Version
4
- hash: 63
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
+ - 1
7
8
  - 0
8
- - 9
9
- - 2
10
- version: 0.9.2
9
+ - 0
10
+ version: 1.0.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Testability Driver team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin/
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-02 00:00:00 +02:00
18
+ date: 2010-12-20 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -97,6 +97,7 @@ files:
97
97
  - lib/tdriver/base/sut/sut.rb
98
98
  - lib/tdriver/base/sut/generic/plugin.rb
99
99
  - lib/tdriver/base/sut/generic/commands/screen_capture.rb
100
+ - lib/tdriver/base/sut/generic/commands/fixture.rb
100
101
  - lib/tdriver/base/sut/generic/commands/key_sequence.rb
101
102
  - lib/tdriver/base/sut/generic/commands/application.rb
102
103
  - lib/tdriver/base/sut/generic/behaviours/switchbox_behaviour.rb
@@ -109,12 +110,16 @@ files:
109
110
  - lib/tdriver/base/sut/factory.rb
110
111
  - lib/tdriver/base/sut/loader.rb
111
112
  - lib/tdriver/base/state_object.rb
113
+ - lib/tdriver/base/test_object/verification.rb
112
114
  - lib/tdriver/base/test_object/abstract.rb
115
+ - lib/tdriver/base/test_object/adapter.rb
113
116
  - lib/tdriver/base/test_object/behaviours/test_object.rb
114
117
  - lib/tdriver/base/test_object/behaviours/syncronization.rb
118
+ - lib/tdriver/base/test_object/cache.rb
115
119
  - lib/tdriver/base/test_object/identificator.rb
116
120
  - lib/tdriver/base/test_object/factory.rb
117
121
  - lib/tdriver/base/test_object/loader.rb
122
+ - lib/tdriver/base/test_object/factory_new.rb
118
123
  - lib/tdriver/base/errors.rb
119
124
  - lib/tdriver/base/loader.rb
120
125
  - lib/tdriver/verify/verify.rb
@@ -137,6 +142,7 @@ files:
137
142
  - lib/tdriver/report/error_recovery/tdriver_error_recovery.rb
138
143
  - lib/tdriver/report/error_recovery/tdriver_error_recovery_settings.rb
139
144
  - lib/tdriver/report/error_recovery/tdriver_custom_error_recovery.rb
145
+ - lib/tdriver/report/report_javascript.rb
140
146
  - lib/tdriver/report/report_data_table.rb
141
147
  - lib/tdriver/report/report_cucumber_listener.rb
142
148
  - lib/tdriver/report/report_creator.rb
@@ -160,15 +166,20 @@ files:
160
166
  - lib/tdriver/util/plugin/error.rb
161
167
  - lib/tdriver/util/plugin/loader.rb
162
168
  - lib/tdriver/util/common.rb
169
+ - lib/tdriver/util/video_utils.rb
163
170
  - lib/tdriver/util/recorder.rb
164
171
  - lib/tdriver/util/logger.rb
172
+ - lib/tdriver/util/xml/text.rb
173
+ - lib/tdriver/util/xml/nil_node.rb
165
174
  - lib/tdriver/util/xml/builder.rb
166
175
  - lib/tdriver/util/xml/nodeset.rb
176
+ - lib/tdriver/util/xml/attribute.rb
167
177
  - lib/tdriver/util/xml/document.rb
168
178
  - lib/tdriver/util/xml/xml.rb
169
179
  - lib/tdriver/util/xml/nil_element.rb
170
180
  - lib/tdriver/util/xml/error.rb
171
181
  - lib/tdriver/util/xml/parsers/libxml/libxml.rb
182
+ - lib/tdriver/util/xml/parsers/nokogiri/text.rb
172
183
  - lib/tdriver/util/xml/parsers/nokogiri/builder.rb
173
184
  - lib/tdriver/util/xml/parsers/nokogiri/nodeset.rb
174
185
  - lib/tdriver/util/xml/parsers/nokogiri/attribute.rb
@@ -185,15 +196,18 @@ files:
185
196
  - lib/tdriver/util/localisation/loader.rb
186
197
  - lib/tdriver/util/common/gem.rb
187
198
  - lib/tdriver/util/common/retryable.rb
199
+ - lib/tdriver/util/common/hash.rb
188
200
  - lib/tdriver/util/common/file.rb
201
+ - lib/tdriver/util/common/numeric.rb
189
202
  - lib/tdriver/util/common/kernel.rb
190
203
  - lib/tdriver/util/common/array.rb
204
+ - lib/tdriver/util/common/object.rb
191
205
  - lib/tdriver/util/common/environment.rb
192
206
  - lib/tdriver/util/common/crc16.rb
207
+ - lib/tdriver/util/common/exceptions.rb
193
208
  - lib/tdriver/util/common/error.rb
194
209
  - lib/tdriver/util/common/loader.rb
195
210
  - lib/tdriver/util/common/string.rb
196
- - lib/tdriver/util/video_rec.rb
197
211
  - lib/tdriver/util/operator_data/error.rb
198
212
  - lib/tdriver/util/operator_data/operator_data.rb
199
213
  - lib/tdriver/util/operator_data/loader.rb
@@ -211,8 +225,7 @@ files:
211
225
  - lib/tdriver-devtools/tests/feature_tests/templates/feature_attribute.template
212
226
  - lib/tdriver-devtools/tests/feature_tests/templates/scenario_method.template
213
227
  - lib/tdriver-devtools/tests/feature_tests/templates/feature_method.template
214
- - lib/tdriver-devtools/tests/feature_tests/example/impl.rb
215
- - lib/tdriver-devtools/tests/feature_tests/example/flick-example.rb
228
+ - lib/tdriver-devtools/tests/feature_tests/example/behaviour_example.rb
216
229
  - lib/tdriver-devtools/plugin/placeholder.txt
217
230
  - lib/tdriver-devtools/tdriver-devtools.rb
218
231
  - lib/tdriver-devtools/behaviour/xml/rdoc_behaviour_xml_generator.rb
@@ -248,27 +261,6 @@ files:
248
261
  - lib/tdriver-devtools/behaviour/old/xml/qdoc_generator.rb
249
262
  - lib/tdriver-devtools/behaviour/old/xml/example/flick-example.rb
250
263
  - lib/tdriver-devtools/behaviour/old/xml/example/impl.rb_invalid
251
- - lib/tdriver-devtools/behaviour/xml_generator/lib/custom_rdoc_generator.rb
252
- - lib/tdriver-devtools/behaviour/xml_generator/update
253
- - lib/tdriver-devtools/behaviour/xml_generator/generate.rb
254
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.returns.template
255
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.template
256
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.template
257
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.exceptions.template
258
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.template
259
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.deprecated.template
260
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.row.template
261
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.default.template
262
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.item.template
263
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.template
264
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.tables.template
265
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.info.template
266
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.exception.template
267
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.arguments.template
268
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument_type.template
269
- - lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.returns.template
270
- - lib/tdriver-devtools/behaviour/xml_generator/example/flick-example.rb
271
- - lib/tdriver-devtools/behaviour/xml_generator/example/sut.rb
272
264
  - lib/tdriver-devtools/doc/behaviour_xml/QtExampleGestureBehaviour.xml
273
265
  - lib/tdriver-devtools/doc/behaviour_xml/created.rid
274
266
  - lib/tdriver-devtools/doc/behaviour_xml/tdriver.hash
@@ -1,245 +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
- module MobyBehaviour
21
-
22
- module QT
23
-
24
- # == description
25
- # This module contains demonstration implementation containing tags for documentation generation using gesture as an example
26
- #
27
- # == behaviour
28
- # QtExampleGestureBehaviour
29
- #
30
- # == requires
31
- # *
32
- # == input_type
33
- # touch
34
- #
35
- # == sut_type
36
- # qt
37
- #
38
- # == sut_version
39
- # *
40
- #
41
- # == objects
42
- # *;sut
43
- #
44
- module Gesture
45
-
46
- # == description
47
- # example desc
48
- #
49
- # == returns
50
- # String
51
- # description: Return value type
52
- # example: "World"
53
- # == arguments
54
- # value
55
- # Integer
56
- # description: Example argument1
57
- # example: 10
58
- attr_accessor :z
59
-
60
- # == description
61
- # Cause a flick operation on the screen.
62
- #
63
- # == arguments
64
- # direction
65
- # Integer
66
- # description: Example argument1
67
- # example: 10
68
- # Hash
69
- # description:
70
- # Example argument 1 type 2
71
- # example: { :optional_1 => "value_1", :optional_2 => "value_2" }
72
- #
73
- # button
74
- # Symbol
75
- # description: which button to use
76
- # example: :Right
77
- # xdefault: :Left_OVERRIDE
78
- #
79
- # optional_params
80
- # String
81
- # description: optinal parameters for blaa blaa blaa
82
- # example: {:a => 1, :b => 2}
83
- #
84
- # == returns
85
- # String
86
- # description: Return value type
87
- # example: "World"
88
- #
89
- # == exceptions
90
- # RuntimeError
91
- # description: example exception
92
- #
93
- # ArgumentError
94
- # description: example exception
95
- #
96
- # == tables
97
- # custom1
98
- # title: Custom table1
99
- # |hdr1|hrd2|hrd2|
100
- # |1.1|1.2|1.3|
101
- # |2.1|2.2|2.3|
102
- #
103
- # custom2
104
- # title: Custom table2
105
- # |id|value|
106
- # |0|true|
107
- # |1|false|
108
- # == info
109
- # See method X, table at Y
110
- #
111
- def flick( direction, button = :Left, optional_params = {} )
112
- begin
113
- nil
114
- end
115
-
116
- # == description
117
- # Wrapper function to return translated string for this SUT to read the values from localisation database.
118
- #
119
- # == arguments
120
- # logical_name
121
- # String
122
- # description: Logical name (LNAME) of the item to be translated.
123
- # example: "txt_button_ok"
124
- # Symbol
125
- # description: Symbol form of the logical name (LNAME) of the item to be translated.
126
- # example: :txt_button_ok
127
- #
128
- # file_name
129
- # String
130
- # description: Optional FNAME search argument for the translation
131
- # example: "agenda"
132
- #
133
- # plurality
134
- # String
135
- # description: Optional PLURALITY search argument for the translation
136
- # example: "a" or "singular"
137
- #
138
- # numerus
139
- # String
140
- # description: Optional numeral replacement of '%Ln' tags on translation strings
141
- # example: "1"
142
- # default: "XXYYZZ"
143
- # Integer
144
- # description: Optional numeral replacement of '%Ln' tags on translation strings
145
- # example: 1
146
- #
147
- # lengthvariant
148
- # String
149
- # description: Optional LENGTHVAR search argument for the translation (1-9)
150
- # example: "1"
151
- #
152
- # == returns
153
- # String
154
- # description: Translation matching the logical_name
155
- # example: "Ok"
156
- # Array
157
- # description: If multiple translations have been found for the search conditions an Array with all Strings be returned
158
- # example: ["Ok", "OK"]
159
- #
160
- # == exceptions
161
- # LanguageNotFoundError
162
- # description: In case language is not found
163
- #
164
- # LogicalNameNotFoundError
165
- # description: In case no logical name is not found for current language
166
- #
167
- # MySqlConnectError
168
- # description: In case there are problems with the database connectivity
169
- #
170
- def translate( logical_name, file_name = nil, plurality = nil, numerus = nil, lengthvariant = nil )
171
-
172
- end
173
-
174
- # == deprecated
175
- # 0.9.0
176
- #
177
- # == description
178
- # This method is deprecated, please use [link="#parent"]TestObject#parent[/link] instead.
179
- #
180
- def parent_object
181
-
182
- $stderr.puts "warning: TestObject#parent_object is deprecated, please use TestObject#parent instead."
183
-
184
- @parent
185
-
186
- end
187
-
188
- # == description
189
- # Function for translating all symbol values into strings using sut's translate method
190
- # Goes through all items in a hash and if a value is symbol then uses that symbol as a logical
191
- # name and tries to find a translation for that.
192
- # == params
193
- # hash:: Hash containing key, value pairs. The parameter will get modified if symbols are found from values
194
- # == raises
195
- # LanguageNotFoundError:: In case of language is not found
196
- # LogicalNameNotFoundError:: In case of logical name is not found for current language
197
- # MySqlConnectError:: In case problems with the db connectivity
198
- def translate!( hash, file_name = nil, plurality = nil, numerus = nil, lengthvariant = nil )
199
-
200
- end
201
-
202
- # == description
203
- # Wrapper function to return translated string for this SUT to read the values from localisation database.
204
- #
205
- # == returns
206
- # nil
207
- # description: aabbcc
208
- # example: 1
209
- #
210
- def test2
211
-
212
- end
213
-
214
- # == description
215
- # Wrapper function to return translated string for this SUT to read the values from localisation database.
216
- #
217
- # == arguments
218
- # logical_namexxxxxxxx
219
- # String
220
- # description: Logical name (LNAME) of the item to be translated.
221
- # example: "txt_button_ok"
222
- #
223
- # XXYY2
224
- # String
225
- # description: Logical name (LNAME) of the item to be translated.
226
- # example: "txt_button_ok"
227
- #
228
- # == returns
229
- # nil
230
- # description: aabbcc
231
- # example: 1
232
- #
233
- def plugin_command( require_response = false, command = MobyCommand::WidgetCommand.new )
234
-
235
- end
236
-
237
-
238
- end
239
-
240
-
241
-
242
- end
243
- end
244
-
245
- #MobyUtil::Logger.instance.hook_methods( MobyBehaviour::QT::Gesture )