[ComponentBased][TCSACR-556][Add a new test for TimeZoneChanged event] 06/298906/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 15 Sep 2023 04:22:28 +0000 (13:22 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Fri, 15 Sep 2023 04:24:12 +0000 (04:24 +0000)
Adds:
 - TimeZoneChanged_EVENT_TEST()

Change-Id: I21c6d6a89153914ee359eb177c76d5fb37e71856
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/ComponentBasedTest.tar
tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/org.tizen.example.ComponentBasedTest-1.0.0.tpk
tct-suite-vs/Tizen.ComponentBased.Manual.Tests/testcase/TSBaseComponent.cs

index 86260f0..da9312a 100644 (file)
Binary files a/tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/ComponentBasedTest.tar and b/tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/ComponentBasedTest.tar differ
index 614aef5..2dbcd53 100755 (executable)
Binary files a/tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/org.tizen.example.ComponentBasedTest-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.ComponentBased.Manual.Tests/org.tizen.example.ComponentBasedTest-1.0.0.tpk differ
index 4e0157b..3ad1e01 100644 (file)
@@ -469,8 +469,33 @@ namespace Tizen.ComponentBasedApplication.Tests
             await ManualTest.WaitForConfirm();
             _comp_button.Clicked -= OnClick;
         }
-    }
-}
 
+        [Test]
+        [Category("P1")]
+        [Description("MANUAL TEST : The TimeZoneChanged Event should be caught after change TimeZone of device")]
+        [Property("SPEC", "Tizen.Applications.ComponentBased.Common.BaseComponent.TimeZoneChanged E")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Hwankyu Jhun, h.jhun@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 ComponentBasedTest\" to terminal")]
+        [Step(1, "Click run TC")]
+        [Step(2, "Press 'Click me' button")]
+        [Step(3, "If you cannot change time zone in a setting app, this test can not be tested. Please click \"Pass\" button.")]
+        [Step(4, "Run Setting App -> Date and time -> Disable 'Auto update' -> Time zone -> change time zone -> return to app test -> wait in 20s")]
+        [Step(5, "Check if log show \"FrameComp_TimeZoneChanged > Time Zone Changed\".")]
+        [Postcondition(1, "Close the terminal")]
+        [Postcondition(2, "Press launched application's 'Exit' button")]
+        public async Task TimeZoneChanged_EVENT_TEST()
+        {
+            CreateCompButton("Click me!!");
+            _comp_button.Clicked += OnClick;
 
+            /* TEST CODE */
+            await ManualTest.WaitForConfirm();
+            _comp_button.Clicked -= OnClick;
+        }
+    }
+}