--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
--- /dev/null
+<!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
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
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
</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>
<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>