testability-driver 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -0
- data/bin/start_app_perf +199 -0
- data/bin/tdriver-devtools +3 -0
- data/config/sut_parameters.rb +39 -0
- data/ext/extconf.rb +67 -0
- data/ext/native_extensions.c +70 -0
- data/lib/matti.rb +30 -0
- data/lib/tdriver-devtools/behaviour/old/xml/example/flick-example.rb +223 -0
- data/lib/tdriver-devtools/behaviour/old/xml/example/impl.rb_invalid +194 -0
- data/lib/tdriver-devtools/behaviour/old/xml/generate_behaviour_xml.rb +95 -0
- data/lib/tdriver-devtools/behaviour/old/xml/lib/tdriver_generator.rb +722 -0
- data/lib/tdriver-devtools/behaviour/old/xml/qdoc_generator.rb +321 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.method.template +43 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.module.template +54 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.argument.template +7 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.argument_type.template +7 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.exception.template +5 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.howto.line.template +2 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.howto.template +5 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.method.template +23 -0
- data/lib/tdriver-devtools/behaviour/old/xml/templates/behaviour.xml.template +14 -0
- data/lib/tdriver-devtools/behaviour/old/xml/update +3 -0
- data/lib/tdriver-devtools/behaviour/xml/generate.rb +88 -0
- data/lib/tdriver-devtools/behaviour/xml/rdoc_behaviour_xml_generator.rb +1924 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.argument.default.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.argument.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.argument_type.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.exception.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.arguments.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.deprecated.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.exceptions.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.info.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.returns.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.tables.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.method.template +12 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.returns.template +5 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.table.item.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.table.row.template +2 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.table.template +8 -0
- data/lib/tdriver-devtools/behaviour/xml/templates/behaviour.xml.template +14 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/example/flick-example.rb +245 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/example/sut.rb +964 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/generate.rb +68 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/lib/custom_rdoc_generator.rb +1865 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.default.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.argument_type.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.exception.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.arguments.template +4 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.deprecated.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.exceptions.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.info.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.returns.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.tables.template +3 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.method.template +12 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.returns.template +5 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.item.template +1 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.row.template +2 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.table.template +7 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/templates/behaviour.xml.template +14 -0
- data/lib/tdriver-devtools/behaviour/xml_generator/update +3 -0
- data/lib/tdriver-devtools/doc/behaviour_xml/QtExampleGestureBehaviour.xml +138 -0
- data/lib/tdriver-devtools/doc/behaviour_xml/created.rid +1 -0
- data/lib/tdriver-devtools/doc/behaviour_xml/tdriver.hash +1 -0
- data/lib/tdriver-devtools/doc/feature_xml/qt_widget_hold.feature.xml +9 -0
- data/lib/tdriver-devtools/doc/feature_xml/qt_widget_tap.feature.xml +9 -0
- data/lib/tdriver-devtools/doc/generate.rb +892 -0
- data/lib/tdriver-devtools/doc/update +1 -0
- data/lib/tdriver-devtools/doc/xslt/html.rb +7 -0
- data/lib/tdriver-devtools/doc/xslt/template.xsl +1861 -0
- data/lib/tdriver-devtools/doc/xslt/update +3 -0
- data/lib/tdriver-devtools/plugin/placeholder.txt +1 -0
- data/lib/tdriver-devtools/tdriver-devtools.rb +404 -0
- data/lib/tdriver-devtools/tests/feature_tests/example/flick-example.rb +233 -0
- data/lib/tdriver-devtools/tests/feature_tests/example/impl.rb +194 -0
- data/lib/tdriver-devtools/tests/feature_tests/generate.rb +82 -0
- data/lib/tdriver-devtools/tests/feature_tests/lib/custom_rdoc_generator.rb +468 -0
- data/lib/tdriver-devtools/tests/feature_tests/templates/feature_attribute.template +5 -0
- data/lib/tdriver-devtools/tests/feature_tests/templates/feature_method.template +5 -0
- data/lib/tdriver-devtools/tests/feature_tests/templates/scenario_attribute.template +5 -0
- data/lib/tdriver-devtools/tests/feature_tests/templates/scenario_method.template +5 -0
- data/lib/tdriver-devtools/tests/feature_tests/update +3 -0
- data/lib/tdriver.rb +26 -0
- data/lib/tdriver/base/behaviour/behaviour.rb +32 -0
- data/lib/tdriver/base/behaviour/behaviours/object_behaviour_composition.rb +94 -0
- data/lib/tdriver/base/behaviour/behaviours/object_behaviour_description.rb +262 -0
- data/lib/tdriver/base/behaviour/behaviours/object_composition.rb +111 -0
- data/lib/tdriver/base/behaviour/factory.rb +380 -0
- data/lib/tdriver/base/behaviour/loader.rb +28 -0
- data/lib/tdriver/base/command_data/command_data.rb +51 -0
- data/lib/tdriver/base/command_data/loader.rb +25 -0
- data/lib/tdriver/base/errors.rb +131 -0
- data/lib/tdriver/base/loader.rb +38 -0
- data/lib/tdriver/base/state_object.rb +270 -0
- data/lib/tdriver/base/sut/adapter.rb +28 -0
- data/lib/tdriver/base/sut/controller.rb +119 -0
- data/lib/tdriver/base/sut/factory.rb +287 -0
- data/lib/tdriver/base/sut/generic/behaviours/application.rb +243 -0
- data/lib/tdriver/base/sut/generic/behaviours/controller.rb +67 -0
- data/lib/tdriver/base/sut/generic/behaviours/find.rb +96 -0
- data/lib/tdriver/base/sut/generic/behaviours/flash_behaviour.rb +346 -0
- data/lib/tdriver/base/sut/generic/behaviours/sut.rb +1268 -0
- data/lib/tdriver/base/sut/generic/behaviours/switchbox_behaviour.rb +182 -0
- data/lib/tdriver/base/sut/generic/behaviours/verification.rb +119 -0
- data/lib/tdriver/base/sut/generic/commands/application.rb +219 -0
- data/lib/tdriver/base/sut/generic/commands/key_sequence.rb +82 -0
- data/lib/tdriver/base/sut/generic/commands/screen_capture.rb +58 -0
- data/lib/tdriver/base/sut/generic/plugin.rb +96 -0
- data/lib/tdriver/base/sut/loader.rb +35 -0
- data/lib/tdriver/base/sut/sut.rb +67 -0
- data/lib/tdriver/base/test_object/abstract.rb +179 -0
- data/lib/tdriver/base/test_object/behaviours/syncronization.rb +94 -0
- data/lib/tdriver/base/test_object/behaviours/test_object.rb +787 -0
- data/lib/tdriver/base/test_object/factory.rb +618 -0
- data/lib/tdriver/base/test_object/identificator.rb +511 -0
- data/lib/tdriver/base/test_object/loader.rb +37 -0
- data/lib/tdriver/env.rb +21 -0
- data/lib/tdriver/loader.rb +36 -0
- data/lib/tdriver/matti.rb +35 -0
- data/lib/tdriver/report/error_recovery/tdriver_custom_error_recovery.rb +83 -0
- data/lib/tdriver/report/error_recovery/tdriver_error_recovery.rb +158 -0
- data/lib/tdriver/report/error_recovery/tdriver_error_recovery_settings.rb +98 -0
- data/lib/tdriver/report/report.rb +47 -0
- data/lib/tdriver/report/report_api.rb +207 -0
- data/lib/tdriver/report/report_combine.rb +86 -0
- data/lib/tdriver/report/report_crash_file_capture.rb +167 -0
- data/lib/tdriver/report/report_creator.rb +571 -0
- data/lib/tdriver/report/report_cucumber.rb +158 -0
- data/lib/tdriver/report/report_cucumber_listener.rb +337 -0
- data/lib/tdriver/report/report_cucumber_reporter.rb +335 -0
- data/lib/tdriver/report/report_data_presentation.rb +152 -0
- data/lib/tdriver/report/report_data_table.rb +64 -0
- data/lib/tdriver/report/report_execution_statistics.rb +284 -0
- data/lib/tdriver/report/report_file_capture.rb +159 -0
- data/lib/tdriver/report/report_grouping.rb +539 -0
- data/lib/tdriver/report/report_junit_xml.rb +147 -0
- data/lib/tdriver/report/report_rspec.rb +108 -0
- data/lib/tdriver/report/report_test_case_run.rb +621 -0
- data/lib/tdriver/report/report_test_run.rb +1286 -0
- data/lib/tdriver/report/report_test_unit.rb +175 -0
- data/lib/tdriver/report/report_writer.rb +1405 -0
- data/lib/tdriver/tdriver.rb +158 -0
- data/lib/tdriver/util/common.rb +24 -0
- data/lib/tdriver/util/common/array.rb +39 -0
- data/lib/tdriver/util/common/crc16.rb +100 -0
- data/lib/tdriver/util/common/environment.rb +153 -0
- data/lib/tdriver/util/common/error.rb +39 -0
- data/lib/tdriver/util/common/file.rb +315 -0
- data/lib/tdriver/util/common/gem.rb +108 -0
- data/lib/tdriver/util/common/kernel.rb +189 -0
- data/lib/tdriver/util/common/loader.rb +39 -0
- data/lib/tdriver/util/common/retryable.rb +98 -0
- data/lib/tdriver/util/common/string.rb +77 -0
- data/lib/tdriver/util/dbaccess/dbaccess.rb +188 -0
- data/lib/tdriver/util/dbaccess/dbconnection.rb +41 -0
- data/lib/tdriver/util/dbaccess/error.rb +35 -0
- data/lib/tdriver/util/dbaccess/loader.rb +29 -0
- data/lib/tdriver/util/dynamic_attribute_filter.rb +182 -0
- data/lib/tdriver/util/hooking.rb +434 -0
- data/lib/tdriver/util/loader.rb +65 -0
- data/lib/tdriver/util/localisation.rb +24 -0
- data/lib/tdriver/util/localisation/error.rb +32 -0
- data/lib/tdriver/util/localisation/loader.rb +28 -0
- data/lib/tdriver/util/localisation/localisation.rb +479 -0
- data/lib/tdriver/util/logger.rb +377 -0
- data/lib/tdriver/util/operator_data/error.rb +29 -0
- data/lib/tdriver/util/operator_data/loader.rb +26 -0
- data/lib/tdriver/util/operator_data/operator_data.rb +93 -0
- data/lib/tdriver/util/other/config.rb +221 -0
- data/lib/tdriver/util/parameter.rb +24 -0
- data/lib/tdriver/util/parameter/error.rb +45 -0
- data/lib/tdriver/util/parameter/loader.rb +37 -0
- data/lib/tdriver/util/parameter/parameter.rb +285 -0
- data/lib/tdriver/util/parameter/parameter_hash.rb +101 -0
- data/lib/tdriver/util/parameter/parameter_template.rb +120 -0
- data/lib/tdriver/util/parameter/parameter_user_api.rb +84 -0
- data/lib/tdriver/util/parameter/parameter_xml.rb +247 -0
- data/lib/tdriver/util/plugin/abstract.rb +60 -0
- data/lib/tdriver/util/plugin/error.rb +25 -0
- data/lib/tdriver/util/plugin/loader.rb +28 -0
- data/lib/tdriver/util/plugin/service.rb +200 -0
- data/lib/tdriver/util/recorder.rb +292 -0
- data/lib/tdriver/util/stats.rb +90 -0
- data/lib/tdriver/util/user_data/error.rb +29 -0
- data/lib/tdriver/util/user_data/loader.rb +26 -0
- data/lib/tdriver/util/user_data/user_data.rb +103 -0
- data/lib/tdriver/util/video_rec.rb +264 -0
- data/lib/tdriver/util/xml/abstraction.rb +47 -0
- data/lib/tdriver/util/xml/builder.rb +54 -0
- data/lib/tdriver/util/xml/document.rb +32 -0
- data/lib/tdriver/util/xml/element.rb +32 -0
- data/lib/tdriver/util/xml/error.rb +46 -0
- data/lib/tdriver/util/xml/loader.rb +46 -0
- data/lib/tdriver/util/xml/nil_element.rb +89 -0
- data/lib/tdriver/util/xml/nodeset.rb +32 -0
- data/lib/tdriver/util/xml/parsers/libxml/libxml.rb +140 -0
- data/lib/tdriver/util/xml/parsers/loader.rb +22 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/abstraction.rb +111 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/attribute.rb +54 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/builder.rb +58 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/document.rb +58 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/element.rb +147 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/loader.rb +42 -0
- data/lib/tdriver/util/xml/parsers/nokogiri/nodeset.rb +187 -0
- data/lib/tdriver/util/xml/xml.rb +170 -0
- data/lib/tdriver/verify/verify.rb +687 -0
- data/lib/tdriver/verify/verify.rb_org +630 -0
- data/lib/tdriver/version.rb +21 -0
- data/xml/behaviours/generic.xml +495 -0
- data/xml/defaults/generic.xml +97 -0
- data/xml/defaults/sut_generic.xml +36 -0
- data/xml/parameters/tdriver_parameters.xml +23 -0
- data/xml/templates/generic.xml +227 -0
- metadata +327 -0
@@ -0,0 +1,21 @@
|
|
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 Testability Driver.
|
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
|
+
ENV['TDRIVER_VERSION'] = '0.9.2'
|
@@ -0,0 +1,495 @@
|
|
1
|
+
<behaviours>
|
2
|
+
|
3
|
+
<behaviour name="GenericTestObject" object_type="*" sut_type="*" input_type="*" version="*">
|
4
|
+
|
5
|
+
<module name="MobyBehaviour::TestObject" />
|
6
|
+
|
7
|
+
<methods>
|
8
|
+
<method name="id">
|
9
|
+
<description>Returns id of the test object</description>
|
10
|
+
<example>id</example>
|
11
|
+
</method>
|
12
|
+
|
13
|
+
<method name="eql?">
|
14
|
+
<description>Checks if two values are equal and of the same type</description>
|
15
|
+
<example>eql?</example>
|
16
|
+
</method>
|
17
|
+
|
18
|
+
<method name="name">
|
19
|
+
<description>Return name of the test object</description>
|
20
|
+
<example>name</example>
|
21
|
+
</method>
|
22
|
+
|
23
|
+
<method name="type">
|
24
|
+
<description>Returns type of the test object</description>
|
25
|
+
<example>type</example>
|
26
|
+
</method>
|
27
|
+
|
28
|
+
<method name="xml_data">
|
29
|
+
<description>Returns objects xml data</description>
|
30
|
+
<example>xml_data</example>
|
31
|
+
</method>
|
32
|
+
|
33
|
+
<method name="attribute">
|
34
|
+
<description>Returns a attribute of test object</description>
|
35
|
+
<example>attribute("type")</example>
|
36
|
+
</method>
|
37
|
+
|
38
|
+
<method name="application?">
|
39
|
+
<description>Returns a boolean representing that is test object type of application</description>
|
40
|
+
<example>application?</example>
|
41
|
+
</method>
|
42
|
+
|
43
|
+
<method name="attributes">
|
44
|
+
<description>Returns a attributes of test object</description>
|
45
|
+
<example>attributes</example>
|
46
|
+
</method>
|
47
|
+
|
48
|
+
<method name="parent_object">
|
49
|
+
<description>Returns the test object tha was used as the parent when the test object was created</description>
|
50
|
+
<example>parent_object</example>
|
51
|
+
</method>
|
52
|
+
|
53
|
+
<method name="parent">
|
54
|
+
<description>Returns the test object tha was used as the parent when the test object was created</description>
|
55
|
+
<example>parent_object</example>
|
56
|
+
</method>
|
57
|
+
|
58
|
+
<method name="get_parent">
|
59
|
+
<description>Returns parent of the current object according to the UI object hierarchy</description>
|
60
|
+
<example>get_parent</example>
|
61
|
+
</method>
|
62
|
+
|
63
|
+
<method name="child">
|
64
|
+
<description>Creates a child object of receiver test object.</description>
|
65
|
+
<example>child( :text=>'1' )</example>
|
66
|
+
</method>
|
67
|
+
|
68
|
+
<method name="children">
|
69
|
+
<description>Creates an array of child object of receiver test object.</description>
|
70
|
+
<example>children( :text=>'1' )</example>
|
71
|
+
</method>
|
72
|
+
|
73
|
+
<method name="refresh">
|
74
|
+
<description>Refreshes test objects to correspond with the current state of the device</description>
|
75
|
+
<example>refresh</example>
|
76
|
+
</method>
|
77
|
+
|
78
|
+
<method name="force_refresh">
|
79
|
+
<description>Refreshes test objects to correspond with the current state of the device, forcing</description>
|
80
|
+
<example>force_refresh</example>
|
81
|
+
</method>
|
82
|
+
|
83
|
+
<method name="state">
|
84
|
+
<description>Returns a StateObject containing the current state of this test object as XML</description>
|
85
|
+
<example>state</example>
|
86
|
+
</method>
|
87
|
+
|
88
|
+
<method name="activate">
|
89
|
+
<description>Activate the test object</description>
|
90
|
+
<example>activate</example>
|
91
|
+
</method>
|
92
|
+
|
93
|
+
<method name="deactivate">
|
94
|
+
<description>Deactivate the test object</description>
|
95
|
+
<example>deactivate</example>
|
96
|
+
</method>
|
97
|
+
|
98
|
+
<method name="get_application_id">
|
99
|
+
<description>Test object get_application_id</description>
|
100
|
+
<example>get_application_id</example>
|
101
|
+
</method>
|
102
|
+
|
103
|
+
<method name="get_application">
|
104
|
+
<description>Function for finding out the application for this test ojbect</description>
|
105
|
+
<example>get_application</example>
|
106
|
+
</method>
|
107
|
+
|
108
|
+
<method name="set_application_id">
|
109
|
+
<description>Test object set_application_id</description>
|
110
|
+
<example>set_application_id</example>
|
111
|
+
</method>
|
112
|
+
|
113
|
+
<method name="update">
|
114
|
+
<description>Test object update</description>
|
115
|
+
<example>update</example>
|
116
|
+
</method>
|
117
|
+
|
118
|
+
<method name="wait_child">
|
119
|
+
<description>Test object wait_child</description>
|
120
|
+
<example>wait_child</example>
|
121
|
+
</method>
|
122
|
+
|
123
|
+
<method name="creation_attributes">
|
124
|
+
<description>Test object creation attributes</description>
|
125
|
+
<example>creation_attributes</example>
|
126
|
+
</method>
|
127
|
+
|
128
|
+
<method name="method_missing">
|
129
|
+
<description>Invoked by Ruby when object is sent a message it cannot handle</description>
|
130
|
+
<example>method_missing</example>
|
131
|
+
</method>
|
132
|
+
|
133
|
+
<method name="translate!">
|
134
|
+
<description>desc</description>
|
135
|
+
<example>example</example>
|
136
|
+
</method>
|
137
|
+
|
138
|
+
<method name="inspect">
|
139
|
+
<description>Returns a string containing a human-readable representation of object</description>
|
140
|
+
<example>inspect</example>
|
141
|
+
</method>
|
142
|
+
|
143
|
+
</methods>
|
144
|
+
|
145
|
+
</behaviour>
|
146
|
+
|
147
|
+
<behaviour name="Flash" object_type="sut" sut_type="*" input_type="*" version="*">
|
148
|
+
|
149
|
+
<module name="MobyBehaviour::FlashBehaviour" />
|
150
|
+
|
151
|
+
<methods>
|
152
|
+
<method name="flash">
|
153
|
+
<description>Flashes the device using any command line tool</description>
|
154
|
+
<example>flash</example>
|
155
|
+
</method>
|
156
|
+
<method name="flash_files">
|
157
|
+
<description>Instructs to flash defined files with a command line tool</description>
|
158
|
+
<example>flash_files('\tmp\image.bin \tmp\image2.bin')</example>
|
159
|
+
</method>
|
160
|
+
</methods>
|
161
|
+
|
162
|
+
</behaviour>
|
163
|
+
|
164
|
+
<behaviour name="Switchbox" object_type="sut" sut_type="*" input_type="*" version="*">
|
165
|
+
|
166
|
+
<module name="MobyBehaviour::SwitchboxBehaviour" />
|
167
|
+
|
168
|
+
<methods>
|
169
|
+
<method name="reset">
|
170
|
+
<description>Reboots the device using switchbox</description>
|
171
|
+
<example>reset</example>
|
172
|
+
</method>
|
173
|
+
<method name="power_down">
|
174
|
+
<description>Instructs the switchbox to power up the sut</description>
|
175
|
+
<example>power_down</example>
|
176
|
+
</method>
|
177
|
+
<method name="power_up">
|
178
|
+
<description>Instructs the switchbox to power up the sut</description>
|
179
|
+
<example>power_up</example>
|
180
|
+
</method>
|
181
|
+
<method name="power_status">
|
182
|
+
<description>Gets the current power status of the switchbox</description>
|
183
|
+
<example>power_status</example>
|
184
|
+
</method>
|
185
|
+
</methods>
|
186
|
+
|
187
|
+
</behaviour>
|
188
|
+
|
189
|
+
<behaviour name="GenericObjectComposition" object_type="*;sut" sut_type="*" input_type="*" version="*">
|
190
|
+
|
191
|
+
<module name="MobyBehaviour::ObjectComposition" />
|
192
|
+
|
193
|
+
<methods>
|
194
|
+
|
195
|
+
<method name="add_parent">
|
196
|
+
<description>Adds a object as a parent of this object</description>
|
197
|
+
<example>add_parent( parent_object )</example>
|
198
|
+
</method>
|
199
|
+
<method name="remove_parent">
|
200
|
+
<description>removes association to parent object from self</description>
|
201
|
+
<example>remove_parent</example>
|
202
|
+
</method>
|
203
|
+
<method name="add_child">
|
204
|
+
<description>Adds a test object as a child of this object</description>
|
205
|
+
<example>add_child( child_object )</example>
|
206
|
+
</method>
|
207
|
+
<method name="remove_child">
|
208
|
+
<description>Removes target_child_object from the Set of child objects</description>
|
209
|
+
<example>remove_child( child_object )</example>
|
210
|
+
</method>
|
211
|
+
|
212
|
+
</methods>
|
213
|
+
|
214
|
+
</behaviour>
|
215
|
+
|
216
|
+
|
217
|
+
<behaviour name="GenericObjectDescription" object_type="*;sut" sut_type="*" input_type="*" version="*">
|
218
|
+
|
219
|
+
<module name="MobyBehaviour::ObjectBehaviourDescription" />
|
220
|
+
|
221
|
+
<methods>
|
222
|
+
<method name="describe">
|
223
|
+
<description>Describes receiver object; Shows associated SUT, object type, included behaviours and methods</description>
|
224
|
+
<example>describe</example>
|
225
|
+
</method>
|
226
|
+
<method name="describe_method">
|
227
|
+
<description>Describes desired method; Description and example will be shown</description>
|
228
|
+
<example>describe_method</example>
|
229
|
+
</method>
|
230
|
+
<method name="behaviours">
|
231
|
+
<description>Returns array of behaviours that receiver contains.</description>
|
232
|
+
<example>behaviours</example>
|
233
|
+
</method>
|
234
|
+
<method name="object_methods">
|
235
|
+
<description>Returns array of methods that receiver contains.</description>
|
236
|
+
<example>object_methods</example>
|
237
|
+
</method>
|
238
|
+
|
239
|
+
</methods>
|
240
|
+
|
241
|
+
</behaviour>
|
242
|
+
|
243
|
+
<behaviour name="GenericSut" object_type="sut" sut_type="*" input_type="*" version="*">
|
244
|
+
|
245
|
+
<module name="MobyBehaviour::SUT" />
|
246
|
+
|
247
|
+
<methods>
|
248
|
+
<method name="application">
|
249
|
+
<description>Returns the current foreground application</description>
|
250
|
+
<example>application</example>
|
251
|
+
</method>
|
252
|
+
|
253
|
+
<method name="child">
|
254
|
+
<description>Returns child object of this object</description>
|
255
|
+
<example>child</example>
|
256
|
+
</method>
|
257
|
+
|
258
|
+
<method name="current_application_id">
|
259
|
+
<description>Returns current_application_id</description>
|
260
|
+
<example>current_application_id</example>
|
261
|
+
</method>
|
262
|
+
|
263
|
+
<method name="fetch_references">
|
264
|
+
<description>Returns object references</description>
|
265
|
+
<example>fetch_references</example>
|
266
|
+
</method>
|
267
|
+
|
268
|
+
<method name="dump_count">
|
269
|
+
<description>Returns dump_count</description>
|
270
|
+
<example>dump_count</example>
|
271
|
+
</method>
|
272
|
+
|
273
|
+
<method name="frozen">
|
274
|
+
<description>Returns frozen status</description>
|
275
|
+
<example>frozen</example>
|
276
|
+
</method>
|
277
|
+
|
278
|
+
<method name="input">
|
279
|
+
<description>Sut input</description>
|
280
|
+
<example>input</example>
|
281
|
+
</method>
|
282
|
+
|
283
|
+
<method name="refresh">
|
284
|
+
<description>Sut refresh</description>
|
285
|
+
<example>refresh</example>
|
286
|
+
</method>
|
287
|
+
|
288
|
+
<method name="refresh_timeout">
|
289
|
+
<description>Sut refresh_timeout</description>
|
290
|
+
<example>refresh_timeout</example>
|
291
|
+
</method>
|
292
|
+
|
293
|
+
<method name="refresh_tries">
|
294
|
+
<description>Sut refresh_tries</description>
|
295
|
+
<example>refresh_tries</example>
|
296
|
+
</method>
|
297
|
+
|
298
|
+
<method name="refresh_ui_dump">
|
299
|
+
<description>Sut refresh_ui_dump</description>
|
300
|
+
<example>refresh_ui_dump</example>
|
301
|
+
</method>
|
302
|
+
|
303
|
+
<method name="ui_type">
|
304
|
+
<description>Sut ui_type</description>
|
305
|
+
<example>ui_type</example>
|
306
|
+
</method>
|
307
|
+
|
308
|
+
<method name="ui_version">
|
309
|
+
<description>Sut ui_version</description>
|
310
|
+
<example>ui_version</example>
|
311
|
+
</method>
|
312
|
+
|
313
|
+
<method name="update">
|
314
|
+
<description>Sut update</description>
|
315
|
+
<example>update</example>
|
316
|
+
</method>
|
317
|
+
|
318
|
+
<method name="x_path">
|
319
|
+
<description>Sut x_path</description>
|
320
|
+
<example>x_path</example>
|
321
|
+
</method>
|
322
|
+
|
323
|
+
<method name="xml_data">
|
324
|
+
<description>Sut xml_data</description>
|
325
|
+
<example>xml_data</example>
|
326
|
+
</method>
|
327
|
+
|
328
|
+
<method name="xml_data_crc">
|
329
|
+
<description>Sut xml_data_crc</description>
|
330
|
+
<example>xml_data_crc</example>
|
331
|
+
</method>
|
332
|
+
|
333
|
+
<method name="translate">
|
334
|
+
<description>Sut translate</description>
|
335
|
+
<example>translate</example>
|
336
|
+
</method>
|
337
|
+
|
338
|
+
<method name="connect">
|
339
|
+
<description>Connect to target</description>
|
340
|
+
<example>connect</example>
|
341
|
+
</method>
|
342
|
+
|
343
|
+
<method name="disconnect">
|
344
|
+
<description>Disconnects connection to sut (e.g. closes open socket)</description>
|
345
|
+
<example>disconnect</example>
|
346
|
+
</method>
|
347
|
+
|
348
|
+
<method name="capture_screen">
|
349
|
+
<description>Screen capture function to take snapshot of SUTs current display view</description>
|
350
|
+
<example>capture_screen( :Filename => 'c:/screen.png' )</example>
|
351
|
+
</method>
|
352
|
+
|
353
|
+
<method name="parameter">
|
354
|
+
<description>Function to return parameters for this SUT. Uses the Parameter singleton to read the values from xml under group identified as this SUT.</description>
|
355
|
+
<example>parameter("type")</example>
|
356
|
+
</method>
|
357
|
+
|
358
|
+
<method name="press_key">
|
359
|
+
<description>Press_key function to pass symbol or sequence to the assosiacted SUT controllers</description>
|
360
|
+
<example>press_key(:kDown)</example>
|
361
|
+
</method>
|
362
|
+
|
363
|
+
<method name="run">
|
364
|
+
<description>Instructs the SUT to start the specified application if it is not currenly being executed. The application will also be brought to the foregound.</description>
|
365
|
+
<example>run(:name => 'application_executable.exe')</example>
|
366
|
+
</method>
|
367
|
+
|
368
|
+
<method name="get_ui_dump">
|
369
|
+
<description>Return UI state as XML dump</description>
|
370
|
+
<example>get_ui_dump</example>
|
371
|
+
</method>
|
372
|
+
|
373
|
+
<method name="state">
|
374
|
+
<description>Returns a StateObject containing the current state of this sut object as XML. The state object is static and thus is not refreshed or synchronized etc.</description>
|
375
|
+
<example>state</example>
|
376
|
+
</method>
|
377
|
+
|
378
|
+
<method name="freeze">
|
379
|
+
<description>Function to disable taking UI dumps from target for a moment. User must remember to enable UI dumps again using unfreeze.</description>
|
380
|
+
<example>freeze</example>
|
381
|
+
</method>
|
382
|
+
<method name="unfreeze">
|
383
|
+
<description>Function to enable taking UI dumps from target</description>
|
384
|
+
<example>unfreeze</example>
|
385
|
+
</method>
|
386
|
+
|
387
|
+
|
388
|
+
<method name="get_object">
|
389
|
+
<description>Retrieve object with given identification hash. Id, Name or Type must be given in hash.</description>
|
390
|
+
<example>get_object( :type => 'Button', :text => '1') </example>
|
391
|
+
</method>
|
392
|
+
|
393
|
+
<method name="get_application_id">
|
394
|
+
<description>Retrieve current application id.</description>
|
395
|
+
<example>get_application_id</example>
|
396
|
+
</method>
|
397
|
+
<method name="clear_verify_blocks">
|
398
|
+
<description>Clear existing verify blocks</description>
|
399
|
+
<example>clear_verify_blocks</example>
|
400
|
+
</method>
|
401
|
+
<method name="verify_always">
|
402
|
+
<description>Verify always</description>
|
403
|
+
<example>verify_always( expected, message = nil, block )</example>
|
404
|
+
</method>
|
405
|
+
<method name="verify_blocks">
|
406
|
+
<description>Verify blocks</description>
|
407
|
+
<example>verify_blocks</example>
|
408
|
+
</method>
|
409
|
+
|
410
|
+
|
411
|
+
</methods>
|
412
|
+
|
413
|
+
</behaviour>
|
414
|
+
|
415
|
+
<behaviour name="GenericApplication" object_type="application" sut_type="*" input_type="*" version="*">
|
416
|
+
|
417
|
+
<module name="MobyBehaviour::Application" />
|
418
|
+
|
419
|
+
<methods>
|
420
|
+
<method name="close">
|
421
|
+
<description>Close the application.</description>
|
422
|
+
<example>close</example>
|
423
|
+
</method>
|
424
|
+
|
425
|
+
<method name="executable_name">
|
426
|
+
<description>Get the name of the executable file of the application.</description>
|
427
|
+
<example>executable_name</example>
|
428
|
+
</method>
|
429
|
+
|
430
|
+
<method name="uid">
|
431
|
+
<description>Get the uid of the application</description>
|
432
|
+
<example>uid</example>
|
433
|
+
</method>
|
434
|
+
|
435
|
+
<method name="closable?">
|
436
|
+
<description>Get a boolean indicating whether the application can be closed.</description>
|
437
|
+
<example>closable?</example>
|
438
|
+
</method>
|
439
|
+
</methods>
|
440
|
+
|
441
|
+
</behaviour>
|
442
|
+
|
443
|
+
<behaviour name="GenericTestObjectSyncronization" object_type="*;sut" sut_type="*" input_type="*" version="*">
|
444
|
+
|
445
|
+
<module name="MobyBehaviour::TestObjectSynchronization" />
|
446
|
+
|
447
|
+
<methods>
|
448
|
+
<method name="wait_child">
|
449
|
+
<description>Wait until this test object has a child test object of the specified type and matching the given attributes. The child being waited for must be identifiable by the provided constraints. The call terminates only when exactly a single child matches the criteria.</description>
|
450
|
+
<example>wait_child("Button", { :text => '1' }, 10)</example>
|
451
|
+
</method>
|
452
|
+
</methods>
|
453
|
+
|
454
|
+
</behaviour>
|
455
|
+
|
456
|
+
<behaviour name="GenericVerification" object_type="*;sut" sut_type="*" input_type="*" version="*">
|
457
|
+
|
458
|
+
<module name="MobyBehaviour::Verification" />
|
459
|
+
|
460
|
+
<methods>
|
461
|
+
<method name="test_object_exists?">
|
462
|
+
<description>Verifies that the defined test object exists as a child of the sut or receiving test object.</description>
|
463
|
+
<example>test_object_exists?("menu_item", {:id => '1'})</example>
|
464
|
+
</method>
|
465
|
+
</methods>
|
466
|
+
|
467
|
+
</behaviour>
|
468
|
+
|
469
|
+
<behaviour name="GenericFind" object_type="*;sut" sut_type="*" input_type="*" version="*">
|
470
|
+
|
471
|
+
<module name="MobyBehaviour::Find" />
|
472
|
+
|
473
|
+
<methods>
|
474
|
+
<method name="find">
|
475
|
+
<description>temp description</description>
|
476
|
+
<example>find({:id => '1'})</example>
|
477
|
+
</method>
|
478
|
+
</methods>
|
479
|
+
|
480
|
+
</behaviour>
|
481
|
+
|
482
|
+
<behaviour name="GenericSutController" object_type="sut" sut_type="*" input_type="*" version="*">
|
483
|
+
|
484
|
+
<module name="MobyBehaviour::SutController" />
|
485
|
+
|
486
|
+
<methods>
|
487
|
+
<method name="execution_order">
|
488
|
+
<description>Change SUT controller execution order, can be used when multiple controllers for one SUT</description>
|
489
|
+
<example>execution_order</example>
|
490
|
+
</method>
|
491
|
+
</methods>
|
492
|
+
|
493
|
+
</behaviour>
|
494
|
+
|
495
|
+
</behaviours>
|