[ElmSharp][Non-ACR] Add Window Property TC 14/187114/2
authorJeonghyun Yun <jh0506.yun@samsung.com>
Mon, 20 Aug 2018 05:55:50 +0000 (14:55 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Mon, 20 Aug 2018 05:59:23 +0000 (05:59 +0000)
Change-Id: Ifa15635308341c3d63c94bc028ae1aa4d6b707e4
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
tct-suite-vs/Tizen.ElmSharp.Tests/testcase/TSWindow.cs
tct-suite-vs/Tizen.ElmSharp.Tests/tizen-manifest.xml

index f66fd07..374e1f1 100755 (executable)
@@ -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());
+            }
+        }
     }
 }
index 9008b0b..18cde92 100755 (executable)
@@ -13,5 +13,7 @@
     <privileges>
       <privilege>http://tizen.org/privilege/internet</privilege>
       <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+      <privilege>http://tizen.org/privilege/display</privilege>
+      <privilege>http://tizen.org/privilege/window.priority.set</privilege>
     </privileges>
 </manifest>