From: Praveen Gattu Date: Thu, 9 Jun 2016 04:09:56 +0000 (+0530) Subject: Fixed build errors for TCT. X-Git-Tag: submit/tizen/20161214.063015~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f01fff6b187753a627e1b9cd04d7832015258ec3;p=platform%2Fcore%2Fcsapi%2Fsystem.git Fixed build errors for TCT. Change-Id: Ibaaabd419ed0425567020135d75b3f3f0d9c25c6 Signed-off-by: Praveen Gattu --- diff --git a/tct-device-tizen-tests/src/Testcase/TSBattery.cs b/tct-device-tizen-tests/src/Testcase/TSBattery.cs index 66a2cdf..893bc2c 100644 --- a/tct-device-tizen-tests/src/Testcase/TSBattery.cs +++ b/tct-device-tizen-tests/src/Testcase/TSBattery.cs @@ -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"); } } } diff --git a/tct-device-tizen-tests/src/Testcase/TSHaptic.cs b/tct-device-tizen-tests/src/Testcase/TSHaptic.cs index 232d338..c22648b 100644 --- a/tct-device-tizen-tests/src/Testcase/TSHaptic.cs +++ b/tct-device-tizen-tests/src/Testcase/TSHaptic.cs @@ -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; diff --git a/tct-device-tizen-tests/src/Testcase/TSPower.cs b/tct-device-tizen-tests/src/Testcase/TSPower.cs index 89f2ff6..c416659 100644 --- a/tct-device-tizen-tests/src/Testcase/TSPower.cs +++ b/tct-device-tizen-tests/src/Testcase/TSPower.cs @@ -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); } }