<?xml version="1.0" encoding="ISO-8859-1"?>
<test>
    <buildid>null</buildid>
    <name>Cfw Automated Tests</name>
    <target>
        <device rank="none" alias="DEFAULT">
            <property name="HARNESS" value="EUNIT" />
            <property name="TYPE" value="Ariane" />
        </device>
    </target>
    <plan name="Cfw automated test plan" harness="EUNIT" enabled="true" passrate="100">
        <session name="session" harness="EUNIT" enabled="true" passrate="100">
            <set name="set" harness="EUNIT" enabled="true" passrate="100">
                <target>
                    <device rank="master" alias="DEFAULT"/>
                </target>
                <case name="Test Case 1" harness="EUNIT" enabled="true" passrate="100">
                    <flash target-alias="DEFAULT" images="ATS3Drop/images/sydo_cfw_ats3_image.fpsx" />
                    <flash target-alias="DEFAULT" images="ATS3Drop/images/sydo_cfw_ats3_image_udaerase.fpsx" />
                    
                    <!-- Create CTC coverage result folder -->
                    <step name="Create CTC log dir" harness="EUNIT" enabled="true" passrate="100" significant="false">
                        <command>makedir</command>
                        <params>
                            <param dir="c:\data\ctc\"/>
                        </params>
                    </step>

                    <!-- Start CTC manager -->
                    <step name="CTC start" harness="EUNIT" enabled="true" passrate="100" significant="false">
                        <command>execute</command>
                        <params>
                            <param file="z:\sys\bin\ctcman.exe"/>
                        </params>
                    </step>

                    <!-- Create EUnit log dir -->
                    <step name="Create EUnit log dir" harness="EUNIT" enabled="true" passrate="100" significant="false">
                        <command>makedir</command>
                        <params>
                            <param dir="c:\shared\eunit\logs\"/>
                        </params>
                    </step>

                    <!-- Execute tests -->
                    <step name="Execute tests" harness="EUNIT" enabled="true" passrate="100" significant="true">
                        <command>execute</command>
                        <params>
                            <param parameters="/l xml /e s60appenv /w 20 /t 45 mt_cfservices mt_cfactionplugin mt_cfclient mt_cfcontextsourcemanager mt_cfcontextsourcesettingsmanager mt_cfscriptengine mt_basicoperationsplugin mt_cfoperationpluginmanager ut_ccfcontextmanager ut_ccfengine ut_cfactivatorengine ut_cfcontextsourcemanager ut_cfcontextsourcesettingsmanager ut_cfoperationpluginmanager"/>
                            <param timeout="360"/>
                            <param result-file="c:\shared\eunit\logs\EUnit_log.xml"/>
                            <param file="z:\sys\bin\EUNITEXERUNNER.EXE"/>
                        </params>
                    </step>

                    <!-- Save CTC coverage data -->
                    <step name="Save CTC data" harness="EUNIT" enabled="true" passrate="100" significant="false">
                        <command>execute</command>
                        <params>
                            <param parameters="writefile"/>
                            <param file="z:\sys\bin\ctcman.exe"/>
                        </params>
                    </step>

                    <!-- Fetch and clean CTC data -->
                    <step name="Fetch and clean CTC data" harness="EUNIT" enabled="true" passrate="100" significant="false">
                        <command>fetch-log</command>
                        <params>
                            <param delete="true"/>
                            <param path="c:\data\ctc\ctcdata.txt"/>
                        </params>
                    </step>
                </case>
            </set>
        </session>
    </plan>
    <files>
        <file>ATS3Drop/images/sydo_cfw_ats3_image.fpsx</file>
        <file>ATS3Drop/images/sydo_cfw_ats3_image_udaerase.fpsx</file>
    </files>
    <postAction>
        <type>SendEmailAction</type>
        <params>
            <param name="type" value="ATS3_REPORT"/>
            <param name="to" value="mika.kalkainen@nokia.com;ilkka.karvonen@nokia.com"/>
            <param name="subject" value="ATS3 report for §RUN_NAME§ §RUN_START_DATE§ §RUN_START_TIME§"/>
            <param name="send-files" value="true"/>
        </params>
    </postAction>
    <postAction>
        <type>FileStoreAction</type>
        <params>
            <param name="to-folder" value="\\ousrv058\data$\ATS3Reports\S60_3_2\SyDo\systemswservices\cfw\"/>
        </params>
    </postAction>
</test>
