[ElmSharp][Non-ACR] Fied TCT for Entry, EvasObject 72/185272/2
authorSeunghyun Choi <sh4682.choi@samsung.com>
Fri, 27 Jul 2018 06:57:28 +0000 (15:57 +0900)
committerSeunghyun Choi <sh4682.choi@samsung.com>
Mon, 30 Jul 2018 01:05:33 +0000 (10:05 +0900)
Change-Id: I16bf10b8aea850a305b73000f3d40aca8c6730dd

tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs
tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEvasObject.cs [changed mode: 0755->0644]

index ebf8ead..8c930ce 100644 (file)
@@ -316,7 +316,7 @@ namespace ElmSharp.Tests
 
         private static void OnClickedByGetCursorContent(object sender, EventArgs e)
         {
-            if (_entry.Text.Substring(1, 1) == _entry.GetCursorContent())
+            if (_entry.Text.Substring(11, 1) == _entry.GetCursorContent())
             {
                 ManualTest.Confirm();
             }
@@ -632,10 +632,11 @@ namespace ElmSharp.Tests
         [Property("CRITERIA", "UIBH")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
         [Precondition(1, "NA")]
-        [Step(1, "Click Run TC.")]
-        [Step(2, "Input 't', and it will show 'Tizen'.")]
-        [Step(3, "Input 'a', and it will show 'a'.")]
-        [Step(4, "if it is, click Pass, or Fail.")]
+        [Step(1, "Turn smart input off(Setting->Input->Keyboard->Smart Input)")]
+        [Step(2, "Click Run TC.")]
+        [Step(3, "Input 't', and it will show 'Tizen'.")]
+        [Step(4, "Input 'a', and it will show 'a'.")]
+        [Step(5, "if it is, click Pass, or Fail.")]
         [Postcondition(1, "NA")]
         public static async Task AppendMarkUpFilter_METHOD()
         {
@@ -655,11 +656,12 @@ namespace ElmSharp.Tests
         [Property("CRITERIA", "UIBH")]
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
         [Precondition(1, "NA")]
-        [Step(1, "Click Run TC.")]
-        [Step(2, "Input 't', and it will show 'Tizen'.")]
-        [Step(3, "Input 'a', and it will show 'a'.")]
-        [Step(4, "Click RemoveMarkUpFilter button, and input 't', and it will show 't'.")]
-        [Step(5, "if it is, click Pass, or Fail.")]
+        [Step(1, "Turn smart input off(Setting->Input->Keyboard->Smart Input)")]
+        [Step(2, "Click Run TC.")]
+        [Step(3, "Input 't', and it will show 'Tizen'.")]
+        [Step(4, "Input 'a', and it will show 'a'.")]
+        [Step(5, "Click RemoveMarkUpFilter button, and input 't', and it will show 't'.")]
+        [Step(6, "if it is, click Pass, or Fail.")]
         [Postcondition(1, "NA")]
         public static async Task RemoveMarkUpFilter_METHOD()
         {
@@ -883,7 +885,7 @@ namespace ElmSharp.Tests
         [Property("AUTHOR", "Qian Sui, qian.sui@samsung.com")]
         [Precondition(1, "NA")]
         [Step(1, "Click Run TC.")]
-        [Step(2, "Put the cursor between 1 and 2.")]
+        [Step(2, "Put the cursor between d and e.")]
         [Step(3, "Test case result will be shown automatically.")]
         [Postcondition(1, "NA")]
         public static async Task GetCursorContent_METHOD()
old mode 100755 (executable)
new mode 100644 (file)
index e6e1d24..19b7277
@@ -142,7 +142,13 @@ namespace ElmSharp.Tests
 
         private static void OnDeleted(object sender, EventArgs e)
         {
-            _button.Text = "deleted event invoked";
+            Assert.True(true);
+            ManualTest.Confirm();
+        }
+
+        private static void DeleteObject(object sender, EventArgs e)
+        {
+            _evasObject.Unrealize();
         }
 
         private static void OnPost(object sender, EventArgs e)
@@ -177,10 +183,10 @@ namespace ElmSharp.Tests
             _evasObject = new Polygon(_window);
             _evasObject.Deleted += OnDeleted;
             CreateResultButton("Click me!! Test: Invoke Delete event " + _evasObject.IsRealized.ToString());
-            _button.Clicked += Confirm;
+            _button.Clicked += DeleteObject;
             // Waits for user confirmation.
             await ManualTest.WaitForConfirm();
-            _button.Clicked -= Confirm;
+            _button.Clicked -= DeleteObject;
         }
 
         [Test]