bctest drop added
authorroyt <tathagatar@symbian.org>
Tue, 15 Sep 2009 15:06:56 +0100
changeset 451 4a19f67f9ac3
parent 450 70cf3d9c6e51
child 452 a95e14867851
bctest drop added
common/tools/ats/bctest/locationsrv/landmarks_api/landmarks.xml
common/tools/ats/bctest/locationsrv/landmarks_api/landmarks_api.pl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/landmarks_api/landmarks.xml	Tue Sep 15 15:06:56 2009 +0100
@@ -0,0 +1,108 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Landmarks API BCTests</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 API BCTests WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Landmarks API BCTests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Landmarks" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="Landmarks" 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="testlandmarksapi.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="testlandmarksapi.dll"/>
+							<param dst="c:\sys\bin\testlandmarksapi.dll"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+                    <step id="" name="testframework_Landmarks.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testframework_Landmarks.ini"/>
+							<param dst="C:\TestFramework\TestFramework.ini"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+					<step id="" name="testlandmarksapi.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework\testlandmarksapi.cfg"/>
+							<param dst="C:\testframework\testlandmarksapi.cfg"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+					<step id="" name="smiltemplate.mif (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="smiltemplate.mif"/>
+							<param dst="C:\testing\data\smiltemplate.mif"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+					<step id="" name="testEposLmImport.lmx (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testEposLmImport.lmx"/>
+							<param dst="C:\testing\data\testEposLmImport.lmx"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+					<step id="" name="testEposLmImportCollection.lmx (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testEposLmImportCollection.lmx"/>
+							<param dst="C:\testing\data\testEposLmImportCollection.lmx"/>
+							<param component-path="landmarks" />
+						</params>
+					</step>
+					<step id="" name="landmarks (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testscripter -config C:\testframework\testlandmarksapi.cfg"/>
+                            <param result-file="c:\spd_logs\xml\testscripter.xml"/>
+                            <param timeout="3600"/>
+						</params>
+					</step>
+					<step id="" name="Landmarks_log (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>landmarks/winscw_udeb/testlandmarksapi.dll</file>
+		<file>landmarks/general/testframework/TestFramework_Landmarks.ini</file>
+		<file>landmarks/general/testframework/testlandmarksapi.cfg</file>
+        <file>landmarks/general/smiltemplate.mif</file>
+        <file>landmarks/general/testEposLmImport.lmx</file>
+        <file>landmarks/general/testEposLmImportCollection.lmx</file>
+    </files>
+</test>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/landmarks_api/landmarks_api.pl	Tue Sep 15 15:06:56 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.
+#
+# Description:
+# Script to build ATS test drop for landmarks_api tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "landmarks_api.zip";
+##rmtree "temp";
+mkpath "temp/landmarks/general/testframework";
+mkpath "temp/landmarks/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("landmarks.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/testlandmarksapi.dll",				"temp/landmarks/winscw_udeb/testlandmarksapi.dll");
+copy($epoc . "winscw/c/testframework/TestFramework_Landmarks.ini",		"temp/landmarks/general/testframework/TestFramework_Landmarks.ini");
+copy($epoc . "winscw/c/testframework/testlandmarksapi.cfg",				"temp/landmarks/general/testframework/testlandmarksapi.cfg");
+copy($epoc . "winscw/c/testing/data/smiltemplate.mif",					"temp/landmarks/general/smiltemplate.mif");
+copy($epoc . "winscw/c/testing/data/testEposLmImport.lmx",				"temp/landmarks/general/testEposLmImport.lmx");
+copy($epoc . "winscw/c/testing/data/testEposLmImportCollection.lmx",	"temp/landmarks/general/testEposLmImportCollection.lmx");
+
+system("7z a -tzip landmarks_api.zip ./temp/*");