[common][tct-alarm-tizen-tests][Add TCs due to spec change] 74/125474/2
authorxy.qian <xy.qian@samsung.com>
Mon, 17 Apr 2017 11:17:22 +0000 (19:17 +0800)
committerxy.qian <xy.qian@samsung.com>
Tue, 18 Apr 2017 01:37:56 +0000 (09:37 +0800)
Change-Id: Iebf34633b2560cca84b6bf074185bcfc31146805
Signed-off-by: xy.qian <xy.qian@samsung.com>
14 files changed:
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_exist.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_invalid_obj.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_misarg.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_notification_TypeMismatch.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_exist.html [new file with mode: 0644]
common/tct-alarm-tizen-tests/inst.wgt.py
common/tct-alarm-tizen-tests/tests.full.xml
common/tct-alarm-tizen-tests/tests.xml
common/tct-alarm-tizen-tests/webapi-tizen-notification-test_image1.jpg [new file with mode: 0644]
common/tct-alarm-tizen-tests/webapi-tizen-notification-test_noise1.mp3 [new file with mode: 0644]

diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html
new file mode 100644 (file)
index 0000000..043f4e2
--- /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>AlarmManager_addAlarmNotification</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_addAlarmNotification
+//==== LABEL Check if AlarmManager addAlarmNotification method works properly
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR MAST
+
+test(function () {
+    add_result_callback(function () {
+        try {
+            tizen.alarm.removeAll();
+        } catch (err) {
+            // do nothing in case removeAll throw an exception
+        }
+    });
+
+    var date, alarm, alarm1,notificationDict, notification, retVal;
+    date = new Date();
+    date.setHours(date.getHours() + 1);
+    alarm = new tizen.AlarmAbsolute(date);
+    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.alarm.addAlarmNotification(alarm, notification);
+    alarm1 = tizen.alarm.getAlarmNotification(alarm.id);
+    assert_type(retVal, "undefined", "method returned value");
+    assert_equals(retVal.id, alarm1.id, "the object is not the same which was added");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html
new file mode 100644 (file)
index 0000000..2628226
--- /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.
+
+Authors:
+        Xiaoyan Qian <xy.qian@samsung.com>
+
+-->
+
+<html>
+<head>
+<title>AlarmManager_addAlarmNotification_alarm_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_addAlarmNotification_alarm_TypeMismatch
+//==== LABEL Check argument 'alarm' type conversion
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var notificationDict, notification, i, conversionTable = getTypeConversionExceptions("object");
+    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 = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.alarm.addAlarmNotification(conversionTable[i][0], notification);
+        }, "exception should was thrown");
+    }
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_exist.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_exist.html
new file mode 100644 (file)
index 0000000..e37aa06
--- /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>AlarmManager_addAlarmNotification_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_addAlarmNotification_exist
+//==== LABEL Check if method addAlarmNotification exists
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.alarm, "addAlarmNotification");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_invalid_obj.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_invalid_obj.html
new file mode 100644 (file)
index 0000000..f4b1894
--- /dev/null
@@ -0,0 +1,54 @@
+<!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>AlarmManager_addAlarmNotification_invalid_obj</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST: AlarmManager_addAlarmNotification_invalid_obj
+//==== LABEL Check if AlarmManager::addAlarmNotification() method throw exception when a fake system object was passed
+//==== SPEC Tizen Web API:User Interface:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MTO
+
+test(function () {
+    var alarm, notification;
+    alarm = new tizen.AlarmAbsolute(new Date(2017, 10, 4, 8, 0));
+    notification = {
+        statusType: "SIMPLE",
+        title: "Title"
+    };
+
+    assert_throws(TYPE_MISMATCH_EXCEPTION,
+        function () {
+            tizen.AlarmManager.addAlarmNotification(alarm, 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-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_misarg.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_misarg.html
new file mode 100644 (file)
index 0000000..80bb239
--- /dev/null
@@ -0,0 +1,45 @@
+<!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>AlarmManager_addAlarmNotification_misarg</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+//==== TEST AlarmManager_addAlarmNotification_misarg
+//==== LABEL Check if addAlarmNotification method is invoked with missing arguments
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MMA
+
+test(function () {
+    assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+        tizen.alarm.addAlarmNotification();
+    }, "Missing non-optional argument should throw an exception");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_notification_TypeMismatch.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_notification_TypeMismatch.html
new file mode 100644 (file)
index 0000000..a69651a
--- /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>AlarmManager_addAlarmNotification_notification_TypeMismatch</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_addAlarmNotification_notification_TypeMismatch
+//==== LABEL Check argument 'notification' type conversion
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:addAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var alarm, i, conversionTable = getTypeConversionExceptions("object");
+
+    alarm = new tizen.AlarmAbsolute(new Date(2017, 10, 4, 8, 0));
+    for (i = 0; i < conversionTable.length; i++) {
+        assert_throws({name: conversionTable[i][1]}, function () {
+            tizen.alarm.addAlarmNotification(alarm, conversionTable[i][0]);
+        }, "exception should was thrown");
+    }
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html
new file mode 100644 (file)
index 0000000..5fabc40
--- /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>AlarmManager_getAlarmNotification</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_getAlarmNotification
+//==== LABEL Check if AlarmManager getAlarmNotification method works properly
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:getAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P1
+//==== TEST_CRITERIA MR
+
+test(function () {
+    add_result_callback(function () {
+        try {
+            tizen.alarm.removeAll();
+        } catch (err) {
+            // do nothing in case removeAll throw an exception
+        }
+    });
+
+    var date, alarm, notificationDict, notification, retVal;
+    date = new Date();
+    date.setHours(date.getHours() + 1);
+    alarm = new tizen.AlarmAbsolute(date);
+    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.alarm.addAlarmNotification(alarm, notification);
+    retVal = tizen.alarm.getAlarmNotification(alarm.id);
+    assert_true(retVal instanceof tizen.AlarmAbsolute, "object was not get properly");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html
new file mode 100644 (file)
index 0000000..6f6077f
--- /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>AlarmManager_getAlarmNotification_NotFoundError</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_getAlarmNotification_NotFoundError
+//==== LABEL Check if AlarmManager getAlarmNotification method throw exception if alarm identifier cannot be found in the storage
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:getAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P2
+//==== TEST_CRITERIA MC
+
+test(function () {
+    var date, alarm, notificationDict, notification;
+    date = new Date();
+    date.setHours(date.getHours() + 1);
+    alarm = new tizen.AlarmAbsolute(date);
+    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.alarm.addAlarmNotification(alarm, notification);
+    tizen.alarm.remove(alarm.id);
+    assert_throws(NOT_FOUND_EXCEPTION, function () {
+        tizen.alarm.getAlarmNotification(alarm.id);
+    }, "Should throw NotFoundError exception");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_exist.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_exist.html
new file mode 100644 (file)
index 0000000..df52a36
--- /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>AlarmManager_getAlarmNotification_exist</title>
+<meta charset="utf-8">
+<script src="support/unitcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script>
+
+//==== TEST: AlarmManager_getAlarmNotification_exist
+//==== LABEL Check if method getAlarmNotification exists
+//==== SPEC Tizen Web API:Application:Alarm:AlarmManager:getAlarmNotification M
+//==== SPEC_URL TBD
+//==== PRIORITY P0
+//==== TEST_CRITERIA ME
+
+test(function () {
+    check_method_exists(tizen.alarm, "getAlarmNotification");
+}, document.title);
+
+</script>
+</body>
+</html>
\ No newline at end of file
index a2340e8720e195763acf5ac3133baea980b74a44..7f7d2c9d3fea0a314729b4046bc22de215f853d8 100755 (executable)
@@ -132,6 +132,14 @@ def uninstPKGs():
     if return_code != 0:
         action_status = False
 
+    (return_code, output) = doRemoteCMD("rm -rf %s/Images" % SRC_DIR)
+    if return_code != 0:
+        action_status = False
+
+    (return_code, output) = doRemoteCMD("rm -rf %s/Sounds" % SRC_DIR)
+    if return_code != 0:
+        action_status = False
+
     return action_status
 
 
@@ -154,6 +162,20 @@ def instPKGs():
                         action_status = False
                         break
 
+    (return_code, output) = doRemoteCMD("mkdir -p %s/Images" % SRC_DIR)
+    if return_code != 0:
+        action_status = False
+
+    if not doRemoteCopy("%s/*.jpg" % SCRIPT_DIR, "%s/Images" % SRC_DIR):
+        action_status = False
+
+    (return_code, output) = doRemoteCMD("mkdir -p %s/Sounds" % SRC_DIR)
+    if return_code != 0:
+        action_status = False
+
+    if not doRemoteCopy("%s/*.mp3" % SCRIPT_DIR, "%s/Sounds" % SRC_DIR):
+        action_status = False
+
     return action_status
 
 
index cfacff0f75d9ffe1c7a56231b139fa7bde6ece56..cdd9def3973ab2c88a916202de140e933afe42dd 100755 (executable)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="Check if AlarmManager addAlarmNotification method works properly" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P1" id="AlarmManager_addAlarmNotification">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'alarm' type conversion" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_alarm_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method addAlarmNotification exists" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P0" id="AlarmManager_addAlarmNotification_exist">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AlarmManager::addAlarmNotification() method throw exception when a fake system object was passed" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_invalid_obj.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if addAlarmNotification method is invoked with missing arguments" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_misarg">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_misarg.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check argument 'notification' type conversion" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_notification_TypeMismatch.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="addAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AlarmManager getAlarmNotification method works properly" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P1" id="AlarmManager_getAlarmNotification">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="getAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if AlarmManager getAlarmNotification method throw exception if alarm identifier cannot be found in the storage" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_getAlarmNotification_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="getAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method getAlarmNotification exists" type="compliance" status="approved" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P0" id="AlarmManager_getAlarmNotification_exist">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_exist.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="AlarmManager" element_type="method" element_name="getAlarmNotification" specification="Alarm" section="Application" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/alarm.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
     </set>
   </suite>
 </test_definition>
index 0f2b1a58b83e908d7276ab2e83df9b2b94be77b2..46cdf63553eee8d68029b03695a82c775e14dbf8 100755 (executable)
           <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_remove_misarg.html</test_script_entry>
         </description>
       </testcase>
+     <testcase purpose="Check if AlarmManager addAlarmNotification method works properly" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P1" id="AlarmManager_addAlarmNotification">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'alarm' type conversion" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_alarm_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method addAlarmNotification exists" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P0" id="AlarmManager_addAlarmNotification_exist">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_exist.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AlarmManager::addAlarmNotification() method throw exception when a fake system object was passed" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_invalid_obj">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_invalid_obj.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if addAlarmNotification method is invoked with missing arguments" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_misarg">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_misarg.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check argument 'notification' type conversion" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_addAlarmNotification_notification_TypeMismatch">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_notification_TypeMismatch.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AlarmManager getAlarmNotification method works properly" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P1" id="AlarmManager_getAlarmNotification">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if AlarmManager getAlarmNotification method throw exception if alarm identifier cannot be found in the storage" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P2" id="AlarmManager_getAlarmNotification_NotFoundError">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="Check if method getAlarmNotification exists" component="TizenAPI/Application/Alarm" execution_type="auto" priority="P0" id="AlarmManager_getAlarmNotification_exist">
+        <description>
+          <test_script_entry>/opt/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_exist.html</test_script_entry>
+        </description>
+      </testcase>
     </set>
   </suite>
 </test_definition>
diff --git a/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_image1.jpg b/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_image1.jpg
new file mode 100644 (file)
index 0000000..68a4019
Binary files /dev/null and b/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_image1.jpg differ
diff --git a/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_noise1.mp3 b/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_noise1.mp3
new file mode 100644 (file)
index 0000000..81a860f
Binary files /dev/null and b/common/tct-alarm-tizen-tests/webapi-tizen-notification-test_noise1.mp3 differ