[NUI][Non-ACR][Update manual TCTS for Tizen.NUI] 27/192827/5
authorwenfeng.ge <wenfeng.ge@samsung.com>
Mon, 12 Nov 2018 00:40:00 +0000 (08:40 +0800)
committerwenfeng.ge <wenfeng.ge@samsung.com>
Thu, 15 Nov 2018 03:37:32 +0000 (11:37 +0800)
Change-Id: I4f69ab0b3c30c2729bcafba1266a47af62f6c3d4
Signed-off-by: wenfeng.ge <wenfeng.ge@samsung.com>
tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewSample/WidgetViewSample.cs
tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/code/WidgetViewWearableSample/WidgetViewWearableSample.cs
tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk
tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSFocusManager.cs
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSPopup.cs [new file with mode: 0755]
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSSlider.cs [new file with mode: 0755]
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSTouch.cs [new file with mode: 0755]
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSView.cs
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSWidgetView.cs
tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSWindow.cs

index ac755b5..a278fcc 100755 (executable)
@@ -223,6 +223,23 @@ namespace WidgetViewSample
                 Tizen.Log.Fatal("NUIWidget", "widget view LoadingText: " + _widgetView.LoadingText);
                 if (_widgetView.LoadingText == true) { Tizen.Log.Error("TCT", "[TestCase][LoadingText][WidgetView] Pass"); }
                 else { Tizen.Log.Error("TCT", "[TestCase][LoadingText][WidgetView] Fail"); }
+                PropertyMap retryText = new PropertyMap();
+                retryText.Add("stateText", new PropertyValue("RetryTextTest"));
+                _widgetView.RetryText = retryText;
+                Tizen.Log.Fatal("NUIWidget", "widget view set retryText: RetryTextTest");
+
+                PropertyMap getRetryText = _widgetView.RetryText;
+                if (getRetryText != null) { Tizen.Log.Error("TCT", "[TestCase][RetryText][WidgetView] Pass"); }
+                else { Tizen.Log.Error("TCT", "[TestCase][RetryText][WidgetView] Fail"); }
+
+                PropertyMap effect = new PropertyMap();
+                retryText.Add("shader", new PropertyValue("ShaderText"));
+                _widgetView.Effect = effect;
+                Tizen.Log.Fatal("NUIWidget", "widget view set effect: ShaderText");
+
+                PropertyMap getEffect = _widgetView.Effect;
+                if (getEffect != null) { Tizen.Log.Error("TCT", "[TestCase][Effect][WidgetView] Pass"); }
+                else { Tizen.Log.Error("TCT", "[TestCase][Effect][WidgetView] Fail"); }
 
                 AddEventHandler();
             }
index ca20961..14c2763 100755 (executable)
@@ -181,6 +181,23 @@ namespace WidgetViewSample
                 Tizen.Log.Fatal("NUIWidget", "widget view LoadingText: " + _widgetView.LoadingText);
                 if (_widgetView.LoadingText == true) { Tizen.Log.Error("TCT", "[TestCase][LoadingText][WidgetView] Pass"); }
                 else { Tizen.Log.Error("TCT", "[TestCase][LoadingText][WidgetView] Fail"); }
+                PropertyMap retryText = new PropertyMap();
+                retryText.Add("stateText", new PropertyValue("RetryTextTest"));
+                _widgetView.RetryText = retryText;
+                Tizen.Log.Fatal("NUIWidget", "widget view set retryText: RetryTextTest");
+
+                PropertyMap getRetryText = _widgetView.RetryText;
+                if (getRetryText != null) { Tizen.Log.Error("TCT", "[TestCase][RetryText][WidgetView] Pass"); }
+                else { Tizen.Log.Error("TCT", "[TestCase][RetryText][WidgetView] Fail"); }
+
+                PropertyMap effect = new PropertyMap();
+                retryText.Add("shader", new PropertyValue("ShaderText"));
+                _widgetView.Effect = effect;
+                Tizen.Log.Fatal("NUIWidget", "widget view set effect: ShaderText");
+
+                PropertyMap getEffect = _widgetView.Effect;
+                if (getEffect != null) { Tizen.Log.Error("TCT", "[TestCase][Effect][WidgetView] Pass"); }
+                else { Tizen.Log.Error("TCT", "[TestCase][Effect][WidgetView] Fail"); }
 
                 AddEventHandler();
             }
