[Stt][Non-ACR] Add early return in tc that can not tested in emulator 76/299576/3
authorulgal-park <ulgal.park@samsung.com>
Thu, 5 Oct 2023 07:34:53 +0000 (16:34 +0900)
committerulgal-park <ulgal.park@samsung.com>
Thu, 5 Oct 2023 07:51:58 +0000 (16:51 +0900)
Change-Id: I5880fee781c6d7941409af5842824dd9fab9c1c4

tct-suite-vs/Tizen.Stt.Manual.Tests/testcase/TSErrorOccurredEventArgs.cs

index a9a9528..b5ff710 100755 (executable)
@@ -29,9 +29,9 @@ namespace Tizen.Uix.Stt.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRO")]
         [Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
-        [Precondition(1, "Enable Wifi. (Can not test on Emulator. Please mark pass on Emulator.)")]
+        [Precondition(1, "Enable Wifi. (In case of Emulator, ignore this precondition)")]
         [Precondition(2, "Ensure 'Samsung ASR N66' is selected as a preferred engine in settings. (In case of TV, ignore this precondition)")]
-        [Step(1, "Tap the Run button. If Stt feature is not supported, TC will automatically pass.")]
+        [Step(1, "Tap the Run button. If Stt feature is not supported or it tested on emulator, TC will automatically pass.")]
         [Step(2, "Once Start Recording Button Appears, Disable Wifi")]
         [Step(3, "Click Start Recording")]
         [Step(4, "Click Pass if the Label Text becomes 'Error Occured'")]
@@ -39,6 +39,11 @@ namespace Tizen.Uix.Stt.Tests
         public async Task ErrorValue_GET()
         {
             SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:ErrorValue_GET");
+            if (ManualTest.IsEmulator())
+            {
+                SttHelper.PrintLog(Type.DLogAndlogUtil, "This TC is not supported on Emulator");
+                return;
+            }
             SttWrapper obj = new SttWrapper();
             await obj.GenerateErrorScenario();
             if (obj.SttFeatureSupported == true)
@@ -55,9 +60,9 @@ namespace Tizen.Uix.Stt.Tests
         [Property("SPEC_URL", "-")]
         [Property("CRITERIA", "PRO")]
         [Property("AUTHOR", "Manish Rathod, manish.r@samsung.com")]
-        [Precondition(1, "Enable Wifi. (Can not test on Emulator. Please mark pass on Emulator.)")]
+        [Precondition(1, "Enable Wifi. (In case of Emulator, ignore this precondition)")]
         [Precondition(2, "Ensure 'Samsung ASR N66' is selected as a preferred engine in settings. (In case of TV, ignore this precondition)")]
-        [Step(1, "Tap the Run button. If Stt feature is not supported, TC will automatically pass.")]
+        [Step(1, "Tap the Run button. If Stt feature is not supported or it tested on emulator, TC will automatically pass.")]
         [Step(2, "Once Start Recording Button Appears, Disable Wifi")]
         [Step(3, "Click Start Recording")]
         [Step(4, "Click Pass if the Label Text becomes 'Error Occured'")]
@@ -65,6 +70,11 @@ namespace Tizen.Uix.Stt.Tests
         public async Task ErrorMessage_GET()
         {
             SttHelper.PrintLog(Type.DLogAndlogUtil, "Executing TC:ErrorMessage_GET");
+            if (ManualTest.IsEmulator())
+            {
+                SttHelper.PrintLog(Type.DLogAndlogUtil, "This TC is not supported on Emulator");
+                return;
+            }
             SttWrapper obj = new SttWrapper();
             await obj.GenerateErrorScenario();
             if (obj.SttFeatureSupported == true)