adding browser tests
authorBrendan Donegan brendand@symbian.org
Mon, 14 Sep 2009 15:36:19 +0100
changeset 440 097b220a49d0
parent 439 f9eb0ea5b237
child 441 efd6b490c9fa
adding browser tests
common/tools/ats/bctest/browser/browser.pl
common/tools/ats/bctest/browser/browser.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/browser/browser.pl	Mon Sep 14 15:36:19 2009 +0100
@@ -0,0 +1,31 @@
+#!/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:
+# Brendan Donegan <brendand@symbian.org>
+#
+# Description:
+# Script to build ATS test drop for BC Profiles Engine tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "browser.zip";
+##rmtree "temp";
+mkpath "temp/bcbrowser/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("browser.xml", "temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/favouritesbctest.dll",     "temp/bcbrowser/winscw_udeb/favouritesbctest.dll");
+
+system("7z a -tzip browser.zip ./temp/*");
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/browser/browser.xml	Mon Sep 14 15:36:19 2009 +0100
@@ -0,0 +1,58 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Browser 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="Browser BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Browser Binary Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="Browser" harness="ATSINTERFACE" enabled="true" passrate="100">
+                <case id="" name="Browser Favourites API" 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="favouritesbctest.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="favouritesbctest.dll"/>
+							<param dst="c:\sys\bin\favouritesbctest.dll"/>
+							<param component-path="bcbrowser" />
+						</params>
+					</step>
+					<step id="" name="favouritesbctest (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule favouritesbctest"/>
+                            <param result-file="c:\spd_logs\xml\favouritesbctest.xml"/>
+                            <param timeout="3600"/>
+						</params>
+					</step>
+					<step id="" name="favouritesbctest (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>bcwebsrv/winscw_udeb/favouritesbctest.dll</file>
+    </files>
+</test>
\ No newline at end of file