public class TSInputMethodEditor
{
private TestPage _testPage = TestPage.GetInstance();
+ private bool _isSupported = true;
[SetUp]
public void Init()
{
LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "Preconditions for each TEST");
+ bool ret;
+ string value;
+
+ ret = Tizen.System.Information.TryGetValue<string>("tizen.org/feature/profile", out value);
+ if (ret && value.CompareTo("tv") == 0)
+ _isSupported = false;
}
[TearDown]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]
- [Precondition(1, "NA")]
+ [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 Laguage 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 Internet web browser application ")]
- [Step(8, "Click item Add below Quick access")]
- [Step(9, "If log show 'InputMethodEditor_PredictionHintDataUpdated callback' confirm Pass otherwise confirm False")]
+ [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 MIME Type")]
+ [Step(11, "Click text entry to show IME(Input Method Editor)")]
+ [Step(12, "If log show 'InputMethodEditor_PredictionHintDataUpdated callback' confirm Pass otherwise confirm False")]
[Postcondition(1, "NA")]
public async Task PredictionHintDataUpdated_ADD()
{
- await ManualTest.WaitForConfirm();
+ if (_isSupported)
+ await ManualTest.WaitForConfirm();
+ else
+ Assert.Pass("Can not test on TV profile");
}
[Test]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]
- [Precondition(1, "NA")]
+ [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 Laguage 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 Internet web browser application ")]
- [Step(8, "Click item Add below Quick access")]
- [Step(9, "If log show 'InputMethodEditor_PredictionHintUpdated callback' confirm Pass otherwise confirm False")]
+ [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 MIME Type")]
+ [Step(11, "Click text entry to show IME(Input Method Editor)")]
+ [Step(12, "If log show 'InputMethodEditor_PredictionHintUpdated callback' confirm Pass otherwise confirm False")]
[Postcondition(1, "NA")]
public async Task PredictionHintUpdated_ADD()
{
- await ManualTest.WaitForConfirm();
+ if (_isSupported)
+ await ManualTest.WaitForConfirm();
+ else
+ Assert.Pass("Can not test on TV profile");
}
[Test]
[Property("SPEC_URL", "-")]
[Property("CRITERIA", "EVL")]
[Property("AUTHOR", "Inhong Han, inhong1.han@samsung.com")]
- [Precondition(1, "NA")]
+ [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 Laguage and Input")]
[Step(8, "Input su -")]
[Step(9, "Input isf-demo-efl")]
[Step(10, "Click item ISF MIME Type")]
- [Step(11, "Click text entry")]
+ [Step(11, "Click text entry to show IME(Input Method Editor)")]
[Step(12, "If log show 'InputMethodEditor_MimeTypeUpdateRequested callback' confirm Pass otherwise confirm False")]
[Postcondition(1, "NA")]
public async Task MimeTypeUpdateRequested_ADD()
{
- await ManualTest.WaitForConfirm();
+ if (_isSupported)
+ await ManualTest.WaitForConfirm();
+ else
+ Assert.Pass("Can not test on TV profile");
}
}
}