[Non-ACR][Applications.Cion] Skip tests on emulator 10/298110/5
authorSangyoon Jang <jeremy.jang@samsung.com>
Fri, 1 Sep 2023 00:00:11 +0000 (09:00 +0900)
committerSangyoon Jang <jeremy.jang@samsung.com>
Tue, 5 Sep 2023 04:46:40 +0000 (13:46 +0900)
Change-Id: Ia9ff68ab5e3b2392ae7d8bf8392e5e51981f835d
Signed-off-by: Sangyoon Jang <jeremy.jang@samsung.com>
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSClientBase.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSConnectionResult.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSDataPayload.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSFilePayload.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSGroupBase.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSPayload.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSPayloadAsyncResult.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSPeerInfo.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSSecurityInfo.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TSServerBase.cs
tct-suite-vs/Tizen.Applications.Cion.Tests/testcase/TestHelper.cs

index e5dd892..72fe743 100755 (executable)
@@ -75,6 +75,8 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
         }
 
         [TearDown]
index e3e6b79..afe033c 100644 (file)
@@ -26,6 +26,8 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
         }
 
         [TearDown]
index ae72f9d..312a0a0 100644 (file)
@@ -30,6 +30,9 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
+
             string data = "Test Data";
             _dataPayload = new DataPayload(Encoding.UTF8.GetBytes(data));
         }
index fa47008..9af081a 100644 (file)
@@ -30,6 +30,9 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
+
             string path = Application.Current.ApplicationInfo.SharedResourcePath + "/" + _fileName;
             _filePayload = new FilePayload(path);
         }
index 9f70a01..548b6a0 100755 (executable)
@@ -43,6 +43,8 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
         }
 
         [TearDown]
index e339dca..4d4f8fd 100644 (file)
@@ -30,6 +30,9 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
+
             _payloads = new Payload[]
             {
                 new FilePayload(_fileName),
index 99cb57e..4fef137 100644 (file)
@@ -29,6 +29,9 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
+
             string data = "PayloadAsyncResultTests";
             _dataPayload = new DataPayload(Encoding.UTF8.GetBytes(data));
         }
index 0873210..8e98ced 100644 (file)
@@ -26,6 +26,8 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
         }
 
         [TearDown]
index 89f4a09..d772f0b 100644 (file)
@@ -27,6 +27,9 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
+
             _securityInfo = new SecurityInfo();
         }
 
index 357a05a..ecd7fa7 100755 (executable)
@@ -58,6 +58,8 @@ namespace Tizen.Applications.Cion.Tests
         [SetUp]
         public void Init()
         {
+            if (TestHelper.IsEmulator())
+                Assert.Pass("The cion feature is not supported on emulator");
         }
 
         [TearDown]
index c1fdacf..8272569 100755 (executable)
@@ -58,5 +58,16 @@ namespace Tizen.Applications.Cion.Tests
                 _testServer.Value.Accept(eventArgs.PeerInfo);
             };
         }
-    }
-}
+
+        public static bool IsEmulator()
+        {
+            string value;
+            var result = Tizen.System.Information.TryGetValue("tizen.org/system/model_name", out value);
+            if (result && value.Equals("Emulator"))
+            {
+                return true;
+            }
+            return false;\r
+        }\r
+    }\r
+}
\ No newline at end of file