From: lokilee73 Date: Fri, 4 May 2018 10:37:39 +0000 (+0900) Subject: [USB][Non-ACR][Modify NotSupported Exception for Manual] X-Git-Tag: public_m1_final~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e0117ab4e9f8f463c09757718467045e3e0a6fb;p=test%2Ftct%2Fcsharp%2Fapi.git [USB][Non-ACR][Modify NotSupported Exception for Manual] Change-Id: I9d5396dcf09c35d673ebac138cdd5d52b5f29c4b Signed-off-by: lokilee73 --- diff --git a/tct-suite-vs/Tizen.Usb.Manual.Tests/Tizen.Usb.Manual.Tests.sln b/tct-suite-vs/Tizen.Usb.Manual.Tests/Tizen.Usb.Manual.Tests.sln index 4bab17f..599c343 100755 --- a/tct-suite-vs/Tizen.Usb.Manual.Tests/Tizen.Usb.Manual.Tests.sln +++ b/tct-suite-vs/Tizen.Usb.Manual.Tests/Tizen.Usb.Manual.Tests.sln @@ -12,8 +12,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplate", "..\Templa EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ManualTemplateForWearable", "..\Template\ManualTemplateForWearable\ManualTemplateForWearable.csproj", "{D36CED01-29BD-4EB3-8903-62E0BF2A822D}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.Usb.Tests", "..\Tizen.Usb.Tests\Tizen.Usb.Tests.csproj", "{9FEED0C8-3785-40F1-A6D8-713B9D130693}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -84,18 +82,6 @@ Global {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x64.Build.0 = Release|Any CPU {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x86.ActiveCfg = Release|Any CPU {D36CED01-29BD-4EB3-8903-62E0BF2A822D}.Release|x86.Build.0 = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|Any CPU.Build.0 = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|x64.ActiveCfg = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|x64.Build.0 = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|x86.ActiveCfg = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Debug|x86.Build.0 = Debug|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|Any CPU.ActiveCfg = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|Any CPU.Build.0 = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|x64.ActiveCfg = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|x64.Build.0 = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|x86.ActiveCfg = Release|Any CPU - {9FEED0C8-3785-40F1-A6D8-713B9D130693}.Release|x86.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSHotPluggedEventArgs.cs b/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSHotPluggedEventArgs.cs index 0b30048..67f1fbd 100755 --- a/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSHotPluggedEventArgs.cs +++ b/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSHotPluggedEventArgs.cs @@ -80,8 +80,21 @@ namespace Tizen.System.Usb.Tests { LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Fail to get usb.host feature:"); } + LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "isSupport:" + isSupport); + DisplayLabel(""); - manager = new UsbManager(); + try + { + manager = new UsbManager(); + } + catch (NotSupportedException) + { + if (isSupport == 0) + { + TestPage.GetInstance().UnlockUIButton(); + Assert.Pass("Feature is false"); + } + } } [TearDown] diff --git a/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSUsbManager.cs b/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSUsbManager.cs index a4b566a..98f506f 100755 --- a/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSUsbManager.cs +++ b/tct-suite-vs/Tizen.Usb.Manual.Tests/testcase/TSUsbManager.cs @@ -80,8 +80,21 @@ namespace Tizen.System.Usb.Tests { LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "Fail to get usb.host feature:"); } + LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "isSupport:" + isSupport); + DisplayLabel(""); - manager = new UsbManager(); + try + { + manager = new UsbManager(); + } + catch (NotSupportedException) + { + if (isSupport == 0) + { + TestPage.GetInstance().UnlockUIButton(); + Assert.Pass("Feature is false"); + } + } } [TearDown]