index 757cbd4..8427975 100755 (executable)
Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewSample-1.0.0.tpk differ
index 80d68b3..4bc1ab7 100755 (executable)
Binary files a/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.NUI.Manual.Tests/org.tizen.example.WidgetViewWearableSample-1.0.0.tpk differ
index 3c5e2f5..b7590b1 100755 (executable)
@@ -95,6 +95,13 @@ namespace Tizen.NUI.Tests
             ManualTest.Confirm();
         }
 
+        public static void OnFocusGroupChanged(object sender, EventArgs e)
+        {
+            Tizen.Log.Fatal("NUI", "TUnit FocusGroupChanged!!!!!!!!!!!!!!!!!!!!!");
+            _button1.Label = CreateTextMap(PointSize, "FocusGroupChanged");
+            ManualTest.Confirm();
+        }
+
         [Test]
         [Category("P1")]
         [Description("Test: Handle event PreFocusChange. Try to move the focus to trigger the event.")]
@@ -155,6 +162,40 @@ namespace Tizen.NUI.Tests
                 _testPage.ClearTestCase(_button1);
             }
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event FocusGroupChanged. Try to change focus group to trigger the event.")]
+        [Property("SPEC", "Tizen.NUI.FocusManager.FocusGroupChanged E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "If test on TM1, prepare bluetooth keyboard and connect to TM1.")]
+        [Precondition(2, "If test on TV, prepare hardware keyboard and connect to TV.")]
+        [Step(1, "Click run TC")]
+        [Step(2, "When button focused, press tab key on keyboard.")]
+        [Step(3, "TC will pass.")]
+        [Postcondition(1, "NA")]
+        public async Task FocusGroupChanged_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateTestView("Press Tab on keyboard");
+                _focusManager.SetCurrentFocusView(_button1);
+                await Task.Delay(500);
+                _focusManager.FocusGroupChanged += OnFocusGroupChanged;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _focusManager.FocusGroupChanged -= OnFocusGroupChanged;
+                _testPage.ClearTestCase(_button1);
+            }
+        }
     }
 }
 
