587
|
1 |
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
2 |
<!--
|
|
3 |
============================================================================
|
|
4 |
Name : ats_template.xml
|
|
5 |
Part of : Helium
|
|
6 |
|
|
7 |
Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
8 |
All rights reserved.
|
|
9 |
This component and the accompanying materials are made available
|
|
10 |
under the terms of the License "Eclipse Public License v1.0"
|
|
11 |
which accompanies this distribution, and is available
|
|
12 |
at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
13 |
|
|
14 |
Initial Contributors:
|
|
15 |
Nokia Corporation - initial contribution.
|
|
16 |
|
|
17 |
Contributors:
|
|
18 |
|
|
19 |
Description:
|
|
20 |
Contains the template for the test.xml file output. The test.xml file contains
|
|
21 |
information on the files used to create the drop file.
|
|
22 |
============================================================================
|
|
23 |
-->
|
|
24 |
<test>
|
|
25 |
<name>{{ test_plan['testrun_name'] }}</name>
|
|
26 |
<buildid>{{ test_plan['diamonds_build_url'] }}</buildid>
|
|
27 |
<target>
|
|
28 |
{% if test_plan["harness"] == "MULTI_HARNESS" -%}
|
|
29 |
<device alias="DEFAULT_STIF" rank="none">
|
|
30 |
<property name="HARNESS" value="STIF"/>
|
|
31 |
<property name="TYPE" value="{{ test_plan['device_type'] }}"/>
|
|
32 |
{% if test_plan["device_hwid"] != "" -%}
|
|
33 |
<property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
|
|
34 |
{% endif %}
|
|
35 |
</device>
|
|
36 |
<device alias="DEFAULT_EUNIT" rank="none">
|
|
37 |
<property name="HARNESS" value="EUNIT"/>
|
|
38 |
<property name="TYPE" value="{{ test_plan['device_type'] }}"/>
|
|
39 |
{% if test_plan["device_hwid"] != "" -%}
|
|
40 |
<property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
|
|
41 |
{% endif %}
|
|
42 |
</device>
|
|
43 |
{% else %}
|
|
44 |
<device alias="DEFAULT_{{ test_plan['harness'] }}" rank="none">
|
|
45 |
<property name="HARNESS" value="{{ test_plan['harness'] }}"/>
|
|
46 |
<property name="TYPE" value="{{ test_plan['device_type'] }}"/>
|
|
47 |
{% if test_plan["device_hwid"] != "" -%}
|
|
48 |
<property name="HWID" value="{{ test_plan["device_hwid"] }}"/>
|
|
49 |
{% endif %}
|
|
50 |
</device>
|
|
51 |
{% endif %}
|
|
52 |
</target>
|
|
53 |
|
|
54 |
<plan passrate="100" enabled="true" name="{{ test_plan['testrun_name'] }} Plan" significant="false" harness="{{ test_plan['harness'] }}">
|
|
55 |
<session name="session" harness="{{ test_plan['harness'] }}" enabled="true" passrate="100" significant="false">
|
|
56 |
{% for setd in test_plan.sets -%}
|
|
57 |
<set name="{{ setd["name"] }}-{{ setd["component_path"] }}" harness="{{ test_plan['harness'] }}" enabled="true" passrate="100">
|
|
58 |
<target>
|
|
59 |
<device alias="DEFAULT_{{ test_plan['harness'] }}" rank="master"/>
|
|
60 |
</target>
|
|
61 |
<case name="{{ setd.name }} case" passrate="100" harness="{{ setd.test_harness }}" enabled="true" significant="false">
|
|
62 |
|
|
63 |
{% if setd["ctc_enabled"] == "True" -%}
|
|
64 |
<step name="Create CTC log dir" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
65 |
<command>makedir</command>
|
|
66 |
<params>
|
|
67 |
<param dir="{{ atsself.CTC_LOG_DIR }}"/>
|
|
68 |
</params>
|
|
69 |
</step>
|
|
70 |
<step name="CTC start" passrate="100" harness="{{ setd.test_harness }}" enabled="true" significant="false">
|
|
71 |
<command>execute</command>
|
|
72 |
<params>
|
|
73 |
<param file="z:\sys\bin\ctcman.exe"/>
|
|
74 |
</params>
|
|
75 |
</step>
|
|
76 |
{% endif %}
|
|
77 |
{% if setd.image_files -%}
|
|
78 |
{% for img in setd.image_files -%}
|
|
79 |
<flash target-alias="DEFAULT_{{ setd.test_harness }}" images="ATS3Drop\images\{{ os.path.basename(img) }}" />
|
|
80 |
{% endfor -%}
|
|
81 |
{% endif %}
|
|
82 |
<step name="Create logs folder" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
83 |
<command>makedir</command>
|
|
84 |
<params>
|
|
85 |
{% if setd["test_harness"] == "GENERIC" -%}
|
|
86 |
{% if atsself.check_mtf_harness(setd) -%}
|
|
87 |
<param dir="{{ atsself.MTF_LOG_DIR }}"/>
|
|
88 |
{% else %}
|
|
89 |
<param dir="{{ atsself.TEF_LOG_DIR }}"/>
|
|
90 |
{% endif %}
|
|
91 |
{% endif %}
|
|
92 |
{% if setd["test_harness"] == "EUNIT" -%}
|
|
93 |
{% if atsself.check_qt_harness(setd) -%}
|
|
94 |
<param dir="{{ atsself.QT_LOG_DIR }}"/>
|
|
95 |
{% else %}
|
|
96 |
<param dir="{{ atsself.EUNIT_LOG_DIR }}"/>
|
|
97 |
{% endif %}
|
|
98 |
{% endif %}
|
|
99 |
</params>
|
|
100 |
</step>
|
|
101 |
|
|
102 |
{% for sis_file in setd["sis_files"] -%}
|
|
103 |
<step name="Install sis: {{ os.path.basename(sis_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
104 |
<command>install</command>
|
|
105 |
<params>
|
|
106 |
<param src="ATS3Drop\{{ setd.name }}\sis\{{ os.path.basename(sis_file) }}"/>
|
|
107 |
<param dst="c:\testframework\{{ os.path.basename(sis_file) }}"/>
|
|
108 |
</params>
|
|
109 |
</step>
|
|
110 |
{% endfor -%}
|
|
111 |
|
|
112 |
{% for data_file in setd["data_files"] -%}
|
|
113 |
<step name="Install data: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
114 |
<command>install</command>
|
|
115 |
<params>
|
|
116 |
<param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
|
|
117 |
<param dst="e:\testing\data"/>
|
|
118 |
</params>
|
|
119 |
</step>
|
|
120 |
{% endfor -%}
|
|
121 |
{% for data_file in setd["testmodule_files"] -%}
|
|
122 |
<step name="Install testmodule: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
123 |
<command>install</command>
|
|
124 |
<params>
|
|
125 |
<param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
|
|
126 |
<param dst="c:\sys\bin"/>
|
|
127 |
</params>
|
|
128 |
</step>
|
|
129 |
{% endfor -%}
|
|
130 |
{% for data_file in setd["config_files"] -%}
|
|
131 |
<step name="Install conf: {{ os.path.basename(data_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
132 |
<command>install</command>
|
|
133 |
<params>
|
|
134 |
<param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(data_file) }}"/>
|
|
135 |
<param dst="e:\testing\conf"/>
|
|
136 |
</params>
|
|
137 |
</step>
|
|
138 |
{% endfor -%}
|
|
139 |
|
|
140 |
{% if setd.engine_ini_file -%}
|
|
141 |
<step name="Install engine: {{ os.path.basename(setd["engine_ini_file"]) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
142 |
<command>install</command>
|
|
143 |
<params>
|
|
144 |
<param src="ATS3Drop\{{ setd.name }}\{{ os.path.basename(setd["engine_ini_file"]) }}"/>
|
|
145 |
<param dst="c:\testframework\{{ setd["test_harness"] }}"/>
|
|
146 |
</params>
|
|
147 |
</step>
|
|
148 |
{% endif %}
|
|
149 |
|
|
150 |
{% for sis_file in setd["sis_files"] -%}
|
|
151 |
<step name="Install SIS to the device: {{ os.path.basename(sis_file) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
152 |
<command>install-software</command>
|
|
153 |
<params>
|
|
154 |
<param timeout="{{ test_plan["test_timeout"] }}"/>
|
|
155 |
<param overWriteAllowed="true"/>
|
|
156 |
<param upgradeData="true"/>
|
|
157 |
<param downloadAllowed="false"/>
|
|
158 |
<param packageInfoAllowed="true"/>
|
|
159 |
<param untrustedAllowed="true"/>
|
|
160 |
<param ignoreOCSPWarnings="true"/>
|
|
161 |
<param userCapGranted="true"/>
|
|
162 |
<param optionalItemsAllowed="true"/>
|
|
163 |
<param killApp="true"/>
|
|
164 |
<param installDrive="C"/>
|
|
165 |
<param upgradeAllowed="true"/>
|
|
166 |
<param OCSP_Done="true"/>
|
|
167 |
<param sisPackageName="c:\testframework\{{ os.path.basename(sis_file) }}"/>
|
|
168 |
</params>
|
|
169 |
</step>
|
|
170 |
{% endfor -%}
|
|
171 |
|
|
172 |
{% if setd.src_dst -%}
|
|
173 |
{% for file in setd.src_dst -%}
|
|
174 |
<step name="Install {{ os.path.basename(file[1]) }}" harness="{{ setd.test_harness }}" enabled="true" passrate="100" significant="false">
|
|
175 |
<command>install</command>
|
|
176 |
<params>
|
|
177 |
<param src="ATS3Drop\{{ setd.name }}\{{ file[1].replace(":","") }}"/>
|
|
178 |
<param dst="{{ file[1] }}"/>
|
|
179 |
</params>
|
|
180 |
</step>
|
|
181 |
|
|
182 |
{% if setd["test_harness"] == "GENERIC" -%}
|
|
183 |
<step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Execute test: {{ os.path.basename(file[1]) }}" significant="false">
|
|
184 |
<command>execute</command>
|
|
185 |
<params>
|
|
186 |
{% if 'testscript' in file[2] -%}
|
|
187 |
{% if file[2] == "testscript:mtf" -%}
|
|
188 |
<param file="testframework.exe"/>
|
|
189 |
<param parser="MTFResultParser"/>
|
|
190 |
<param result-file="{{ atsself.MTF_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.script', '.htm') }}"/>
|
|
191 |
{% else %}
|
|
192 |
<param file="testexecute.exe"/>
|
|
193 |
<param parser="TEFTestResultParser"/>
|
|
194 |
<param result-file="{{ atsself.TEF_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.script', '.htm') }}"/>
|
|
195 |
{% endif %}
|
|
196 |
<param parameters="{{ file[1] }}"/>
|
|
197 |
<param timeout="{{ test_plan["test_timeout"] }}"/>
|
|
198 |
{% endif %}
|
|
199 |
|
|
200 |
{% if 'testmodule' in file[2] -%}
|
|
201 |
<param file="{{ file[1] }}"/>
|
|
202 |
<param parser="RTestResultParser"/>
|
|
203 |
<param result-file="{{ atsself.TEF_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.exe', '.htm') }}"/>
|
|
204 |
<param timeout="{{ test_plan["test_timeout"] }}"/>
|
|
205 |
{% endif %}
|
|
206 |
</params>
|
|
207 |
</step>
|
|
208 |
{% endif %}
|
|
209 |
{% if setd["test_harness"] == "EUNIT" -%}
|
|
210 |
{% if file[2] == "testmodule:qt" -%}
|
|
211 |
<step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Execute test: {{ os.path.basename(file[1]) }}" significant="false">
|
|
212 |
<command>execute</command>
|
|
213 |
<params>
|
|
214 |
<param file="{{ file[1] }}"/>
|
|
215 |
<param parameters="-lightxml -o {{ atsself.QT_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
|
|
216 |
<param result-file="{{ atsself.QT_LOG_DIR }}\{{ os.path.basename(file[1]).replace('.' + file[1].rsplit(".")[1], '_log.xml') }}"/>
|
|
217 |
<param parser="QTestResultParser"/>
|
|
218 |
<param delete-result="true"/>
|
|
219 |
<param async="false"/>
|
|
220 |
<param timeout="{{ test_plan["test_timeout"] }}"/>
|
|
221 |
</params>
|
|
222 |
</step>
|
|
223 |
{% endif %}
|
|
224 |
{% endif %}
|
|
225 |
|
|
226 |
{% endfor -%}
|
|
227 |
{% endif %}
|
|
228 |
<step passrate="100" harness="{{ setd.test_harness }}" enabled="true" name="Fetch test module logs" significant="false">
|
|
229 |
<command>fetch-log</command>
|
|
230 |
<params>
|
|
231 |
<param type="text"/>
|
|
232 |
<param delete="true"/>
|
|
233 |
{% if setd["test_harness"] == "GENERIC" -%}
|
|
234 |
{% if atsself.check_mtf_harness(setd) -%}
|
|
235 |
<param path="{{ atsself.MTF_LOG_DIR }}\*"/>
|
|
236 |
{% else %}
|
|
237 |
<param path="{{ atsself.TEF_LOG_DIR }}\*"/>
|
|
238 |
{% endif %}
|
|
239 |
{% endif %}
|
|
240 |
{% if setd["test_harness"] == "EUNIT" -%}
|
|
241 |
{% if atsself.check_qt_harness(setd) -%}
|
|
242 |
<param path="{{ atsself.QT_LOG_DIR }}\*"/>
|
|
243 |
{% else %}
|
|
244 |
<param path="{{ atsself.EUNIT_LOG_DIR }}\*"/>
|
|
245 |
{% endif %}
|
|
246 |
{% endif %}
|
|
247 |
</params>
|
|
248 |
</step>
|
|
249 |
</case>
|
|
250 |
</set>
|
|
251 |
{% endfor -%}
|
|
252 |
</session>
|
|
253 |
</plan>
|
|
254 |
|
|
255 |
{% if test_plan.post_actions %}
|
|
256 |
{% for action_type, parameters in test_plan.post_actions -%}
|
|
257 |
<postAction>
|
|
258 |
<type>{{ action_type }}</type>
|
|
259 |
<params>
|
|
260 |
{% for name, value in parameters -%}
|
|
261 |
<param name="{{ name }}" value="{{ value }}"/>
|
|
262 |
{% endfor -%}
|
|
263 |
</params>
|
|
264 |
</postAction>
|
|
265 |
{% endfor -%}
|
|
266 |
{% endif %}
|
|
267 |
|
|
268 |
<files>
|
|
269 |
{% for drop_file, _ in atsself.drop_files(test_plan) -%}
|
|
270 |
<file>{{ drop_file }}</file>
|
|
271 |
{% endfor -%}
|
|
272 |
</files>
|
|
273 |
|
|
274 |
</test> |