[Download][Non-ACR][manual] Fix path to save a file 49/180349/2
authorchleun.moon <chleun.moon@samsung.com>
Mon, 28 May 2018 12:22:42 +0000 (21:22 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Mon, 28 May 2018 12:39:16 +0000 (21:39 +0900)
Change-Id: I596444da6decef9302dc558accb1ff031cfc19ef
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs [changed mode: 0755->0644]
tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml

old mode 100755 (executable)
new mode 100644 (file)
index 8dfd4aa..6ce4a89
@@ -1,5 +1,7 @@
 using System.Threading.Tasks;
 using NUnit.Framework;
+using Tizen.System;
+using System.Linq;
 
 namespace Tizen.Content.Download.Tests
 {
@@ -41,7 +43,8 @@ namespace Tizen.Content.Download.Tests
         {
             Tizen.Log.Info(Globals.LogTag, "Init() - Precondition");
             url = "http://static.campaign.naver.com/0/hangeul/2011/img/img_family.gif";
-            destinationPath = "/opt/usr/home/owner/media/Downloads/";
+            destinationPath = StorageManager.Storages.Where(s => s.StorageType == StorageArea.Internal).FirstOrDefault().RootDirectory + "/Downloads";
+            Tizen.Log.Info(Globals.LogTag, "Destination path: " + destinationPath);
             bFlag = false;
         }
 
@@ -104,9 +107,9 @@ namespace Tizen.Content.Download.Tests
         [Property("CRITERIA", "PRW")]
         [Property("AUTHOR", "Yuvaraj S, yuvaraj.s@samsung.com")]
         [Precondition(1, "Connect to Wifi or DataNetwork")]
-        [Precondition(2, "Delete the file \"img_family.gif\"  if it is already exist in the \"/opt/usr/home/owner/media/Downloads\" directory in your device.")]
+        [Precondition(2, "Delete the file \"img_family.gif\"  if it is already exist in the \"/opt/usr/home/owner/media/Downloads\" or \"/opt/usr/home/owner/content/Downloads\" directory in your device.")]
         [Step(1, "Click run TC")]
-        [Step(2, "After 5 seconds, check the \"/opt/usr/home/owner/media/Downloads\" path in your device.")]
+        [Step(2, "After 5 seconds, check the \"/opt/usr/home/owner/media/Downloads\" or \"/opt/usr/home/owner/content/Downloads\" path in your device.")]
         [Step(3, "If \"img_family.gif\" file is exist, then click on Pass else Fail")]
         public static async Task DestinationPath_READ_WRITE()
         {
index 2737a04..af71a13 100755 (executable)
@@ -9,5 +9,6 @@
     <privileges>\r
         <privilege>http://tizen.org/privilege/download</privilege>\r
         <privilege>http://tizen.org/privilege/haptic</privilege>\r
+        <privilege>http://tizen.org/privilege/mediastorage</privilege>\r
     </privileges>\r
-</manifest>
\ No newline at end of file
+</manifest>\r