[common][tct-notification-tizen-tests][Add TCs due to spec change] 62/125962/2
authorxy.qian <xy.qian@samsung.com>
Wed, 19 Apr 2017 11:45:02 +0000 (19:45 +0800)
committerxy.qian <xy.qian@samsung.com>
Wed, 19 Apr 2017 11:48:13 +0000 (19:48 +0800)
Change-Id: I8e40d88002ee565255dfdb010cadbe1a4318c002
Signed-off-by: xy.qian <xy.qian@samsung.com>
common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html [new file with mode: 0644]
common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html [new file with mode: 0644]
common/tct-notification-tizen-tests/tests.full.xml
common/tct-notification-tizen-tests/tests.xml

diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html b/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html
new file mode 100644 (file)
index 0000000..8809745
--- /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>NotificationManager_createNotificationFromTemplate</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_createNotificationFromTemplate
+//==== LABEL Check if NotificationManager createNotificationFromTemplate method works properly
+//==== SPEC Tizen Web API:Application:Notification:NotificationManager:createNotificationFromTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+    add_result_callback(function () {
+        try {
+            tizen.notification.removeAll();
+        } catch (err) {
+            // do nothing in case removeAll throw an exception
+        }
+    });
+
+    var notificationDict, notification, retVal;
+    notificationDict = {
+        content: "This is a simple notification.",
+        iconPath: "images/webapi-tizen-notification-test_image1.jpg",
+        soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+    };
+    notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+    tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+    retVal = tizen.notification.createNotificationFromTemplate("SIMPLE_TEMPLATE");
+    assert_true(retVal instanceof tizen.notification, "object was not get properly");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html b/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html
new file mode 100644 (file)
index 0000000..93f3315
--- /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>NotificationManager_createNotificationFromTemplate_NotFoundError</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_createNotificationFromTemplate_NotFoundError
+//==== LABEL Check NotificationManager.createNotificationFromTemplate method throw exception when cannot find a template with given name
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:createNotificationFromTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var exceptionName = "NotFoundError";
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.notification.createNotificationFromTemplate("TEST");
+        }, exceptionName + " should be thrown.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html b/common/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html
new file mode 100644 (file)
index 0000000..bad4413
--- /dev/null
@@ -0,0 +1,46 @@
+<!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>NotificationManager_createNotificationFromTemplate_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: NotificationManager_createNotificationFromTemplate_exist
+//==== LABEL Check if method createNotificationFromTemplate which in NotificationManager interface exists.
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:createNotificationFromTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    assert_true("createNotificationFromTemplate" in tizen.notification, "No createNotificationFromTemplate method in tizen.notification.");
+    check_method_exists(tizen.notification, "createNotificationFromTemplate");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html
new file mode 100644 (file)
index 0000000..9177d80
--- /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.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>NotificationManager_saveNotificationAsTemplate</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_saveNotificationAsTemplate
+//==== LABEL Check if NotificationManager saveNotificationAsTemplate method works properly
+//==== SPEC Tizen Web API:Application:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+    add_result_callback(function () {
+        try {
+            tizen.notification.removeAll();
+        } catch (err) {
+            // do nothing in case removeAll throw an exception
+        }
+    });
+
+    var notificationDict, notification, retVal;
+    notificationDict = {
+        content: "This is a simple notification.",
+        iconPath: "images/webapi-tizen-notification-test_image1.jpg",
+        soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+    };
+    notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+    retVal = tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+    assert_equals(retVal, undefined, "saveNotificationAsTemplate() should return undefined.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html
new file mode 100644 (file)
index 0000000..c9d83b8
--- /dev/null
@@ -0,0 +1,69 @@
+<!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>NotificationManager_saveNotificationAsTemplate_QuotaExceededError</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_saveNotificationAsTemplate_QuotaExceededError
+//==== LABEL Check if NotificationManager saveNotificationAsTemplate method throw exception when the allowed number of templates is exceeded.
+//==== SPEC Tizen Web API:Application:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    add_result_callback(function () {
+        try {
+            tizen.notification.removeAll();
+        } catch (err) {
+            // do nothing in case removeAll throw an exception
+        }
+    });
+
+    var notificationDict, notification, i, exceptionName = "QuotaExceededError";
+    notificationDict = {
+        content: "This is a simple notification.",
+        iconPath: "images/webapi-tizen-notification-test_image1.jpg",
+        soundPath: "music/webapi-tizen-notification-test_noise1.mp3"
+    };
+    notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict);
+    for (i = 1; i < 11; i++) {
+        tizen.notification.saveNotificationAsTemplate("TEMPLATE" + i.toString(), notification);
+    }
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+        }, exceptionName + " should be thrown - missing argument.");
+
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html
new file mode 100644 (file)
index 0000000..f9f63f0
--- /dev/null
@@ -0,0 +1,46 @@
+<!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>NotificationManager_saveNotificationAsTemplate_exist</title>
+<meta charset="utf-8"/>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: NotificationManager_saveNotificationAsTemplate_exist
+//==== LABEL Check if method saveNotificationAsTemplate which in NotificationManager interface exists.
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    assert_true("saveNotificationAsTemplate" in tizen.notification, "No saveNotificationAsTemplate method in tizen.notification.");
+    check_method_exists(tizen.notification, "saveNotificationAsTemplate");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html
new file mode 100644 (file)
index 0000000..fb9a3ba
--- /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>NotificationManager_saveNotificationAsTemplate_invalid_obj</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: NotificationManager_saveNotificationAsTemplate_invalid_obj
+//==== LABEL Check if NotificationManager::saveNotificationAsTemplate() method throw exception when a fake system object was passed
+//==== PRIORITY: P2
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MTO
+
+test(function () {
+    var notification;
+
+    notification = {
+        statusType: "SIMPLE",
+        title: "Title"
+    };
+
+    assert_throws(TYPE_MISMATCH_EXCEPTION,
+        function () {
+            tizen.notification.saveNotificationAsTemplate("TEMPLATE", notification);
+        }, "TYPE_MISMATCH_EXCEPTION should be thrown - given incorrect notification.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html
new file mode 100644 (file)
index 0000000..45c8db6
--- /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>NotificationManager_saveNotificationAsTemplate_misarg</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_saveNotificationAsTemplate_misarg
+//==== LABEL Check with missing non-optional argument - NotificationManager.saveNotificationAsTemplate
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    var exceptionName = "TypeMismatchError";
+
+    assert_throws({name: exceptionName},
+        function () {
+            tizen.notification.saveNotificationAsTemplate();
+        }, exceptionName + " should be thrown - missing argument.");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html b/common/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html
new file mode 100644 (file)
index 0000000..b4adc77
--- /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>NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch</title>
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch
+//==== LABEL Check type conversions for notification argument of NotificationManager.saveNotificationAsTemplate method
+//==== PRIORITY: P2
+//==== SPEC Tizen Web API:User Interface:Notification:NotificationManager:saveNotificationAsTemplate M
+//==== SPEC_URL TBD
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var exceptionName, conversionTable, notification, i;
+
+    conversionTable = getTypeConversionExceptions("object", false);
+    for(i = 0; i < conversionTable.length; i++) {
+        notification = conversionTable[i][0];
+        exceptionName = conversionTable[i][1];
+
+        assert_throws({name: exceptionName},
+        function () {
+            tizen.notification.saveNotificationAsTemplate("SIMPLE_TEMPLATE", notification);
+        }, exceptionName + " should be thrown - given incorrect notification.");
+    }
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
index 42690e9b3e0e7b7a5125ec248314a3ac509a3d3f..7d4d315b55c69a273c916af948ada3d8d3a61a87 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if NotificationManager createNotificationFromTemplate method works properly" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_createNotificationFromTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check NotificationManager.createNotificationFromTemplate method throw exception when cannot find a template with given name" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_createNotificationFromTemplate_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method createNotificationFromTemplate which in NotificationManager interface exists." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_createNotificationFromTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method works properly" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_saveNotificationAsTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method throw exception when the allowed number of templates is exceeded." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_QuotaExceededError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method saveNotificationAsTemplate which in NotificationManager interface exists." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_saveNotificationAsTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager::saveNotificationAsTemplate() method throw exception when a fake system object was passed" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - NotificationManager.saveNotificationAsTemplate" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_misarg">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for notification argument of NotificationManager.saveNotificationAsTemplate method" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="LED_mobile" type="js">
       <capabilities>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if NotificationManager createNotificationFromTemplate method works properly" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_createNotificationFromTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check NotificationManager.createNotificationFromTemplate method throw exception when cannot find a template with given name" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_createNotificationFromTemplate_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method createNotificationFromTemplate which in NotificationManager interface exists." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_createNotificationFromTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="createNotificationFromTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method works properly" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_saveNotificationAsTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method throw exception when the allowed number of templates is exceeded." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_QuotaExceededError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method saveNotificationAsTemplate which in NotificationManager interface exists." type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_saveNotificationAsTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if NotificationManager::saveNotificationAsTemplate() method throw exception when a fake system object was passed" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - NotificationManager.saveNotificationAsTemplate" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_misarg">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check type conversions for notification argument of NotificationManager.saveNotificationAsTemplate method" type="compliance" status="approved" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="NotificationManager" element_type="method" element_name="saveNotificationAsTemplate" specification="Notification" section="User Interface" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/notification.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
     <set name="LED_wearable" type="js">
       <capabilities>
index 53ac7aa9de3ecbdad8ebf92686a7b1b588ee5ba9..d1d4c58333884a026216971cb3ef8d666fd7c67c 100755 (executable)
           <test_script_entry>/opt/tct-notification-tizen-tests/notification/StatusNotification_vibration_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if NotificationManager createNotificationFromTemplate method works properly" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_createNotificationFromTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check NotificationManager.createNotificationFromTemplate method throw exception when cannot find a template with given name" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_createNotificationFromTemplate_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method createNotificationFromTemplate which in NotificationManager interface exists." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_createNotificationFromTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method works properly" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_saveNotificationAsTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method throw exception when the allowed number of templates is exceeded." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_QuotaExceededError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method saveNotificationAsTemplate which in NotificationManager interface exists." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_saveNotificationAsTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager::saveNotificationAsTemplate() method throw exception when a fake system object was passed" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - NotificationManager.saveNotificationAsTemplate" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_misarg">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for notification argument of NotificationManager.saveNotificationAsTemplate method" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="LED_mobile" type="js">
       <capabilities>
           <test_script_entry>/opt/tct-notification-tizen-tests/notification/StatusNotification_vibration_attribute.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="Check if NotificationManager createNotificationFromTemplate method works properly" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_createNotificationFromTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check NotificationManager.createNotificationFromTemplate method throw exception when cannot find a template with given name" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_createNotificationFromTemplate_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_NotFoundError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method createNotificationFromTemplate which in NotificationManager interface exists." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_createNotificationFromTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_createNotificationFromTemplate_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method works properly" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P1" id="NotificationManager_saveNotificationAsTemplate">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager saveNotificationAsTemplate method throw exception when the allowed number of templates is exceeded." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_QuotaExceededError">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_QuotaExceededError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method saveNotificationAsTemplate which in NotificationManager interface exists." component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P0" id="NotificationManager_saveNotificationAsTemplate_exist">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if NotificationManager::saveNotificationAsTemplate() method throw exception when a fake system object was passed" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check with missing non-optional argument - NotificationManager.saveNotificationAsTemplate" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_misarg">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check type conversions for notification argument of NotificationManager.saveNotificationAsTemplate method" component="TizenAPI/User Interface/Notification" execution_type="auto" priority="P2" id="NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-notification-tizen-tests/notification/NotificationManager_saveNotificationAsTemplate_notification_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
     <set name="LED_wearable" type="js">
       <capabilities>