Updated ats_specialise_test_drop.pl to insert FileStoreAction param
authorMaciej Seroka <maciejs@symbian.org>
Wed, 09 Dec 2009 11:48:17 +0000
changeset 819 3df98b3b0a8d
parent 818 a9bd5a067865
child 820 2a9e6403efaf
Updated ats_specialise_test_drop.pl to insert FileStoreAction param
common/tools/ats/ats_specialise_test_drop.pl
common/tools/ats/smoketest/Group/smoketest.xml
--- a/common/tools/ats/ats_specialise_test_drop.pl	Tue Dec 08 16:19:57 2009 +0000
+++ b/common/tools/ats/ats_specialise_test_drop.pl	Wed Dec 09 11:48:17 2009 +0000
@@ -118,11 +118,13 @@
     forcearray => [ 'name', 'id','owner','priority','buildid','postaction','type','target','device', 'property', 'command', 'param'],#
         keyattr => [] );
     
-        
 # Insert the specified test drop name, if any.
 $test_drop->{'test'}->{'name'}->[0] = $test_drop_name, if $test_drop_name;
 # Insert the specified build id, if any.
 $test_drop->{'test'}->{'buildid'}->[0] = $build_id, if $build_id;
+# Insert the FileStoreAction parameter
+my $postaction_params = $test_drop->{'test'}->{'postAction'}->[0]->{'params'}->{'param'};
+$postaction_params->[1] = { 'name' => "to-folder", 'value' => "\\\\localhost\\ats3_testdrop_arrivals\\reports\\" . $test_drop_name };
 
 if ($host_name) { # Also insert specified host name
 	my $devices = $test_drop->{'test'}->{'target'}->[0]->{'device'};
--- a/common/tools/ats/smoketest/Group/smoketest.xml	Tue Dec 08 16:19:57 2009 +0000
+++ b/common/tools/ats/smoketest/Group/smoketest.xml	Wed Dec 09 11:48:17 2009 +0000
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0"?>
 <test>
 	<id>1</id>
 	<owner>admin</owner>
@@ -7,7 +7,6 @@
 	<postAction>
 		<type>FileStoreAction</type>
 		<params>
-			<param name="to-folder" value="\\localhost\ats3_testdrop_arrivals\reports\§RUN_NAME§"/>
 			<param name="report-type" value="ATS3_REPORT"/>
 		</params>
     </postAction>