From 7b0edf5dfb2b235f61e45aacc72968b32b892a0a Mon Sep 17 00:00:00 2001 From: "chleun.moon" Date: Mon, 28 May 2018 21:22:42 +0900 Subject: [PATCH] [Download][Non-ACR][manual] Fix path to save a file Change-Id: I596444da6decef9302dc558accb1ff031cfc19ef Signed-off-by: Cheoleun Moon --- tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs | 9 ++++++--- tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml | 3 ++- 2 files changed, 8 insertions(+), 4 deletions(-) mode change 100755 => 100644 tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs diff --git a/tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs b/tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs old mode 100755 new mode 100644 index 8dfd4aa..6ce4a89 --- a/tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs +++ b/tct-suite-vs/Tizen.Download.Manual.Tests/testcase/TSRequest.cs @@ -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() { diff --git a/tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml b/tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml index 2737a04..af71a13 100755 --- a/tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml +++ b/tct-suite-vs/Tizen.Download.Manual.Tests/tizen-manifest.xml @@ -9,5 +9,6 @@ http://tizen.org/privilege/download http://tizen.org/privilege/haptic + http://tizen.org/privilege/mediastorage - \ No newline at end of file + -- 2.7.4