[common][tct-application-tizen-tests][Add TCs due to spec change] 71/145171/2
authorxy.qian <xy.qian@samsung.com>
Mon, 21 Aug 2017 12:12:12 +0000 (20:12 +0800)
committerxy.qian <xy.qian@samsung.com>
Tue, 22 Aug 2017 05:28:54 +0000 (13:28 +0800)
Change-Id: I2ac0a8a2b1a3f001e2a06a282841a7b0cfcd026a
Signed-off-by: xy.qian <xy.qian@samsung.com>
49 files changed:
common/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_InvalidValuesError.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_exist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_with_appId.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener_exist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_extend.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_notexist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/StatusEventCallback_notexist.html [new file with mode: 0644]
common/tct-application-tizen-tests/application/StatusEventCallback_onchange.html [new file with mode: 0644]
common/tct-application-tizen-tests/config.xml
common/tct-application-tizen-tests/tests.full.xml
common/tct-application-tizen-tests/tests.xml

diff --git a/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html b/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html
new file mode 100644 (file)
index 0000000..939f7b4
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationBatteryUsage_appId_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationBatteryUsage_appId_attribute
+//==== LABEL Check if ApplicationBatteryUsage have appId attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationBatteryUsage:appId A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getBatteryUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        assert_greater_than(batteryInfoArray.length, 0, "app is not found");
+        check_readonly(batteryInfoArray[0], "appId", batteryInfoArray[0].appId, "string", "MyApp");
+        t.done();
+    });
+
+   tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html b/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html
new file mode 100644 (file)
index 0000000..9266814
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationBatteryUsage_batteryUsage_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationBatteryUsage_batteryUsage_attribute
+//==== LABEL Check if ApplicationBatteryUsage have batteryUsage attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationBatteryUsage:batteryUsage A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getBatteryUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        check_readonly(batteryInfoArray[0], "batteryUsage", batteryInfoArray[0].batteryUsage, "number", batteryUsage/2);
+        t.done();
+    });
+
+   tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html b/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html
new file mode 100644 (file)
index 0000000..ca8b74b
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationBatteryUsage_extend</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationBatteryUsage_extend
+//==== LABEL Check if interface ApplicationBatteryUsage possible extend
+//==== SPEC Tizen Web API:Application:Application:ApplicationBatteryUsage:ApplicationBatteryUsage U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA OBX
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getBatteryUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        check_extensibility(batteryInfoArray[0]);
+        t.done();
+    });
+
+   tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html b/common/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html
new file mode 100644 (file)
index 0000000..b86c2f5
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationBatteryUsage_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationBatteryUsage_notexist
+//==== LABEL Check if interface ApplicationBatteryUsage exists, it should not
+//==== SPEC Tizen Web API:Application:Application:ApplicationBatteryUsage:ApplicationBatteryUsage U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+    check_no_interface_object("ApplicationBatteryUsage");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener.html
new file mode 100644 (file)
index 0000000..60570ba
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_addAppStatusChangeListener</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener
+//==== LABEL Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== STEP Use commond "pkgcmd -D -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT setting app deactive
+//==== STEP Click run
+//==== EXPECT Test start
+//==== STEP Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT Pass
+//==== EXECUTION_TYPE manual
+//==== PRIORITY P1
+//==== TEST_CRITERIA MMINA MR
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), statusEventCallback, watchId;
+t.step(function () {
+    statusEventCallback = t.step_func(function (appId, isActive) {
+        assert_equals(isActive, true, "isActive should be true.");
+        tizen.application.removeAppStatusChangeListener(watchId);
+        t.done();
+    });
+
+    watchId = tizen.application.addAppStatusChangeListener(statusEventCallback);
+    assert_type(watchId, "long", "wrong listener ID");
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_InvalidValuesError.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_InvalidValuesError.html
new file mode 100644 (file)
index 0000000..5de2f5b
--- /dev/null
@@ -0,0 +1,51 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_InvalidValuesError</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_InvalidValuesError
+//==== LABEL Check if the application id parameter is an empty string will throw exception 
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var appEventCallback;
+    assert_throws(INVALID_VALUES_EXCEPTION, function () {
+        tizen.application.addAppStatusChangeListener(appEventCallback, "");
+    }, "exception should be thrown");
+
+}, document.title);
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..cf0abaf
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch
+//==== LABEL Check non-optional argument 'StatusEventCallback' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var i, conversionTable = getTypeConversionExceptions("functionObject", true);
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.addAppStatusChangeListener(conversionTable[i][0]);
+        }, "exception should be thrown");
+    }
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..337751a
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+-->
+
+<html>
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb
+//==== LABEL Check if an exception was thrown when callback is invalid
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTL
+
+test(function () {
+    var i, conversionTable = getListenerConversionExceptions(["onchange"]);
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.addAppStatusChangeListener(conversionTable[i][0]);
+        }, "an exception should be thrown");
+    }
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_exist.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_exist.html
new file mode 100644 (file)
index 0000000..61dac9e
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_exist
+//==== LABEL Check if method addAppStatusChangeListener exist
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.application, "addAppStatusChangeListener");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html
new file mode 100644 (file)
index 0000000..9136c3d
--- /dev/null
@@ -0,0 +1,52 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+
+<html>
+
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_misarg</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_misarg
+//==== LABEL Check addAppStatusChangeListener with missing non-optional StatusEventCallback argument
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.application.addAppStatusChangeListener();
+    }, "method was called without StatusEventCallback but exception was not thrown");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_with_appId.html b/common/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_with_appId.html
new file mode 100644 (file)
index 0000000..caaed6d
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_addAppStatusChangeListener_with_appId</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_addAppStatusChangeListener_with_appId
+//==== LABEL Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:addAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== STEP Use commond "pkgcmd -D -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT setting app deactive
+//==== STEP Click run
+//==== EXPECT Test start
+//==== STEP Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT Pass
+//==== EXECUTION_TYPE manual
+//==== PRIORITY P1
+//==== TEST_CRITERIA MOA MR
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), statusEventCallback, watchId;
+t.step(function () {
+    statusEventCallback = t.step_func(function (appId, isActive) {
+        assert_equals(isActive, true, "isActive should be true.");
+        tizen.application.removeAppStatusChangeListener(watchId);
+        t.done();
+    });
+
+    watchId = tizen.application.addAppStatusChangeListener(statusEventCallback, "org.tizen.setting");
+    assert_type(watchId, "long", "wrong listener ID");
+});
+
+</script>
+</body>
+</html>
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html
new file mode 100644 (file)
index 0000000..8c73c52
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo
+//==== LABEL Check if method getAppsUsageInfo works properly without optional parameter
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MMINA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, retVal;
+
+t.step(function () {
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_equals(retVal, undefined, "getAppsUsageInfo should return undefined.");
+        t.done();
+    });
+
+    retVal = tizen.application.getAppsUsageInfo(getSuccessCallback);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..712147b
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch
+//==== LABEL Check argument 'errorCallback' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), getsuccessCallback, i, conversionTable;
+
+t.step(function () {
+
+    conversionTable = getTypeConversionExceptions("functionObject", true);
+
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() success callback should not be invoked.");
+    });
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.getAppsUsageInfo(getsuccessCallback, conversionTable[i][0]);
+        }, "exception should be thrown");
+    }
+    t.done();
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..6f2c2e0
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb
+//==== LABEL Check if getAppsUsageInfo throws exception when errorCallback is incorrect
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), getsuccessCallback, exceptionName = "TypeMismatchError", incorrectCallback;
+
+t.step(function () {
+
+    incorrectCallback = {
+        onerror: t.step_func(function (error) {
+            assert_unreached("Invalid getAppsUsageInfo() errorCallback invoked:" + error.name + ": " + error.message);
+        })
+    };
+
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() success callback should not be invoked.");
+    });
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.application.getAppsUsageInfo(getsuccessCallback, incorrectCallback);
+        }, "Given incorrect errorCallback.");
+    t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html
new file mode 100644 (file)
index 0000000..a6bc642
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_errorCallback_invoked</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_errorCallback_invoked
+//==== LABEL Check exception in error callback of getAppsUsageInfo method
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MERRCB
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() success callback should not be invoked.");
+    });
+
+    getErrorCallback = t.step_func(function (error) {
+        assert_equals(error.name, "InvalidValuesError", "Incorrect error name.");
+        assert_type(error.message, "string", "Error message is not a string");
+        assert_not_equals(error.message, "", "Error message is empty");
+        t.done();
+    });
+
+    tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, -1);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html
new file mode 100644 (file)
index 0000000..31fe8f3
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_exist
+//==== LABEL Check if method getAppsUsageInfo exist
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.application, "getAppsUsageInfo");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html
new file mode 100644 (file)
index 0000000..89f8a79
--- /dev/null
@@ -0,0 +1,70 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_getAppsUsageInfo_filter_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_filter_TypeMismatch
+//==== LABEL Check argument 'filter' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), getsuccessCallback, getErrorCallback, i, conversionTable;
+
+t.step(function () {
+
+    conversionTable = getTypeConversionExceptions("object", true);
+
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() success callback should not be invoked.");
+    });
+
+    getErrorCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() error callback should not be invoked.");
+    });
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.getAppsUsageInfo(getsuccessCallback, getErrorCallback, "FREQUENTLY", conversionTable[i][0], 5);
+        }, "exception should be thrown");
+    }
+    t.done();
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html
new file mode 100644 (file)
index 0000000..1d96fde
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_filter_empty</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_filter_empty
+//==== LABEL Check if method getAppsUsageInfo can be called with empty object as filter argument
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MTD
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        t.done();
+    });
+
+    tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html
new file mode 100644 (file)
index 0000000..272eaaa
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_filter_invalid_obj</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_filter_invalid_obj
+//==== LABEL Check if find throws exception when filter is a simple object
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback, filter, exceptionName = "TypeMismatchError";
+
+t.step(function () {
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() success callback should not be invoked.");
+    });
+
+    getErrorCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getAppsUsageInfo() error callback should not be invoked.");
+    });
+
+    filter = {
+        timeSpan: 7
+    };
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", filter, 5);
+        }, "Given incorrect filter.");
+    t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html
new file mode 100644 (file)
index 0000000..2753c14
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_misarg</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_misarg
+//==== LABEL Check if getAppsUsageInfo method called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.application.getAppsUsageInfo();
+    }, "Invoked with non-optional arguments.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..f5abcf1
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch
+//==== LABEL Check argument 'successCallback' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var i, conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.getAppsUsageInfo(conversionTable[i][0]);
+        }, "exception should be thrown");
+    }
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..e9a9831
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb
+//==== LABEL Check if getAppsUsageInfo throws exception when successCallback is incorrect
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), exceptionName = "TypeMismatchError", incorrectCallback;
+
+t.step(function () {
+    incorrectCallback = {
+        onsuccess: t.step_func(function (appsInfoArray) {
+            assert_unreached("Invalid getAppsUsageInfo() successCallback invoked.");
+        })
+    };
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.application.getAppsUsageInfo(incorrectCallback);
+        }, "Given incorrect successCallback.");
+    t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html b/common/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html
new file mode 100644 (file)
index 0000000..8f59eae
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getAppsUsageInfo_with_limit</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getAppsUsageInfo_with_limit
+//==== LABEL Check if method getAppsUsageInfo works properly with all optional parameter
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getAppsUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MOA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback, retVal;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_equals(retVal, undefined, "getAppsUsageInfo should return undefined.");
+        t.done();
+    });
+
+    retVal = tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html
new file mode 100644 (file)
index 0000000..e89b754
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo
+//==== LABEL Check if method getBatteryUsageInfo works properly without optional parameter
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MMINA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, retVal;
+
+t.step(function () {
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        assert_equals(retVal, undefined, "getBatteryUsageInfo should return undefined.");
+        t.done();
+    });
+
+    retVal = tizen.application.getBatteryUsageInfo(getSuccessCallback);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..9acb0b1
--- /dev/null
@@ -0,0 +1,66 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch
+//==== LABEL Check argument 'errorCallback' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), getsuccessCallback, i, conversionTable;
+
+t.step(function () {
+
+    conversionTable = getTypeConversionExceptions("functionObject", true);
+
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getBatteryUsageInfo() success callback should not be invoked.");
+    });
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.getBatteryUsageInfo(getsuccessCallback, conversionTable[i][0]);
+        }, "exception should be thrown");
+    }
+    t.done();
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..c4cb29c
--- /dev/null
@@ -0,0 +1,63 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb
+//==== LABEL Check if getBatteryUsageInfo throws exception when errorCallback is incorrect
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), getsuccessCallback, exceptionName = "TypeMismatchError", incorrectCallback;
+
+t.step(function () {
+
+    incorrectCallback = {
+        onerror: t.step_func(function (error) {
+            assert_unreached("Invalid getBatteryUsageInfo() errorCallback invoked:" + error.name + ": " + error.message);
+        })
+    };
+
+    getsuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getBatteryUsageInfo() success callback should not be invoked.");
+    });
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.application.getBatteryUsageInfo(getsuccessCallback, incorrectCallback);
+        }, "Given incorrect errorCallback.");
+    t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html
new file mode 100644 (file)
index 0000000..bf7bd5c
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_errorCallback_invoked</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_errorCallback_invoked
+//==== LABEL Check exception in error callback of getBatteryUsageInfo method
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MERRCB
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_unreached("getBatteryUsageInfo() success callback should not be invoked.");
+    });
+
+    getErrorCallback = t.step_func(function (error) {
+        assert_equals(error.name, "InvalidValuesError", "Incorrect error name.");
+        assert_type(error.message, "string", "Error message is not a string");
+        assert_not_equals(error.message, "", "Error message is empty");
+        t.done();
+    });
+
+    tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, -1);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html
new file mode 100644 (file)
index 0000000..85be097
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_exist
+//==== LABEL Check if method getBatteryUsageInfo exist
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.application, "getBatteryUsageInfo");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html
new file mode 100644 (file)
index 0000000..86e8cc7
--- /dev/null
@@ -0,0 +1,50 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_misarg</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_misarg
+//==== LABEL Check if getBatteryUsageInfo method called with missing non-optional argument throws an exception
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.application.getBatteryUsageInfo();
+    }, "Invoked with non-optional arguments.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html
new file mode 100644 (file)
index 0000000..04b2263
--- /dev/null
@@ -0,0 +1,56 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch
+//==== LABEL Check argument 'successCallback' type conversion
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var i, conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.application.getBatteryUsageInfo(conversionTable[i][0]);
+        }, "exception should be thrown");
+    }
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html
new file mode 100644 (file)
index 0000000..601914c
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb
+//==== LABEL Check if getBatteryUsageInfo throws exception when successCallback is incorrect
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTCB
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), exceptionName = "TypeMismatchError", incorrectCallback;
+
+t.step(function () {
+    incorrectCallback = {
+        onsuccess: t.step_func(function (appsInfoArray) {
+            assert_unreached("Invalid getBatteryUsageInfo() successCallback invoked.");
+        })
+    };
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.application.getBatteryUsageInfo(incorrectCallback);
+        }, "Given incorrect successCallback.");
+    t.done();
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html b/common/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html
new file mode 100644 (file)
index 0000000..2911034
--- /dev/null
@@ -0,0 +1,62 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_getBatteryUsageInfo_with_limit</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_getBatteryUsageInfo_with_limit
+//==== LABEL Check if method getBatteryUsageInfo works properly with all optional parameter
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:getBatteryUsageInfo M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MOA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback, retVal;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getBatteryUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        assert_equals(retVal, undefined, "getBatteryUsageInfo should return undefined.");
+        t.done();
+    });
+
+    retVal = tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener.html b/common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener.html
new file mode 100644 (file)
index 0000000..0f83c39
--- /dev/null
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_removeAppStatusChangeListener</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_removeAppStatusChangeListener
+//==== LABEL Check using removeAppStatusChangeListener method (installation process) in ApplicationManager interface
+//==== ONLOAD_DELAY 30
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:removeAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+setup({timeout: 30000});
+
+var t = async_test(document.title, {timeout: 30000}), appEventCallback, watchId, retVal;
+t.step(function () {
+    appEventCallback = t.step_func(function (appId, isActive) {
+        assert_unreached("This function should not be used");
+    });
+
+    watchId = tizen.application.addAppStatusChangeListener(appEventCallback);
+    retVal = tizen.application.removeAppStatusChangeListener(watchId);
+    assert_type(retVal, "undefined", "this method should return nothing");
+    t.done();
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener_exist.html b/common/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener_exist.html
new file mode 100644 (file)
index 0000000..840e892
--- /dev/null
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>ApplicationManager_removeAppStatusChangeListener_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: ApplicationManager_removeAppStatusChangeListener_exist
+//==== LABEL Check if method removeAppStatusChangeListener exist
+//==== SPEC Tizen Web API:Application:Application:ApplicationManager:removeAppStatusChangeListener M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.application, "removeAppStatusChangeListener");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html b/common/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html
new file mode 100644 (file)
index 0000000..c700052
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_appId_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_appId_attribute
+//==== LABEL Check if ApplicationUsage have appId attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:appId A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_greater_than(appsInfoArray.length, 0, "app is not found");
+        check_readonly(appsInfoArray[0], "appId", appsInfoArray[0].appId, "string", "MyApp");
+        t.done();
+    });
+
+   tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_extend.html b/common/tct-application-tizen-tests/application/ApplicationUsage_extend.html
new file mode 100644 (file)
index 0000000..ea2dc7e
--- /dev/null
@@ -0,0 +1,57 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_extend</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_extend
+//==== LABEL Check if interface ApplicationUsage possible extend
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:ApplicationUsage U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA OBX
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        check_extensibility(appsInfoArray[0]);
+        t.done();
+    });
+
+   tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html b/common/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html
new file mode 100644 (file)
index 0000000..a884768
--- /dev/null
@@ -0,0 +1,61 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_lastTime_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_lastTime_attribute
+//==== LABEL Check if ApplicationUsage have lastTime attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:lastTime A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_greater_than(appsInfoArray.length, 0, "app is not found");
+        assert_type(appsInfoArray[0].lastTime, "date", "lastTime should be a date");
+        beforeValue = appsInfoArray[0].lastTime;
+        appsInfoArray[0].lastTime = new Date();
+        assert_equals(appsInfoArray[0].lastTime.getTime(), beforeValue.getTime(), "Content.modifiedDate should be readonly");
+        t.done();
+    });
+
+   tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_notexist.html b/common/tct-application-tizen-tests/application/ApplicationUsage_notexist.html
new file mode 100644 (file)
index 0000000..2edcd95
--- /dev/null
@@ -0,0 +1,43 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_notexist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_notexist
+//==== LABEL Check if interface ApplicationUsage exists, it should not
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:ApplicationUsage U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA NIO
+
+test(function () {
+    check_no_interface_object("ApplicationUsage");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html b/common/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html
new file mode 100644 (file)
index 0000000..ad59ce9
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_totalCount_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_totalCount_attribute
+//==== LABEL Check if ApplicationUsage have totalCount attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:totalCount A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_greater_than(appsInfoArray.length, 0, "app is not found");
+        check_readonly(appsInfoArray[0], "totalCount", appsInfoArray[0].totalCount, "number", totalCount+1);
+        t.done();
+    });
+
+   tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html b/common/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html
new file mode 100644 (file)
index 0000000..4f4e633
--- /dev/null
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Author:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+<html>
+<head>
+<title>ApplicationUsage_totalDuration_attribute</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: ApplicationUsage_totalDuration_attribute
+//==== LABEL Check if ApplicationUsage have totalDuration attribute with proper type and is readonly
+//==== SPEC Tizen Web API:Application:Application:ApplicationUsage:totalDuration A
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA AE AT ARO
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_greater_than(appsInfoArray.length, 0, "app is not found");
+        check_readonly(appsInfoArray[0], "totalDuration", appsInfoArray[0].totalDuration, "number", totalDuration+1);
+        t.done();
+    });
+
+   tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html b/common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html
new file mode 100644 (file)
index 0000000..75e7bdd
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+<html>
+<head>
+<title>AppsUsageInfoArraySuccessCallback_notexist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AppsUsageInfoArraySuccessCallback_notexist
+//==== LABEL Check if AppsUsageInfoArraySuccessCallback notexist
+//==== SPEC Tizen Web API:Application:Application:AppsUsageInfoArraySuccessCallback:AppsUsageInfoArraySuccessCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+    check_no_interface_object("AppsUsageInfoArraySuccessCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html b/common/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html
new file mode 100644 (file)
index 0000000..8a02b37
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>AppsUsageInfoArraySuccessCallback_onsuccess</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AppsUsageInfoArraySuccessCallback_onsuccess
+//==== LABEL Check if AppsUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type
+//==== SPEC Tizen Web API:Application:Application:AppsUsageInfoArraySuccessCallback:onsuccess M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CBT CBOA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (appsInfoArray) {
+        assert_type(appsInfoArray, "array", "wrong type of received value");
+        assert_type(appsInfoArray[0],"object","wrong type of received value");
+        assert_type(appsInfoArray[0].appId, "string", "appId type check");
+        assert_type(appsInfoArray[0].totalCount, "long", "totalCount type check");
+        assert_type(appsInfoArray[0].totalDuration, "long", "totalDuration type check");
+        assert_type(appsInfoArray[0].lastTime, "object", "lastTime type check");
+        t.done();
+    });
+
+    tizen.application.getAppsUsageInfo(getSuccessCallback, getErrorCallback, "FREQUENTLY", {timeSpan: 7}, 5);
+
+});
+
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html b/common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html
new file mode 100644 (file)
index 0000000..75766bb
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+<html>
+<head>
+<title>BatteryUsageInfoArraySuccessCallback_notexist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: BatteryUsageInfoArraySuccessCallback_notexist
+//==== LABEL Check if BatteryUsageInfoArraySuccessCallback notexist
+//==== SPEC Tizen Web API:Application:Application:BatteryUsageInfoArraySuccessCallback:BatteryUsageInfoArraySuccessCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+    check_no_interface_object("BatteryUsageInfoArraySuccessCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html b/common/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html
new file mode 100644 (file)
index 0000000..2fb392e
--- /dev/null
@@ -0,0 +1,68 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>BatteryUsageInfoArraySuccessCallback_onsuccess</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: BatteryUsageInfoArraySuccessCallback_onsuccess
+//==== LABEL Check if BatteryUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type
+//==== SPEC Tizen Web API:Application:Application:BatteryUsageInfoArraySuccessCallback:onsuccess M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA CBT CBOA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), getSuccessCallback, getErrorCallback;
+
+t.step(function () {
+    getErrorCallback = t.step_func(function (error) {
+        assert_unreached("getAppsUsageInfo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    getSuccessCallback = t.step_func(function (batteryInfoArray) {
+        assert_type(batteryInfoArray, "array", "wrong type of received value");
+        assert_type(batteryInfoArray[0],"object","wrong type of received value");
+        assert_type(batteryInfoArray[0].appId, "string", "appId type check");
+        assert_type(batteryInfoArray[0].batteryUsage, "double", "batteryUsage type check");
+        assert_greater_than_equal(batteryInfoArray[0].batteryUsage, 0, "Need at least 0 value");
+        assert_less_than_equal(batteryInfoArray[0].batteryUsage, 100, "Maximum should not above 100");
+        t.done();
+    });
+
+    tizen.application.getBatteryUsageInfo(getSuccessCallback, getErrorCallback, 1, 5);
+
+});
+
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/StatusEventCallback_notexist.html b/common/tct-application-tizen-tests/application/StatusEventCallback_notexist.html
new file mode 100644 (file)
index 0000000..e9f20b5
--- /dev/null
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+<html>
+<head>
+<title>StatusEventCallback_notexist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: StatusEventCallback_notexist
+//==== LABEL Check if StatusEventCallback notexist
+//==== SPEC Tizen Web API:Application:Application:StatusEventCallback:StatusEventCallback U
+//==== SPEC_URL TBD
+//==== PRIORITY P3
+//==== TEST_CRITERIA CBNIO
+
+test(function () {
+    check_no_interface_object("StatusEventCallback");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-application-tizen-tests/application/StatusEventCallback_onchange.html b/common/tct-application-tizen-tests/application/StatusEventCallback_onchange.html
new file mode 100644 (file)
index 0000000..5fcfa34
--- /dev/null
@@ -0,0 +1,67 @@
+<!DOCTYPE html>
+
+<!--
+
+Copyright (c) 2017 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+
+-->
+
+<html>
+<head>
+<title>StatusEventCallback_onchange</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+<script src="support/app_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: StatusEventCallback_onchange
+//==== LABEL Check argument passed into method which is oninstalled listener in StatusEventCallback
+//==== SPEC Tizen Web API:Application:Application:StatusEventCallback:onchange M
+//==== SPEC_URL TBD
+//==== STEP Use commond "pkgcmd -D -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT setting app deactive
+//==== STEP Click run
+//==== EXPECT Test start
+//==== STEP Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.
+//==== EXPECT Pass
+//==== EXECUTION_TYPE manual
+//==== PRIORITY P1
+//==== TEST_CRITERIA CBT CBOA
+
+setup({timeout: 300000});
+
+var t = async_test(document.title, {timeout: 300000}), appEventCallback, watchId;
+
+t.step(function () {
+    appEventCallback = t.step_func(function (appId, isActive) {
+        assert_type(isActive, "boolean", "wrong type of received value");
+        tizen.application.removeAppStatusChangeListener(watchId);
+        t.done();
+    });
+
+    watchId = tizen.application.addAppStatusChangeListener(appEventCallback);
+
+});
+
+</script>
+</body>
+</html>
index fcd051b3b590527bf397b0e5b0e6a926ad9f1bbd..c77f8e6b531ac91bf78116c64921f9e5111084a0 100755 (executable)
@@ -5,6 +5,8 @@
   <tizen:privilege name="http://tizen.org/privilege/appmanager.kill"/>
   <tizen:privilege name="http://tizen.org/privilege/appmanager.certificate"/>
   <tizen:privilege name="http://tizen.org/privilege/application.info"/>
+  <tizen:privilege name="http://tizen.org/privilege/apphistory.read"/>
+  <feature name="http://tizen.org/feature/battery"/>
   <icon src="icon.png" height="117" width="117"/>
   <tizen:application id="api1appli0.WebAPITizenApplicationTests" package="api1appli0" required_version="4.0"/>
   <tizen:setting screen-orientation="landscape" />
index da4a8f2ae962be969b23c663d150693c963ba341..92df5d37c2be8df686aa7f98c2f1aa3d60f4f9f8 100755 (executable)
           </spec>
         </specs>
       </testcase>
-         
+      <testcase purpose="Check if ApplicationBatteryUsage have appId attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationBatteryUsage" element_type="attribute" element_name="appId" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ApplicationBatteryUsage have batteryUsage attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_batteryUsage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationBatteryUsage" element_type="attribute" element_name="batteryUsage" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage possible extend" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationBatteryUsage" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationBatteryUsage" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly without optional parameter" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getAppsUsageInfo method" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo exist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getAppsUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'filter' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo can be called with empty object as filter argument" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_filter_empty">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if find throws exception when filter is a simple object" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when successCallback is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly with all optional parameter" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getAppsUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly without optional parameter" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when errorCallback is incorrect" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getBatteryUsageInfo method" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo exist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getBatteryUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo method called with missing non-optional argument throws an exception" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when successCallback is incorrect" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly with all optional parameter" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="getBatteryUsageInfo" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have appId attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" element_type="attribute" element_name="appId" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage possible extend" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_extend.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have lastTime attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_lastTime_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" element_type="attribute" element_name="lastTime" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage exists, it should not" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalCount attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalCount_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" element_type="attribute" element_name="totalCount" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalDuration attribute with proper type and is readonly" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalDuration_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationUsage" element_type="attribute" element_name="totalDuration" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback notexist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="AppsUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AppsUsageInfoArraySuccessCallback" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="AppsUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AppsUsageInfoArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback notexist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="BatteryUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="BatteryUsageInfoArraySuccessCallback" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="BatteryUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="BatteryUsageInfoArraySuccessCallback" element_type="method" element_name="onsuccess" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if the application id parameter is an empty string will throw exception " type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener_InvalidValuesError">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_InvalidValuesError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check non-optional argument 'StatusEventCallback' type conversion" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if an exception was thrown when callback is invalid" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addAppStatusChangeListener exist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_addAppStatusChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check addAppStatusChangeListener with missing non-optional StatusEventCallback argument" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener_with_appId">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_with_appId.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="addAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check using removeAppStatusChangeListener method (installation process) in ApplicationManager interface" type="compliance" onload_delay="30" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_removeAppStatusChangeListener">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="removeAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method removeAppStatusChangeListener exist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_removeAppStatusChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="ApplicationManager" element_type="method" element_name="removeAppStatusChangeListener" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if StatusEventCallback notexist" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="StatusEventCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/StatusEventCallback_notexist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="StatusEventCallback" usage="true" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument passed into method which is oninstalled listener in StatusEventCallback" type="compliance" status="approved" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="StatusEventCallback_onchange">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/StatusEventCallback_onchange.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="StatusEventCallback" element_type="method" element_name="onchange" specification="Application" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/application.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
-</test_definition>
\ No newline at end of file
+</test_definition>
index 7180d20240869b527186782fee1a7500a219ca89..ba80710bd18ec2d1008d3ed30fb794a29c315b2d 100755 (executable)
           <test_script_entry>/opt/tct-application-tizen-tests/application/EventCallback_notexist.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if the application id parameter is an empty string will throw exception " component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_addAppStatusChangeListener_InvalidValuesError">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_InvalidValuesError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check non-optional argument 'StatusEventCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if an exception was thrown when callback is invalid" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_eventCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addAppStatusChangeListener exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_addAppStatusChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check addAppStatusChangeListener with missing non-optional StatusEventCallback argument" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_addAppStatusChangeListener_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check using addAppStatusChangeListener method (installation process) in ApplicationManager interface" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="ApplicationManager_addAppStatusChangeListener_with_appId">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_addAppStatusChangeListener_with_appId.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check using removeAppStatusChangeListener method (installation process) in ApplicationManager interface" onload_delay="30" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_removeAppStatusChangeListener">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method removeAppStatusChangeListener exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_removeAppStatusChangeListener_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_removeAppStatusChangeListener_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if StatusEventCallback notexist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="StatusEventCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/StatusEventCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument passed into method which is oninstalled listener in StatusEventCallback" component="Tizen Device APIs/Application/Application" execution_type="manual" priority="P1" id="StatusEventCallback_onchange">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>pkgcmd -D -t app -n org.tizen.setting --global.</step_desc>
+              <expected>setting app deactive</expected>
+            </step>
+            <step order="2">
+              <step_desc>Click run.</step_desc>
+              <expected>Test start</expected>
+            </step>
+            <step order="3">
+              <step_desc>Use commond "pkgcmd -A -t app -n org.tizen.setting --global" to activie setting app.</step_desc>
+              <expected>Pass</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/StatusEventCallback_onchange.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="Application_mobile" type="js">
       <capabilities>
           <test_script_entry>/opt/tct-application-tizen-tests/application/EventCallback_onevent.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if ApplicationBatteryUsage have appId attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_appId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationBatteryUsage have batteryUsage attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationBatteryUsage_batteryUsage_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_batteryUsage_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage possible extend" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationBatteryUsage exists, it should not" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationBatteryUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationBatteryUsage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly without optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getAppsUsageInfo method" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getAppsUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'filter' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo can be called with empty object as filter argument" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_filter_empty">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_empty.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if find throws exception when filter is a simple object" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_filter_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_filter_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getAppsUsageInfo throws exception when successCallback is incorrect" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAppsUsageInfo works properly with all optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getAppsUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getAppsUsageInfo_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly without optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'errorCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when errorCallback is incorrect" onload_delay="30" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check exception in error callback of getBatteryUsageInfo method" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_errorCallback_invoked">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_errorCallback_invoked.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo exist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P0" id="ApplicationManager_getBatteryUsageInfo_exist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo method called with missing non-optional argument throws an exception" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_misarg">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'successCallback' type conversion" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if getBatteryUsageInfo throws exception when successCallback is incorrect" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P2" id="ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_successCallback_invalid_cb.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getBatteryUsageInfo works properly with all optional parameter" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationManager_getBatteryUsageInfo_with_limit">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationManager_getBatteryUsageInfo_with_limit.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have appId attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_appId_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_appId_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage possible extend" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_extend">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_extend.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have lastTime attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_lastTime_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_lastTime_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if interface ApplicationUsage exists, it should not" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="ApplicationUsage_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalCount attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalCount_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalCount_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if ApplicationUsage have totalDuration attribute with proper type and is readonly" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="ApplicationUsage_totalDuration_attribute">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/ApplicationUsage_totalDuration_attribute.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback notexist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="AppsUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AppsUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="AppsUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/AppsUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback notexist" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P3" id="BatteryUsageInfoArraySuccessCallback_notexist">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_notexist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if BatteryUsageInfoArraySuccessCallback onsuccess is called and if its arguments have proper type" component="Tizen Device APIs/Application/Application" execution_type="auto" priority="P1" id="BatteryUsageInfoArraySuccessCallback_onsuccess">
+        <description>
+          <test_script_entry>/opt/tct-application-tizen-tests/application/BatteryUsageInfoArraySuccessCallback_onsuccess.html</test_script_entry>
+        </description>
+      </testcase>
    </set>
     <set name="Application_waeable" type="js">
       <capabilities>