From: InHong Han Date: Thu, 26 Mar 2020 05:13:31 +0000 (+0900) Subject: [Inputmethod][Non-ACR] Fix TCT fail issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39d0fdca270c026efc1bc498b2a2c1a55255ea33;p=test%2Ftct%2Fcsharp%2Fapi.git [Inputmethod][Non-ACR] Fix TCT fail issue Move RequestSurroundingText TC to Manual TC Change-Id: I82b5f97ffb824ea138ab3e104959ed4fae8d28d1 --- diff --git a/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk index 7a7657c6e..337d12c00 100644 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 diff --git a/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk b/tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk index 95cc36755..d571c9901 100644 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 diff --git a/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs b/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs index 7b59a25e6..7a1a7fda1 100755 --- a/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs @@ -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"); + } } } diff --git a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs index b8db1d267..494e75d4e 100755 --- a/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Tests/testcase/TSInputMethodEditor.cs @@ -332,31 +332,6 @@ namespace Tizen.Uix.InputMethod.Tests Helper.PrintLog(Type.DLogAndlogUtil, "Completed TC: UpdatePreEditString_EXCEPTION"); } - [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")]