[ElmSharp][Non-ACR] Update TCT for unsupported feature on Wearabel profile 00/184800/1
authorSeunghyun Choi <sh4682.choi@samsung.com>
Mon, 23 Jul 2018 07:42:13 +0000 (16:42 +0900)
committerSeunghyun Choi <sh4682.choi@samsung.com>
Mon, 23 Jul 2018 07:42:13 +0000 (16:42 +0900)
Change-Id: I0455a833caf0899dc5b06a419681c6fbd49ca0d2

tct-suite-vs/Tizen.ElmSharp.Manual.Tests/testcase/TSEntry.cs

index f516136..ebf8ead 100644 (file)
@@ -820,16 +820,24 @@ namespace ElmSharp.Tests
         [Postcondition(1, "NA")]
         public static async Task PasteSelection_METHOD()
         {
-            CreateEntryPage("PasteSelection");
-            _entry.Text = "123456";
-            _entry.SelectAll();
-            _entry.CopySelection();
-            _entry.CursorPosition = 6;
+            if (ElmSharpProfile.GetProfile().CompareTo(ElmSharpProfile.MobileProfile) != 0)
+            {
+                _testPage.UnlockUIButton();
+                Assert.Pass("Not Supported");
+            }
+            else
+            {
+                CreateEntryPage("PasteSelection");
+                _entry.Text = "123456";
+                _entry.SelectAll();
+                _entry.CopySelection();
+                _entry.CursorPosition = 6;
 
-            _button1.Clicked += OnClickedByPasteSelection;
-            // Waits for user confirmation.
-            await ManualTest.WaitForConfirm();
-            _button1.Clicked -= OnClickedByPasteSelection;
+                _button1.Clicked += OnClickedByPasteSelection;
+                // Waits for user confirmation.
+                await ManualTest.WaitForConfirm();
+                _button1.Clicked -= OnClickedByPasteSelection;
+            }
         }
 
         [Test]