Fixed build errors for TCT.
authorPraveen Gattu <gattu.p@samsung.com>
Thu, 9 Jun 2016 04:09:56 +0000 (09:39 +0530)
committerPraveen Gattu <gattu.p@samsung.com>
Thu, 9 Jun 2016 04:09:56 +0000 (09:39 +0530)
Change-Id: Ibaaabd419ed0425567020135d75b3f3f0d9c25c6
Signed-off-by: Praveen Gattu <gattu.p@samsung.com>
tct-device-tizen-tests/src/Testcase/TSBattery.cs
tct-device-tizen-tests/src/Testcase/TSHaptic.cs
tct-device-tizen-tests/src/Testcase/TSPower.cs

index 66a2cdf..893bc2c 100644 (file)
@@ -30,7 +30,7 @@ namespace TizenTest.System
             /* TEST CODE */
             LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "IsCharging_READ  Value:"+ Battery.IsCharging);
             LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "IsCharging_READ  Value:"+ Battery.Level);
-            LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "IsCharging_READ  Value:"+ Battery.Capacity);
+            LogUtils.write(LogUtils.DEBUG, LogUtils.TAG, "IsCharging_READ  Value:"+ Battery.Percent);
             if(Battery.Level != BatteryLevelStatus.Full)
                 Assert.IsTrue(Battery.IsCharging, "battery charging should be true in case battery is not full");
             else
@@ -47,7 +47,7 @@ namespace TizenTest.System
         public static void Level_READ()
         {
             /* TEST CODE */
-            if (Battery.Capacity != 100)
+            if (Battery.Percent != 100)
                 Assert.IsFalse(Battery.Level == BatteryLevelStatus.Full, "Battery Level status should not be Full if capacity is not 100%");
             else
                 Assert.IsTrue(Battery.Level == BatteryLevelStatus.Full, "Battery Level status should be Full if capacity is 100%");
@@ -64,9 +64,9 @@ namespace TizenTest.System
         {
             /* TEST CODE */
             if (Battery.Level != BatteryLevelStatus.Full)
-                Assert.IsFalse(Battery.Capacity == 100, "Battery capacity should not be 100% if Battery Level status is not Full");
+                Assert.IsFalse(Battery.Percent == 100, "Battery capacity should not be 100% if Battery Level status is not Full");
             else
-                Assert.IsTrue(Battery.Capacity == 100, "Battery capacity should be 100% if Battery Level status is Full");
+                Assert.IsTrue(Battery.Percent == 100, "Battery capacity should be 100% if Battery Level status is Full");
         }
     }
 }
index 232d338..c22648b 100644 (file)
@@ -64,7 +64,7 @@ namespace TizenTest.Sysetem
             }
             catch(Exception e)
             {
-                Assert.IsTrue(false, "failed to Vibrate");
+                Assert.IsTrue(false, "failed to Vibrate. "+e.Message);
                 task.SetResult(-1);
             }
             return await task.Task;
@@ -91,7 +91,7 @@ namespace TizenTest.Sysetem
             }
             catch (Exception e)
             {
-                Assert.IsTrue(false, "failed to Vibrate/stop");
+                Assert.IsTrue(false, "failed to Vibrate/stop "+ e.Message);
                 task.SetResult(-1);
             }
             return await task.Task;
index 89f2ff6..c416659 100644 (file)
@@ -34,7 +34,7 @@ namespace TizenTest.System
             }
             catch(Exception e)
             {
-                Assert.IsTrue(false, "failed to request cpu lock");
+                Assert.IsTrue(false, "failed to request cpu lock. "+e.Message);
             }
         }
 
@@ -54,7 +54,7 @@ namespace TizenTest.System
             }
             catch (Exception e)
             {
-                Assert.IsTrue(false, "failed to request cpu lock");
+                Assert.IsTrue(false, "failed to request cpu lock. "+e.Message);
             }
         }