Add new BC test
authorMaciej Seroka <maciejs@symbian.org>
Mon, 12 Oct 2009 15:02:40 +0100
changeset 653 3e54a8e7805a
parent 652 7c066cc959c2
child 654 b64b5a0f8662
Add new BC test
common/tools/ats/bctest/locationsrv/locaqu/locaqu.pl
common/tools/ats/bctest/locationsrv/locaqu/locaqu.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/locaqu/locaqu.pl	Mon Oct 12 15:02:40 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 Application Editor BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "locaqutest.zip";
+rmtree "temp";
+mkpath "temp/locaqutest/general/testframework";
+mkpath "temp/locaqutest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("locaqu.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/testlbslocacquisition.dll",		"temp/locaqutest/winscw_udeb/testlbslocacquisition.dll") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/testframework_LocAqu.ini",		"temp/locaqutest/general/testframework/testframework_LocAqu.ini") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/testlbslocacquisition.cfg",	"temp/locaqutest/general/testframework/testlbslocacquisition.cfg") or die "failed : $!";
+
+system("7z a -tzip locaqutest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/locationsrv/locaqu/locaqu.xml	Mon Oct 12 15:02:40 2009 +0100
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Location Acquisition BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="ATSINTERFACE" />
+        </device>
+	</target>
+	<plan id="" name="Location Acquisition BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Location Acquisition Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Location Acquisition" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="Location Acquisition" 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="testlbslocacquisition.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="testlbslocacquisition.dll"/>
+							<param dst="c:\sys\bin\testlbslocacquisition.dll"/>
+							<param component-path="locaqutest" />
+						</params>
+					</step>
+					<step id="" name="testframework_LocAqu.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testframework_locaqu.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="locaqutest" />
+						</params>
+					</step>
+					<step id="" name="testlbslocacquisition.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testlbslocacquisition.cfg"/>
+							<param dst="c:\testframework\testlbslocacquisition.cfg"/>
+							<param component-path="locaqutest" />
+						</params>
+					</step>
+					<step id="" name="testlbslocacquisition (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testscripter -config c:\testframework\testlbslocacquisition.cfg"/>
+							<param result-file="c:\spd_logs\xml\testscripter.xml"/>
+                            <param timeout="1200"/>
+						</params>
+					</step>
+					<step id="" name="testlbslocacquisition (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>locaqutest/winscw_udeb/testlbslocacquisition.dll</file>
+		<file>locaqutest/general/testframework/testframework_LocAqu.ini</file>
+		<file>locaqutest/general/testframework/testlbslocacquisition.cfg</file>
+	</files>
+</test>