using System.Threading.Tasks;
using NUnit.Framework;
+using Tizen.System;
+using System.Linq;
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;
}
[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()
{