Added new BC test
authorMaciej Seroka <maciejs@symbian.org>
Mon, 19 Oct 2009 11:18:06 +0100
changeset 688 c027e7c6431e
parent 687 b28792fa78e5
child 691 a7fa60f12ba2
Added new BC test
common/tools/ats/bctest/connsetui/connsetui.pl
common/tools/ats/bctest/connsetui/connsetui.xml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/connsetui/connsetui.pl	Mon Oct 19 11:18:06 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 for Connection Settings UI BC tests
+
+
+use strict;
+use File::Copy;
+use File::Path;
+
+unlink "connsetuitest.zip";
+rmtree "temp";
+mkpath "temp/connsetuitest/general/testframework";
+mkpath "temp/connsetuitest/winscw_udeb";
+
+my $epoc=$ENV{'EPOCROOT'} . "epoc32/";
+copy("connsetui.xml",	"temp/test.xml");
+
+copy($epoc . "release/winscw/udeb/BCConnSettingsUITest.dll",		"temp/connsetuitest/winscw_udeb/BCConnSettingsUITest.dll") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/TestFramework_connsetui.ini",	"temp/connsetuitest/general/testframework/TestFramework_connsetui.ini") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/UI_ConnSet.cfg",				"temp/connsetuitest/general/testframework/UI_ConnSet.cfg") or die "failed : $!";
+copy($epoc . "winscw/c/testframework/tcConnSet.cfg",				"temp/connsetuitest/general/testframework/tcConnSet.cfg") or die "failed : $!";
+
+system("7z a -tzip connsetuitest.zip ./temp/*");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/common/tools/ats/bctest/connsetui/connsetui.xml	Mon Oct 19 11:18:06 2009 +0100
@@ -0,0 +1,87 @@
+<?xml version="1.0"?>
+<test>
+	<id>1</id>
+	<owner>admin</owner>
+	<priority>10</priority>
+	<buildid></buildid>
+	<name>Connection Settings UI BC Tests</name>
+	<target>
+        <device rank="master" alias="emulator_udeb">
+            <property name="HARNESS" value="ATSINTERFACE" />
+        </device>
+	</target>
+	<plan id="" name="Connection Settings UI BC WINSCW UDEB" harness="ATSINTERFACE" enabled="true" passrate="100">
+		<target>
+			<device rank="master" alias="emulator_udeb"/>
+		</target>
+		<session id="" name="Connection Settings UI Compatibility Tests" harness="ATSINTERFACE" enabled="true" passrate="100">
+			<set id="" name="connsetui" harness="ATSINTERFACE" enabled="true" passrate="100">
+				<case id="" name="connsetui" 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="BCConnSettingsUITest.dll (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="binary"/>
+							<param src="bcconnsettingsuitest.dll"/>
+							<param dst="c:\sys\bin\bcconnsettingsuitest.dll"/>
+							<param component-path="connsetuitest" />
+						</params>
+					</step>
+					<step id="" name="TestFramework_connsetui.ini (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/testframework_connsetui.ini"/>
+							<param dst="c:\testframework\testframework.ini"/>
+							<param component-path="connsetuitest" />
+						</params>
+					</step>
+					<step id="" name="UI_ConnSet.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/ui_connset.cfg"/>
+							<param dst="c:\testframework\ui_connset.cfg"/>
+							<param component-path="connsetuitest" />
+						</params>
+					</step>
+					<step id="" name="tcConnSet.cfg (install)" harness="ATSINTERFACE" enabled="true" passrate="100" significant="false">
+						<command>install</command>
+						<params>
+							<param type="data"/>
+							<param src="testframework/tcconnset.cfg"/>
+							<param dst="c:\testframework\tcconnset.cfg"/>
+							<param component-path="connsetuitest" />
+						</params>
+					</step>
+					<step id="" name="tcConnSet (execute)" harness="ATSINTERFACE" enabled="true" passrate="100">
+						<command>execute</command>
+						<params>
+							<param file="atsinterface.exe"/>
+							<param parameters="-testmodule testcombiner -config c:\testframework\tcConnSet.cfg"/>
+							<param result-file="c:\spd_logs\xml\testcombiner.xml"/>
+                            <param timeout="1200"/>
+						</params>
+					</step>
+					<step id="" name="tcConnSet (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>connsetuitest/winscw_udeb/bcconnsettingsuitest.dll</file>
+		<file>connsetuitest/general/testframework/testframework_connsetui.ini</file>
+		<file>connsetuitest/general/testframework/ui_connset.cfg</file>
+		<file>connsetuitest/general/testframework/tcConnSet.cfg</file>
+	</files>
+</test>