diff --git a/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSPopup.cs b/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSPopup.cs
new file mode 100755 (executable)
index 0000000..cdfc130
--- /dev/null
@@ -0,0 +1,139 @@
+/*
+ *  Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
+using System.Threading.Tasks;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI;
+using Tizen.NUI.UIComponents;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Tests
+{
+    [TestFixture]
+    [Description("Tizen.NUI.UIComponents.Popup test")]
+    public class PopupTests
+    {
+        private static ManualTestNUI _testPage;
+        private static WearableManualTestNUI _wearTestPage;
+        private static Window _window;
+        private static PushButton _button;
+        private static float _PointSize = 5.0f;
+        private static TextLabel _label;
+        private static Popup _popup;
+
+        [SetUp]
+        public void Init()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST");
+            _window = Window.Instance;
+            if (Window.Instance.Size.Width > 1000)
+            {
+                _PointSize = 20.0f;
+            }
+            if (ManualTest.IsWearable())
+            {
+                _PointSize = 2.0f;
+                _label = ManualTest.CreateLabel("This case is unsuitable for wearable, please press PASS button to continue!");
+                _wearTestPage = WearableManualTestNUI.GetInstance();
+            }
+            else
+            {
+                _testPage = ManualTestNUI.GetInstance();
+            }
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST");
+        }
+
+        private PropertyMap CreateTextMap(float pointSize, string text)
+        {
+            PropertyMap map = new PropertyMap();
+            map.Insert("visualType", new PropertyValue("TEXT"));
+            map.Insert("pointSize", new PropertyValue(pointSize));
+            map.Insert("text", new PropertyValue(text));
+            return map;
+        }
+
+        private void CreateView(string information)
+        {
+            _button = new PushButton();
+            _button.Label = CreateTextMap(_PointSize, information);
+
+            _testPage.ExecuteTC(_button);
+        }
+
+        public void OnPopupEvent(object sender, EventArgs e)
+        {
+            Tizen.Log.Fatal("NUI", "Popup event !!!!!");
+            ManualTest.Confirm();
+            _window.Remove(_popup);
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event TouchedOutside.")]
+        [Property("SPEC", "Tizen.NUI.UIComponents.Popup.TouchedOutside E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "Connect the mouse to the TV (TM-1 don't need)")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch window outside of dialog or click mouse out of dialog(on TV).")]
+        [Step(4, "If your touch or click outside the dialog, TC will pass")]
+        [Postcondition(1, "NA")]
+        public async Task TouchedOutside_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Touch or click outside of Popup");
+                _popup = new Popup()
+                {
+                    Size2D = new Size2D(100, 100),
+                    BackgroundColor = Color.Magenta,
+                    Focusable = true,
+                    HeightResizePolicy = ResizePolicyType.Fixed,
+                    WidthResizePolicy = ResizePolicyType.Fixed,
+                    TooltipText = "This is a popup",
+                    AnimationDuration = 0.0f,
+                    DisplayState = Popup.DisplayStateType.Shown
+                };
+
+                _popup.TouchedOutside += OnPopupEvent;
+                _window.Add(_popup);
+
+                _popup.Show();\r
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _popup.TouchedOutside -= OnPopupEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+    }
+}
+
+
+
diff --git a/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSSlider.cs b/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSSlider.cs
new file mode 100755 (executable)
index 0000000..a1e0c77
--- /dev/null
@@ -0,0 +1,181 @@
+/*
+ *  Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
+using System.Threading.Tasks;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI;
+using Tizen.NUI.UIComponents;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Tests
+{
+    [TestFixture]
+    [Description("Tizen.NUI.UIComponents.Slider test")]
+    public class SliderTests
+    {
+        private static ManualTestNUI _testPage;
+        private static WearableManualTestNUI _wearTestPage;
+        private static Window _window;
+        private static PushButton _button;
+        private static float _PointSize = 5.0f;
+        private static TextLabel _label;
+        private static Slider _slider;
+
+        [SetUp]
+        public void Init()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST");
+            _window = Window.Instance;
+            if (Window.Instance.Size.Width > 1000)
+            {
+                _PointSize = 20.0f;
+            }
+            if (ManualTest.IsWearable())
+            {
+                _PointSize = 2.0f;
+                _label = ManualTest.CreateLabel("This case is unsuitable for wearable, please press PASS button to continue!");
+                _wearTestPage = WearableManualTestNUI.GetInstance();
+            }
+            else
+            {
+                _testPage = ManualTestNUI.GetInstance();
+            }
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST");
+        }
+
+        private PropertyMap CreateTextMap(float pointSize, string text)
+        {
+            PropertyMap map = new PropertyMap();
+            map.Insert("visualType", new PropertyValue("TEXT"));
+            map.Insert("pointSize", new PropertyValue(pointSize));
+            map.Insert("text", new PropertyValue(text));
+            return map;
+        }
+
+        private void CreateView(string information)
+        {
+            _button = new PushButton();
+            _button.Label = CreateTextMap(_PointSize, information);
+
+            _testPage.ExecuteTC(_button);
+        }
+
+        public bool OnSliderEvent(object sender, EventArgs e)
+        {
+            Tizen.Log.Fatal("NUI", "Slider event !!!!!");
+            ManualTest.Confirm();
+            _window.Remove(_slider);
+            return true;
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event MarkReached.")]
+        [Property("SPEC", "Tizen.NUI.UIComponents.Slider.MarkReached E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Sliding the slider to marked position(1/5,2/5 or 3/5).")]
+        [Step(4, "TC will pass after reaching the mark position")]
+        [Postcondition(1, "NA")]
+        public async Task MarkReached_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Press Key-Down");
+                _slider = new Slider()
+                {
+                    Size2D = new Size2D(500, 300),
+                    Position2D = new Position2D(610, 150),
+                    BackgroundColor = Color.Magenta,
+                    Focusable = true,
+                };
+                _slider.LowerBound = 1.0f;
+                _slider.UpperBound = 5.0f;
+                _window.Add(_slider);
+                PropertyArray marks = new PropertyArray();
+                marks.Add(new PropertyValue(1));
+                marks.Add(new PropertyValue(2));
+                marks.Add(new PropertyValue(3));
+                _slider.Marks = marks;
+                _slider.MarkReached += OnSliderEvent;
+
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _slider.MarkReached -= OnSliderEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event SlidingFinished.")]
+        [Property("SPEC", "Tizen.NUI.UIComponents.Slider.SlidingFinished E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "Connect the mouse to the TV (TM-1 don't need)")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch or use mouse(on TV) to drag the slider.")]
+        [Step(4, "When you stop sliding, TC will pass")]
+        [Postcondition(1, "NA")]
+        public async Task SlidingFinished_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Press Key-Down");
+                _slider = new Slider()
+                {
+                    Size2D = new Size2D(500, 300),
+                    Position2D = new Position2D(610, 150),
+                    BackgroundColor = Color.Magenta,
+                    Focusable = true,
+                };
+
+                _window.Add(_slider);
+                _slider.SlidingFinished += OnSliderEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _slider.SlidingFinished -= OnSliderEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+    }
+}
+
+
+
diff --git a/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSTouch.cs b/tct-suite-vs/Tizen.NUI.Manual.Tests/testcase/TSTouch.cs
new file mode 100755 (executable)
index 0000000..9509c92
--- /dev/null
@@ -0,0 +1,487 @@
+/*
+ *  Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ *  Licensed under the Apache License, Version 2.0 (the "License");
+ *  you may not use this file except in compliance with the License.
+ *  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing, software
+ *  distributed under the License is distributed on an "AS IS" BASIS,
+ *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *  See the License for the specific language governing permissions and
+ *  limitations under the License
+ */
+
+using System;
+using System.Threading.Tasks;
+using NUnit.Framework;
+using NUnit.Framework.TUnit;
+using Tizen.NUI;
+using Tizen.NUI.UIComponents;
+using Tizen.NUI.BaseComponents;
+
+namespace Tizen.NUI.Tests
+{
+    [TestFixture]
+    [Description("Tizen.NUI.Touch test")]
+    public class TouchTests
+    {
+        private static ManualTestNUI _testPage;
+        private static WearableManualTestNUI _wearTestPage;
+        private static Window _window;
+        private static PushButton _button;
+        private static float _PointSize = 5.0f;
+        private static TextLabel _label;
+
+        [SetUp]
+        public void Init()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST");
+            _window = Window.Instance;
+            if (Window.Instance.Size.Width > 1000)
+            {
+                _PointSize = 20.0f;
+            }
+            if (ManualTest.IsWearable())
+            {
+                _PointSize = 2.0f;
+                _label = ManualTest.CreateLabel("This case is unsuitable for wearable, please press PASS button to continue!");
+                _wearTestPage = WearableManualTestNUI.GetInstance();
+            }
+            else
+            {
+                _testPage = ManualTestNUI.GetInstance();
+            }
+        }
+
+        [TearDown]
+        public void Destroy()
+        {
+            LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Postconditions for each TEST");
+        }
+
+        private PropertyMap CreateTextMap(float pointSize, string text)
+        {
+            PropertyMap map = new PropertyMap();
+            map.Insert("visualType", new PropertyValue("TEXT"));
+            map.Insert("pointSize", new PropertyValue(pointSize));
+            map.Insert("text", new PropertyValue(text));
+            return map;
+        }
+
+        private void CreateView(string information)
+        {
+            _button = new PushButton();
+            _button.Label = CreateTextMap(_PointSize, information);
+
+            _testPage.ExecuteTC(_button);
+        }
+
+        public void OnTouchEventGetDeviceId(object sender, Window.TouchEventArgs e)
+        {
+            int id = e.Touch.GetDeviceId(0);
+            if (id >= 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetEllipseRadius(object sender, Window.TouchEventArgs e)
+        {
+            Vector2 radius = e.Touch.GetEllipseRadius(0);
+            if (radius.Height >= 0 && radius.Width >= 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public bool OnTouchEventGetHitView(object sender, View.TouchEventArgs e)
+        {
+            View Hit = e.Touch.GetHitView(0);
+            if (Hit != null)
+            {
+                ManualTest.Confirm();
+                _window.Remove(_label);
+            }
+            return true;
+        }
+
+        public void OnTouchEventGetLocalPosition(object sender, Window.TouchEventArgs e)
+        {
+            Vector2 pos = e.Touch.GetLocalPosition(0);
+            if (pos.X >= 0 && pos.Y >= 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetPointCount(object sender, Window.TouchEventArgs e)
+        {
+            uint count = e.Touch.GetPointCount();
+            if (count > 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetPressure(object sender, Window.TouchEventArgs e)
+        {
+            float pressure = e.Touch.GetPressure(0);
+            if (pressure > 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetRadius(object sender, Window.TouchEventArgs e)
+        {
+            float radius = e.Touch.GetRadius(0);
+            if (radius > 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetScreenPosition(object sender, Window.TouchEventArgs e)
+        {
+            Vector2 screenPos = e.Touch.GetScreenPosition(0);
+            if (screenPos.X > 0 && screenPos.Y > 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetState(object sender, Window.TouchEventArgs e)
+        {
+            PointStateType type = e.Touch.GetState(0);
+            if (type == PointStateType.Motion)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        public void OnTouchEventGetTime(object sender, Window.TouchEventArgs e)
+        {
+            uint time = e.Touch.GetTime();
+            if (time > 0)
+            {
+                ManualTest.Confirm();
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetDeviceId.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetDeviceId E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetDeviceId_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetDeviceId;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetDeviceId;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetEllipseRadius.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetEllipseRadius E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetEllipseRadius_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetEllipseRadius;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetEllipseRadius;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetHitView.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetHitView E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetHitView_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _label = new TextLabel()
+            {
+                Size2D = new Size2D(500, 156),
+                Position2D = new Position2D(100, 300),
+                BackgroundColor = Color.Green,
+                PointSize = 28,
+                Focusable = true,
+                Text = "default"
+            };
+            _window.Add(_label);
+            _label.TouchEvent += OnTouchEventGetHitView;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _label.TouchEvent -= OnTouchEventGetHitView;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetLocalPosition.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetLocalPosition E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetLocalPosition_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetLocalPosition;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetLocalPosition;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetPointCount.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetPointCount E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetPointCount_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetPointCount;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetPointCount;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetPressure.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetPressure E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetPressure_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetPressure;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetPressure;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetRadius.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetRadius E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetRadius_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetRadius;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetRadius;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetScreenPosition.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetScreenPosition E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetScreenPosition_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetScreenPosition;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetScreenPosition;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetState.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetState E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetState_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetState;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetState;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: method GetTime.")]
+        [Property("SPEC", "Tizen.NUI.Touch.GetTime E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task GetTime_RETURN_VALUE()
+        {
+            CreateView("Touch or click");
+            _window.TouchEvent += OnTouchEventGetTime;
+            // Waits for user confirmation.
+            await ManualTest.WaitForConfirm();
+            _window.TouchEvent -= OnTouchEventGetTime;
+            _testPage.ClearTestCase(_button);
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ClearTestCase(_button);
+            }
+            else
+            {
+                _testPage.ClearTestCase(_button);
+            }
+        }
+    }
+}
+
+
+
index 8c8a5b0..5950d17 100755 (executable)
@@ -79,9 +79,9 @@ namespace Tizen.NUI.Tests
             _testPage.ExecuteTC(_button);
         }
 
-        public static bool OnKeyEvent(object sender, EventArgs e)
+        public static bool OnViewEvent(object sender, EventArgs e)
         {
-            Tizen.Log.Fatal("NUI", "TUnit KeyEvent!!!!!!!!!!!!!!!!!!!!!");
+            Tizen.Log.Fatal("NUI", "TUnit View.Event!!!!!!!!!!!!!!!!!!!!!");
             ManualTest.Confirm();
             return false;
         }
@@ -89,7 +89,7 @@ namespace Tizen.NUI.Tests
         [Test]
         [Category("P1")]
         [Description("Test: Handle event input a key. Try to input a key to trigger the event.")]
-        [Property("SPEC", "Tizen.NUI.BaseComponents.View.Key E")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.View.KeyEvent E")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "EVL")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
@@ -97,7 +97,7 @@ namespace Tizen.NUI.Tests
         [Step(1, "Click run TC")]
         [Step(2, "Press Key-Down while the button is focusd")]
         [Postcondition(1, "NA")]
-        public async Task Key_CB()
+        public async Task KeyEvent_CB()
         {
             if (ManualTest.IsWearable())
             {
@@ -108,10 +108,106 @@ namespace Tizen.NUI.Tests
             else
             {
                 CreateView("Press Key-Down");
-                _button.KeyEvent += OnKeyEvent;
+                _button.KeyEvent += OnViewEvent;
                 // Waits for user confirmation.
                 await ManualTest.WaitForConfirm();
-                _button.KeyEvent -= OnKeyEvent;
+                _button.KeyEvent -= OnViewEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle HoverEvent.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.View.HoverEvent E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "Prepare Bluetooth keyboard and connect to TM1. In case of Emulator, only use PC keyboard or remote controller of emulator itself. Please never use touch or mouse click even for push run button or next button. Must use only keyboard or remote controller! because this is key test.")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Move mouse and hover over the button.")]
+        [Step(4, "TC will pass after hovering.")]
+        [Postcondition(1, "NA")]
+        public async Task HoverEvent_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Hover me");
+                _button.HoverEvent += OnViewEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _button.HoverEvent -= OnViewEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event input a key. Try to input a key to trigger the event.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.View.TouchEvent E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "If test on TV, prepare mouse and connect to TV.")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task TouchEvent_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Touch or click me");
+                _button.TouchEvent += OnViewEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _button.TouchEvent -= OnViewEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle WheelEvent. Try to wheel mouse to trigger the event.")]
+        [Property("SPEC", "Tizen.NUI.BaseComponents.View.WheelEvent E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "Prepare mouse and connect to TV or TM1.")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Sliding mouse wheel when on button .")]
+        [Step(4, "TC will pass after Sliding mouse wheel.")]
+        [Postcondition(1, "NA")]
+        public async Task WheelEvent_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Sliding mouse wheel on here");
+                _button.WheelEvent += OnViewEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _button.WheelEvent -= OnViewEvent;
                 _testPage.ClearTestCase(_button);
             }
         }
index 3a89136..f26e51e 100755 (executable)
@@ -480,5 +480,42 @@ namespace Tizen.NUI.Tests
             await ManualTest.WaitForConfirm();
         }
 
+        [Test]
+        [Category("P1")]
+        [Description("MANUAL TEST : Effect should have proper value")]
+        [Property("SPEC", "Tizen.NUI.WidgetView.Effect M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
+        [Precondition(1, "Open terminal to view logs")]
+        [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+        [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+        [Step(1, "Click run TC.")]
+        [Step(2, "Move Focus to Add button and click.")]
+        [Step(3, "Check if log show \"[TestCase][Effect][WidgetView] Pass\".")]
+        [Postcondition(1, "Close the terminal")]
+        public async Task Effect_MANUAL_TEST()
+        {
+            await ManualTest.WaitForConfirm();
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("MANUAL TEST : RetryText should have proper value")]
+        [Property("SPEC", "Tizen.NUI.WidgetView.RetryText M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "MR")]
+        [Property("AUTHOR", "Xianbing Teng, xb.teng@samsung.com")]
+        [Precondition(1, "Open terminal to view logs")]
+        [Precondition(2, "Enter command \"sdb dlog -c\" to clear log")]
+        [Precondition(3, "Enter command \"sdb dlog | grep TestCase\" to terminal")]
+        [Step(1, "Click run TC.")]
+        [Step(2, "Move Focus to Add button and click.")]
+        [Step(3, "Check if log show \"[TestCase][RetryText][WidgetView] Pass\".")]
+        [Postcondition(1, "Close the terminal")]
+        public async Task RetryText_MANUAL_TEST()
+        {
+            await ManualTest.WaitForConfirm();
+        }
     }
 }
index eb83721..ffc6bf1 100755 (executable)
@@ -80,16 +80,16 @@ namespace Tizen.NUI.Tests
             _testPage.ExecuteTC(_button);
         }
 
-        public static void OnKeyEvent(object sender, EventArgs e)
+        public static void OnWindowEvent(object sender, EventArgs e)
         {
-            Tizen.Log.Fatal("NUI", "TUnit Key!!!!!!!!!!!!!!!!!!!!!");
+            Tizen.Log.Fatal("NUI", "TUnit Window.Event!!!!!!!!!!!!!!!!!!!!!");
             ManualTest.Confirm();
         }
 
         [Test]
         [Category("P1")]
         [Description("Test: Handle event input a key.")]
-        [Property("SPEC", "Tizen.NUI.Window.Key E")]
+        [Property("SPEC", "Tizen.NUI.Window.KeyEvent E")]
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "EVL")]
         [Property("AUTHOR", "Feng Jin, feng16.jin@samsung.com")]
@@ -97,7 +97,7 @@ namespace Tizen.NUI.Tests
         [Step(1, "Click run TC")]
         [Step(2, "Press Key-Down while the button is focusd")]
         [Postcondition(1, "NA")]
-        public async Task Key_CB()
+        public async Task KeyEvent_CB()
         {
             if (ManualTest.IsWearable())
             {
@@ -108,10 +108,105 @@ namespace Tizen.NUI.Tests
             else
             {
                 CreateView("Press Key-Down");
-                _window.KeyEvent += OnKeyEvent;
+                _window.KeyEvent += OnWindowEvent;
                 // Waits for user confirmation.
                 await ManualTest.WaitForConfirm();
-                _window.KeyEvent -= OnKeyEvent;
+                _window.KeyEvent -= OnWindowEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event focus changed.")]
+        [Property("SPEC", "Tizen.NUI.Window.FocusChanged E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "")]
+        [Step(1, "Click run TC")]
+        [Step(2, "Press smarthub button in remote controller.")]
+        [Step(3, "Press return button return to TCT page, the TC will pass.")]
+        [Postcondition(1, "NA")]
+        public async Task FocusChanged_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Press Key-Down");
+                _window.FocusChanged += OnWindowEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _window.FocusChanged -= OnWindowEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event TouchEvent.")]
+        [Property("SPEC", "Tizen.NUI.Window.TouchEvent E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "If test on TV, prepare mouse and connect to TV.")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Touch the window. If on the TV, click left mouse button.")]
+        [Step(4, "TC will pass after touch or click.")]
+        [Postcondition(1, "NA")]
+        public async Task TouchEvent_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Touch or click me");
+                _window.TouchEvent += OnWindowEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _window.TouchEvent -= OnWindowEvent;
+                _testPage.ClearTestCase(_button);
+            }
+        }
+
+        [Test]
+        [Category("P1")]
+        [Description("Test: Handle event WheelEvent.")]
+        [Property("SPEC", "Tizen.NUI.Window.WheelEvent E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Wenfeng Ge, wenfeng.ge@samsung.com")]
+        [Precondition(1, "")]
+        [Step(1, "If test on TV, connect the mouse to the TV")]
+        [Step(2, "Click run button to run TC")]
+        [Step(3, "Sliding mouse wheel.")]
+        [Step(4, "TC will pass after Sliding mouse wheel.")]
+        [Postcondition(1, "NA")]
+        public async Task WheelEvent_CB()
+        {
+            if (ManualTest.IsWearable())
+            {
+                _wearTestPage.ExecuteTC(_label);
+                await ManualTest.WaitForConfirm();
+                _wearTestPage.ClearTestCase(_label);
+            }
+            else
+            {
+                CreateView("Sliding mouse wheel on window");
+                _window.WheelEvent += OnWindowEvent;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _window.WheelEvent -= OnWindowEvent;
                 _testPage.ClearTestCase(_button);
             }
         }