[Inputmethod][Non-ACR] Add wearable sample app to fix UI issue 29/204229/5
authorInhong Han <inhong1.han@samsung.com>
Mon, 22 Apr 2019 02:53:08 +0000 (11:53 +0900)
committerInhong Han <inhong1.han@samsung.com>
Tue, 23 Apr 2019 01:20:05 +0000 (10:20 +0900)
Change-Id: I34bf41c7e9e47a2cf64e8669f99681453c00f772

tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Mobile-1.0.0.tpk [changed mode: 0644->0755]
tct-suite-vs/Resource/Tizen.Inputmethod.Manual.Tests/org.tizen.example.IMESample.Tizen.Wearable-1.0.0.tpk [new file with mode: 0755]
tct-suite-vs/Tizen.Inputmethod.Manual.Tests/testcase/TSInputMethodEditor.cs [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
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 (executable)
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
old mode 100644 (file)
new mode 100755 (executable)
index 1d72c6f..8c702ed
@@ -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<string>("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");
         }
     }
 }