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");
+ }
}
}
[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", "-")]