Add new BC test
authorMaciej Seroka <maciejs@symbian.org>
Mon, 12 Oct 2009 11:52:51 +0100
changeset 643 e981400ef2ee
parent 642 5202cdc42f67
child 644 7d99049bc47b
child 645 212217a07072
Add new BC test
common/tools/ats/bctest/locationsrv/locsel/locsel.pl
common/tools/ats/bctest/locationsrv/locsel/locsel.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/locsel/locsel.pl	Mon Oct 12 11:52:51 2009 +0100
@@ -0,0 +1,35 @@
+#!/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 Landmarks Application Editor BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "locseltest.zip";
+rmtree "temp";
+mkpath "temp/locseltest/general/testframework";
+mkpath "temp/locseltest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("locsel.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/lmkselector.dll",					"temp/locseltest/winscw_udeb/lmkselector.dll") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/testframework_locsel.ini",		"temp/locseltest/general/testframework/testframework_locsel.ini") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/ui_lmkselector.cfg",			"temp/locseltest/general/testframework/ui_lmkselector.cfg") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/tclmkselector.cfg",			"temp/locseltest/general/testframework/tclmkselector.cfg") or die "failed : $!";
+
+system("7z a -tzip locseltest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/locsel/locsel.xml	Mon Oct 12 11:52:51 2009 +0100
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Landmarks Selector BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="ATSINTERFACE" />
+        </device>
+	</target>
+	<plan id="" name="Landmarks Selector BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Landmarks Selector Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Landmarks Selector" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="Landmarks Selector" 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="LmkSelector.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="lmkselector.dll"/>
+							<param dst="c:\sys\bin\lmkselector.dll"/>
+							<param component-path="locseltest" />
+						</params>
+					</step>
+					<step id="" name="TestFramework_locsel.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testframework_locsel.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="locseltest" />
+						</params>
+					</step>
+					<step id="" name="UI_LmkSelector.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/ui_lmkselector.cfg"/>
+							<param dst="c:\testframework\ui_lmkselector.cfg"/>
+							<param component-path="locseltest" />
+						</params>
+					</step>
+					<step id="" name="tcLmkSelector.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/tclmkselector.cfg"/>
+							<param dst="c:\testframework\tclmkselector.cfg"/>
+							<param component-path="locseltest" />
+						</params>
+					</step>
+					<step id="" name="tcLmkSelector (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testcombiner -config C:\TestFramework\tcLmkSelector.cfg"/>
+							<param result-file="c:\spd_logs\xml\testcombiner.xml"/>
+                            <param timeout="1200"/>
+						</params>
+					</step>
+					<step id="" name="tcLmkSelector (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>locseltest/winscw_udeb/lmkselector.dll</file>
+		<file>locseltest/general/testframework/testframework_locsel.ini</file>
+		<file>locseltest/general/testframework/ui_lmkselector.cfg</file>
+		<file>locseltest/general/testframework/tclmkselector.cfg</file>
+	</files>
+</test>