From 52c015d445bb3322ff1df37dae09680aa7439926 Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Wed, 24 Apr 2019 11:46:43 +0900 Subject: [PATCH] [Packagemanager][Non-ACR] Add missing TCs for Packagemanger Change-Id: I65bd39113b772491dab16ca5bd1f0ba5ea9d65d8 Signed-off-by: Ilho Kim --- .../testcase/TSPackageManager.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tct-suite-vs/Tizen.Packagemanager.Tests/testcase/TSPackageManager.cs b/tct-suite-vs/Tizen.Packagemanager.Tests/testcase/TSPackageManager.cs index 4dfb8af..547af19 100755 --- a/tct-suite-vs/Tizen.Packagemanager.Tests/testcase/TSPackageManager.cs +++ b/tct-suite-vs/Tizen.Packagemanager.Tests/testcase/TSPackageManager.cs @@ -38,6 +38,8 @@ namespace Tizen.Applications.Tests private const string TepResourcePkgPath3 = "/home/owner/share/res/tepresource-hashvalue03.tep"; private const string TepResourcePkgPath4 = "/home/owner/share/res/tepresource-hashvalue04.tep"; + private const string ArchivePkgPath = "/home/owner/share/res/pkgarchivetest.tpk"; + private EventHandler _installProgressCallback; private EventHandler _updateProgressCallback; private EventHandler _uninstallProgressCallback; @@ -1349,5 +1351,20 @@ namespace Tizen.Applications.Tests CertCompareResultType result = PackageManager.CompareCertInfoByApplicationId(app.ApplicationId, app.ApplicationId); Assert.IsTrue(result == CertCompareResultType.Match || result == CertCompareResultType.BothNoCert, "Certificate compare result is unmatched ({0})", app.ApplicationId); } + + [Test] + [Category("P1")] + [Description("Check if GetPackageArchive returns correct value")] + [Property("SPEC", "Tizen.Applications.PackageManager.GetPackageArchive M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Ilho Kim, ilho159.kim@samsung.com")] + public void GetPackageArchive_RETURN_VALUE() + { + // TEST CODE + var archive = PackageManager.GetPackageArchive(ArchivePkgPath); + Assert.IsInstanceOf(archive, "GetPackageArchive should return PackageArchive"); + Assert.AreEqual("pkgarchivetest", archive.Id, "Id of archive is not correct"); + } } } -- 2.7.4