[Badge][Manual][Non-ACR][Fixed timing issue] 48/180148/2
authorInkyun Kil <inkyun.kil@samsung.com>
Fri, 25 May 2018 06:03:17 +0000 (15:03 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Fri, 25 May 2018 06:08:50 +0000 (15:08 +0900)
An exception occurs when the tester presses
the button before the test scenario ends

Change-Id: I3cb152c4004e183cd4e3e0384fdf21c734bd491f
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
tct-suite-vs/Tizen.Badge.Manual.Tests/testcase/TSBadgeControl.cs

index 082af4e..15f4198 100755 (executable)
@@ -121,7 +121,14 @@ namespace Tizen.Applications.Tests
                     /* TEST CODE */
                     Thread.Sleep(10000);
                     badge.Count = 3;
-                    BadgeControl.Update(badge);
+                    try
+                    {
+                        BadgeControl.Update(badge);
+                    }
+                    catch (Exception e)
+                    {
+                        LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+                    }
                 }));
 
                 th.IsBackground = true;
@@ -171,7 +178,14 @@ namespace Tizen.Applications.Tests
                     /* TEST CODE */
                     Thread.Sleep(10000);
                     badge.Visible = false;
-                    BadgeControl.Update(badge);
+                    try
+                    {
+                        BadgeControl.Update(badge);
+                    }
+                    catch (Exception e)
+                    {
+                        LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+                    }
                 }));
 
                 th.IsBackground = true;
@@ -220,7 +234,14 @@ namespace Tizen.Applications.Tests
 
                     /* TEST CODE */
                     Thread.Sleep(10000);
-                    BadgeControl.Remove(badge);
+                    try
+                    {
+                        BadgeControl.Remove(badge);
+                    }
+                    catch (Exception e)
+                    {
+                        LogUtils.Write(LogUtils.INFO, LogUtils.TAG, "badge is removed already : " + e.Message);
+                    }
                 }));
 
                 th.IsBackground = true;