From: Jeonghyun Yun Date: Mon, 20 Aug 2018 05:55:50 +0000 (+0900) Subject: [ElmSharp][Non-ACR] Add Window Property TC X-Git-Tag: tct5.0_m2~108^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=11070a805b5341ff7d7ec39b7a631bd2bc192c9f;p=test%2Ftct%2Fcsharp%2Fapi.git [ElmSharp][Non-ACR] Add Window Property TC Change-Id: Ifa15635308341c3d63c94bc028ae1aa4d6b707e4 Signed-off-by: Jeonghyun Yun --- diff --git a/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSWindow.cs b/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSWindow.cs index f66fd07..374e1f1 100755 --- a/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSWindow.cs +++ b/tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSWindow.cs @@ -711,6 +711,8 @@ namespace ElmSharp.Tests { Assert.AreEqual(false, _testwindow.Urgent, "Retrieved Urgent of window should be equal to set value"); } + + [Test] [Category("P1")] [Description("Check whether get value of Withdrawn are identical with the set value or not.")] @@ -728,6 +730,50 @@ namespace ElmSharp.Tests { [Test] [Category("P1")] + [Description("Check whether get value of NotificationLevel are identical with the set value or not.")] + [Property("SPEC", "ElmSharp.Window.NotificationLevel A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")] + public void NotificationLevel_PROPERTY_SET_GET() + { + var _win = new Window(_testwindow, "notiwin", WindowType.Notification); + + _win.NotificationLevel = NotificationLevel.Top; + Assert.AreEqual(NotificationLevel.Top, _win.NotificationLevel, "Retrieved NotificationLevel of window should be equal to set value"); + + _win.Unrealize(); + _win = null; + } + + [Test] + [Category("P1")] + [Description("Check whether get value of ScreenMode are identical with the set value or not.")] + [Property("SPEC", "ElmSharp.Window.ScreenMode A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")] + public void ScreenMode_PROPERTY_SET_GET() + { + _testwindow.ScreenMode = ScreenMode.AlwaysOn; + Assert.AreEqual(ScreenMode.AlwaysOn, _testwindow.ScreenMode, "Retrieved ScreenMode of window should be equal to set value"); + } + + [Test] + [Category("P1")] + [Description("Check whether get value of Brightness are identical with the set value or not.")] + [Property("SPEC", "ElmSharp.Window.Brightness A")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "PRW")] + [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")] + public void Brightness_PROPERTY_SET_GET() + { + _testwindow.Brightness = 100; + Assert.AreEqual(100, _testwindow.Brightness, "Retrieved Brightness of window should be equal to set value"); + } + + [Test] + [Category("P1")] [Description("Check whether CreateServiceSocket method exist or not.")] [Property("SPEC", "ElmSharp.Window.CreateServiceSocket M")] [Property("SPEC_URL", "-")] @@ -840,5 +886,43 @@ namespace ElmSharp.Tests { Assert.Fail("should not throw exception:" + ex.ToString()); } } + + [Test] + [Category("P1")] + [Description("Check whether SetOpaqueState method exist or not.")] + [Property("SPEC", "ElmSharp.Window.SetOpaqueState M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")] + public void SetOpaqueState_CHECK() + { + try + { + _testwindow.SetOpaqueState(); + } + catch (Exception ex) + { + Assert.Fail("should not throw exception:" + ex.ToString()); + } + } + + [Test] + [Category("P1")] + [Description("Check whether UnsetOpaqueState method exist or not.")] + [Property("SPEC", "ElmSharp.Window.UnsetOpaqueState M")] + [Property("SPEC_URL", "-")] + [Property("CRITERIA", "MR")] + [Property("AUTHOR", "Jeonghyun Yun, jh0506.yun@samsung.com")] + public void UnsetOpaqueState_CHECK() + { + try + { + _testwindow.UnsetOpaqueState(); + } + catch (Exception ex) + { + Assert.Fail("should not throw exception:" + ex.ToString()); + } + } } } diff --git a/tct-suite-vs/Tizen.ElmSharp.Tests/tizen-manifest.xml b/tct-suite-vs/Tizen.ElmSharp.Tests/tizen-manifest.xml index 9008b0b..18cde92 100755 --- a/tct-suite-vs/Tizen.ElmSharp.Tests/tizen-manifest.xml +++ b/tct-suite-vs/Tizen.ElmSharp.Tests/tizen-manifest.xml @@ -13,5 +13,7 @@ http://tizen.org/privilege/internet http://tizen.org/privilege/appmanager.launch + http://tizen.org/privilege/display + http://tizen.org/privilege/window.priority.set