588
|
1 |
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
|
|
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 |
|
|
25 |
<testrun>
|
|
26 |
<metadata>
|
|
27 |
{% if test_plan['diamonds_build_url'] -%}
|
|
28 |
<meta name="diamonds-buildid">{{ test_plan['diamonds_build_url'] }}</meta>
|
|
29 |
<meta name="diamonds-testtype">Smoke</meta>
|
|
30 |
{% endif %}
|
|
31 |
<meta name="name">{{ test_plan['testrun_name'] }}</meta>
|
|
32 |
</metadata>
|
|
33 |
|
|
34 |
<agents>
|
|
35 |
<agent alias="DEFAULT_{{ test_plan['harness'] }}">
|
|
36 |
<property name="hardware" value="{{ test_plan["device_type"] }}"/>
|
|
37 |
</agent>
|
|
38 |
</agents>
|
|
39 |
|
|
40 |
<execution defaultAgent="DEFAULT_{{ test_plan['harness'] }}">
|
|
41 |
<task>
|
|
42 |
<type>ExecutableTestCaseTask</type>
|
|
43 |
<parameters>
|
|
44 |
<parameter value="{{ test_plan["test_timeout"] }}" name="timeout"/>
|
|
45 |
<parameter value="cmd.exe" name="file"/>
|
|
46 |
{% for setd in test_plan.sets -%}
|
628
|
47 |
<parameter value="/C NaviTest.bat %DEFAULT_GENERIC->NaviPowerIP% %DEFAULT_GENERIC->NaviPowerPort% %DEFAULT_GENERIC->NaviSerialPort% %TEST_RUN_SANDBOX% ATS3Drop\images\{{ os.path.basename(atsself.get_sorted_images(setd)[0]) }} c:\temp\%DEFAULT_GENERIC->name%-console.log %DEFAULT_GENERIC->NaviPowerType%" name="parameters"/>
|
588
|
48 |
{% endfor -%}
|
|
49 |
<parameter value="c:\temp\%DEFAULT_GENERIC->name%-console.log" name="result-file"/>
|
|
50 |
<parameter value="true" name="local-execute"/>
|
|
51 |
<parameter value="true" name="local-result"/>
|
|
52 |
<parameter value="true" name="extract-html"/>
|
|
53 |
{% if test_plan['test_type'] == 'tef' -%}
|
|
54 |
<parameter name="parser" value="TEFResultParser" />
|
|
55 |
{% elif test_plan['test_type'] == 'mtf' -%}
|
|
56 |
<parameter name="parser" value="MTFResultParser" />
|
|
57 |
{% else %}
|
|
58 |
<parameter name="parser" value="RTestResultParser" />
|
|
59 |
{% endif %}
|
|
60 |
</parameters>
|
|
61 |
</task>
|
|
62 |
|
|
63 |
<finalization>
|
|
64 |
<task>
|
|
65 |
<type>CleanupTask</type>
|
|
66 |
<parameters>
|
|
67 |
<parameter value="true" name="upload-files"/>
|
|
68 |
</parameters>
|
|
69 |
</task>
|
|
70 |
</finalization>
|
|
71 |
</execution>
|
|
72 |
|
|
73 |
<postActions>
|
|
74 |
{% for action_type, parameters in test_plan.post_actions -%}
|
|
75 |
{% if action_type == 'RunProcessAction' %}
|
|
76 |
<action>
|
|
77 |
<type>{{ action_type }}</type>
|
|
78 |
<parameters>
|
|
79 |
{% for name, value in parameters -%}
|
|
80 |
<parameter name="{{ name }}" value="{{ value }}"/>
|
|
81 |
{% endfor -%}
|
|
82 |
</parameters>
|
|
83 |
</action>
|
|
84 |
{% endif %}
|
|
85 |
{% endfor -%}
|
|
86 |
{% if test_plan['report_email'] -%}
|
|
87 |
<action>
|
|
88 |
<type>EmailAction</type>
|
|
89 |
<parameters>
|
|
90 |
<parameter value="Release testing" name="subject"/>
|
|
91 |
<parameter value="{{ test_plan['report_email'] }}" name="to"/>
|
|
92 |
<parameter value="simplelogger" name="format"/>
|
|
93 |
</parameters>
|
|
94 |
</action>
|
|
95 |
{% endif %}
|
|
96 |
{% if test_plan['diamonds_build_url'] -%}
|
|
97 |
<action>
|
|
98 |
<type>DiamondsAction</type>
|
|
99 |
</action>
|
|
100 |
{% endif %}
|
|
101 |
</postActions>
|
|
102 |
|
|
103 |
</testrun>
|