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