Added new BC test
authorMaciej Seroka <maciejs@symbian.org>
Thu, 15 Oct 2009 13:54:16 +0100
changeset 671 8ab1b0a53c7c
parent 670 6e80d1c1b9d9
child 672 7e9d9a500952
Added new BC test
common/tools/ats/bctest/tlocale/tlocale.pl
common/tools/ats/bctest/tlocale/tlocale.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/tlocale/tlocale.pl	Thu Oct 15 13:54:16 2009 +0100
@@ -0,0 +1,34 @@
+#!/usr/bin/perl
+# Copyright (c) 2009 Symbian Foundation Ltd
+# This component and the accompanying materials are made available
+# under the terms of the License "Eclipse Public License v1.0"
+# which accompanies this distribution, and is available
+# at the URL "http://www.eclipse.org/legal/epl-v10.html".
+#
+# Initial Contributors:
+# Symbian Foundation Ltd - initial contribution.
+#
+# Contributors:
+# Maciej Seroka <maciejs@symbian.org>
+#
+# Description:
+# Script to build ATS test drop for TLocale BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "tlocaletest.zip";
+rmtree "temp";
+mkpath "temp/tlocaletest/general/testframework";
+mkpath "temp/tlocaletest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("tlocale.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/tlocale.dll",						"temp/tlocaletest/winscw_udeb/tlocale.dll") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/testframework_tlocale.ini",	"temp/tlocaletest/general/testframework/testframework_tlocale.ini") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/tlocale.cfg",					"temp/tlocaletest/general/testframework/tlocale.cfg") or die "failed : $!";
+
+system("7z a -tzip tlocaletest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/tlocale/tlocale.xml	Thu Oct 15 13:54:16 2009 +0100
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>TLocale BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="ATSINTERFACE" />
+        </device>
+	</target>
+	<plan id="" name="TLocale BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="TLocale Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="tlocale" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="tlocale" harness="ATSINTERFACE" enabled="true" passrate="100">
+                    <step id="" name="SPD_Logs XML (makedir)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+                        <command>makedir</command>
+                        <params>
+                            <param dir="c:\spd_logs\xml" /> 
+                        </params>
+                    </step>
+                    <step id="" name="tlocale.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="tlocale.dll"/>
+							<param dst="c:\sys\bin\tlocale.dll"/>
+							<param component-path="tlocaletest" />
+						</params>
+					</step>
+					<step id="" name="testframework_tlocale.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testframework_tlocale.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="tlocaletest" />
+						</params>
+					</step>
+					<step id="" name="tlocale.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/tlocale.cfg"/>
+							<param dst="c:\testframework\tlocale.cfg"/>
+							<param component-path="tlocaletest" />
+						</params>
+					</step>
+					<step id="" name="tlocale (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testscripter -config C:\TestFramework\tlocale.cfg"/>
+							<param result-file="c:\spd_logs\xml\testscripter.xml"/>
+                            <param timeout="600"/>
+						</params>
+					</step>
+					<step id="" name="tlocale (fetch-log)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>fetch-log</command>
+						<params>
+							<param path="c:\logs\testframework\TestReport.txt" /> 
+						</params>
+					</step>
+				</case>
+			</set>
+		</session>
+	</plan>
+	<files>
+		<file>tlocaletest/winscw_udeb/tlocale.dll</file>
+		<file>tlocaletest/general/testframework/testframework_tlocale.ini</file>
+		<file>tlocaletest/general/testframework/tlocale.cfg</file>
+	</files>
+</test>