New Landmarks Search BC tests
authorMaciej Seroka <maciejs@symbian.org>
Tue, 15 Sep 2009 15:46:43 +0100
changeset 452 a95e14867851
parent 451 4a19f67f9ac3
child 454 d6e41da68616
child 476 0af8245d50a0
New Landmarks Search BC tests
common/tools/ats/bctest/locationsrv/lmsearch/lmsearch.pl
common/tools/ats/bctest/locationsrv/lmsearch/lmsearch.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/lmsearch/lmsearch.pl	Tue Sep 15 15:46:43 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 Landmarks Search BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "lmsearchtest.zip";
+##rmtree "temp";
+mkpath "temp/lmsearchtest/general/testframework";
+mkpath "temp/lmsearchtest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("lmsearch.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/testlmksearchapi.dll",			"temp/lmsearchtest/winscw_udeb/testlmksearchapi.dll");
+copy($epoc . "winscw/c/testframework/TestFramework_lmsearch.ini",	"temp/lmsearchtest/general/testframework/TestFramework_lmsearch.ini");
+copy($epoc . "winscw/c/testframework/testlmksearchapi.cfg",			"temp/lmsearchtest/general/testframework/testlmksearchapi.cfg");
+
+system("7z a -tzip lmsearchtest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/lmsearch/lmsearch.xml	Tue Sep 15 15:46:43 2009 +0100
@@ -0,0 +1,78 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Landmarks Search BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="ATSINTERFACE" />
+            <property name="NAME" value="emulator_udeb" />
+        </device>
+	</target>
+	<plan id="" name="Landmarks Search BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Landmarks Search Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Landmarks Search" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="Landmarks Search" 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="testlmksearchapi.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="testlmksearchapi.dll"/>
+							<param dst="c:\sys\bin\testlmksearchapi.dll"/>
+							<param component-path="lmsearchtest" />
+						</params>
+					</step>
+					<step id="" name="TestFramework_lmsearch.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/TestFramework_lmsearch.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="lmsearchtest" />
+						</params>
+					</step>
+					<step id="" name="testlmksearchapi.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testlmksearchapi.cfg"/>
+							<param dst="c:\testframework\testlmksearchapi.cfg"/>
+							<param component-path="lmsearchtest" />
+						</params>
+					</step>
+					<step id="" name="testlmksearchapi (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testscripter -config c:\testframework\testlmksearchapi.cfg"/>
+							<param result-file="c:\spd_logs\xml\testscripter.xml"/>
+                            <param timeout="3600"/>
+						</params>
+					</step>
+					<step id="" name="testlmksearchapi (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>lmsearchtest/winscw_udeb/testlmksearchapi.dll</file>
+		<file>lmsearchtest/general/testframework/TestFramework_lmsearch.ini</file>
+		<file>lmsearchtest/general/testframework/testlmksearchapi.cfg</file>
+	</files>
+</test>