From: Inhong Han Date: Mon, 22 Apr 2019 02:53:08 +0000 (+0900) Subject: [Inputmethod][Non-ACR] Add wearable sample app to fix UI issue X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=34fd16311d3598e993148a68c9f1c205b38c2c7b;p=test%2Ftct%2Fcsharp%2Fapi.git [Inputmethod][Non-ACR] Add wearable sample app to fix UI issue Change-Id: I34bf41c7e9e47a2cf64e8669f99681453c00f772 --- 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 old mode 100644 new mode 100755 index b5953bd..9c3fc38 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 new file mode 100755 index 0000000..66b1587 Binary files /dev/null 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 old mode 100644 new mode 100755 index 1d72c6f..8c702ed --- a/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs +++ b/tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs @@ -14,11 +14,18 @@ namespace Tizen.Inputmethod.Manual.Tests 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("tizen.org/feature/profile", out value); + if (ret && value.CompareTo("tv") == 0) + _isSupported = false; } [TearDown] @@ -34,20 +41,26 @@ namespace Tizen.Inputmethod.Manual.Tests [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] @@ -57,20 +70,26 @@ namespace Tizen.Inputmethod.Manual.Tests [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] @@ -80,7 +99,7 @@ namespace Tizen.Inputmethod.Manual.Tests [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")] @@ -91,12 +110,15 @@ namespace Tizen.Inputmethod.Manual.Tests [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"); } } }