[Inputmethod][Non-ACR] Fix TCT fail issue 53/228853/2
authorInHong Han <inhong1.han@samsung.com>
Thu, 26 Mar 2020 05:13:31 +0000 (14:13 +0900)
committerInHong Han <inhong1.han@samsung.com>
Thu, 26 Mar 2020 12:55:58 +0000 (21:55 +0900)
Move RequestSurroundingText TC to Manual TC

Change-Id: I82b5f97ffb824ea138ab3e104959ed4fae8d28d1

tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk
tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk
tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs
tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs

index 7a7657c..337d12c 100644 (file)
Binary files a/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk differ
index 95cc367..d571c99 100644 (file)
Binary files a/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk and b/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk differ
index 7b59a25..7a1a7fd 100755 (executable)
@@ -505,5 +505,36 @@ namespace Tizen.Inputmethod.Manual.Tests
             else
                 Assert.Pass("Can not test on TV profile");
         }
+
+        [Test]
+        [Category("P1")]
+        [Description("Manual Test : SurroundingTextUpdated callback should be called when RequestSurroundingText() is called.")]
+        [Property("SPEC", "Tizen.Uix.InputMethod.InputMethodEditor.RequestSurroundingText M")]
+        [Property("SPEC_URL", "-")]
+        [Property("CRITERIA", "EVL")]
+        [Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]
+        [Precondition(1, "It can not be tested on TV profile. If you will run this tc on tv profile, then this tc will get pass automatically.")]
+        [Step(1, "Click Run button")]
+        [Step(2, "Open setting app")]
+        [Step(3, "Click Language and Input")]
+        [Step(4, "Switch default keyboard from Tizen keyboard to new keyboard")]
+        [Step(5, "Open terminal & input command line sdb shell ")]
+        [Step(6, "Input  dlogutil -v time | grep 'IMESample'")]
+        [Step(7, "Open a new terminal & input command line sdb shell")]
+        [Step(8, "Input  su -")]
+        [Step(9, "Input  isf-demo-efl")]
+        [Step(10, "Click item 'ISF Manual Test'")]
+        [Step(11, "Click text entry below 'NORMAL' to show IME(Input Method Editor)")]
+        [Step(12, "Input some text")]
+        [Step(13, "Click 'Sur' button on the new keyboard")]
+        [Step(14, "If log show 'InputMethodEditor_SurroundingTextUpdated callback' confirm Pass otherwise confirm False")]
+        [Postcondition(1, "NA")]
+        public async Task RequestSurroundingText_MANUAL_TEST()
+        {
+            if (_isSupported)
+                await ManualTest.WaitForConfirm();
+            else
+                Assert.Pass("Can not test on TV profile");
+        }
     }
 }
index b8db1d2..494e75d 100755 (executable)
@@ -334,31 +334,6 @@ namespace Tizen.Uix.InputMethod.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Check the working of RequestSurroundingText method for No Exception")]
-        [Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.RequestSurroundingText M")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "MR")]
-        [Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
-        public void RequestSurroundingText_NO_EXCEPTION()
-        {
-            /*
-             * TEST CODE
-             */
-            try
-            {
-                Helper.PrintLog(Type.DLogAndlogUtil, "Executing TC: RequestSurroundingText_NO_EXCEPTION");
-                InputMethodEditor.RequestSurroundingText(1, 1);
-                Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: RequestSurroundingText_NO_EXCEPTION");
-            }
-            catch (Exception e)
-            {
-                Helper.PrintLog(Type.DLogAndlogUtil, "Caught Exception" + e.ToString());
-                Assert.IsTrue(false, "Caught Exception" + e.ToString());
-            }
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Check the working of DeleteSurroundingText method for No Exception")]
         [Property("SPEC", " Tizen.Uix.InputMethod.InputMethodEditor.DeleteSurroundingText M")]
         [Property("SPEC_URL", "-")]