[Messaging-sms] various fixes
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Mon, 7 Oct 2013 16:24:11 +0000 (18:24 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Tue, 8 Oct 2013 10:07:28 +0000 (10:07 +0000)
Change-Id: I8b81758e9bd7ce254cd182f29fcd92244801eab5

185 files changed:
tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html
tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html
tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html
tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_extend.html
tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_loaded_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_messageId_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html
tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html
tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html
tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_extend.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageService_sms_type_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addFoldersChangeListener_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeChangeListener_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeConversations_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html
tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_conversationId_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_extend.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_folderId_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_from_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_id_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_inResponseTo_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_isRead_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_messageStatus_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_to_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_with_filter.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesadded_without_filter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_with_filter.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesremoved_without_filter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_with_filter.html
tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html
tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html
tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js [new file with mode: 0644]
tct-messaging-sms-tizen-tests/resources/unitcommon.js [deleted file]
tct-messaging-sms-tizen-tests/tests.full.xml [changed mode: 0755->0644]
tct-messaging-sms-tizen-tests/tests.xml [changed mode: 0755->0644]

index 5179c9035f34a488e21a1c5647656858b092814c..b05b50f7c045215ddd69754f32e7b2c0e05807d6 100644 (file)
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Mariusz Polasinski <m.polasinski@samsung.com>
 
 -->
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>ConversationArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,14 +44,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: ConversationArraySuccessCallback_onsuccess_checking
-//==== LABEL check the function of findConversations with sms filter
+//==== LABEL Check ConversationArraySuccessCallback callback for sms
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBOA
 setup({timeout: 90000});
 
-var t = async_test("ConversationArraySuccessCallback_onsuccess_checking", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, addSuccess, filter, findAllConversationsError, findAllConversationsSuccess, service;
 
 t.step(function () {
@@ -70,7 +70,7 @@ t.step(function () {
     });
 
     serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
+        assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         addSMSDraft(t, service, smsMessageInitDict, addSuccess);
     });
index ccefc0d518fa07016c391ff77214700b941d0892..b3e0f78d93c1565b01e786066b1febad7261b174 100644 (file)
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Mariusz Polasinski <m.polasinski@samsung.com>
 
 -->
@@ -36,44 +36,46 @@ Authors:
 <html>
 <head>
 <title>FolderArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script type="text/javascript">
-
 //==== TEST: FolderArraySuccessCallback_onsuccess_checking
-//==== LABEL check the function of onsuccess in MessageFolderArraySuccessCallback
+//==== LABEL Check if FolderArraySuccessCallback.onsuccess callback works properly
 //==== SPEC Tizen Web API:Communication:Messaging:MessageFolderArraySuccessCallback:onsuccess M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== PRIORITY P1
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBOA
-
 setup({timeout: 90000});
 
-var t = async_test("FolderArraySuccessCallback_onsuccess_checking", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, foldersSuccess, service,
+    filter, foldersError;
 
 t.step(function () {
-    var serviceSuccess, serviceError, foldersSuccess, msgService, filter;
-
     foldersSuccess = t.step_func(function (folders) {
         assert_type(folders, "array", "Incorrect type.");
+
         t.done();
     });
 
-    serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+    foldersError = t.step_func(function (error) {
+        assert_unreached("findFolders() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "No message service received.");
-        msgService = services[0];
-        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", msgService.id);
+        assert_greater_than(services.length, 0, "Received empty services array");
+        service = services[0];
+        filter = new tizen.AttributeFilter("serviceId", "EXACTLY", service.id);
+
+        service.messageStorage.findFolders(filter, foldersSuccess, foldersError);
+    });
 
-        msgService.messageStorage.findFolders(filter, foldersSuccess);
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
index 868789671ccb20b1431fd735c68b48255998d2eb..5f0fca56f51695066affc8d603e8d65402de24e7 100644 (file)
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Jakub Siewierski <j.siewierski@samsung.com>
 
 -->
@@ -36,14 +36,14 @@ Authors:
 <html>
 <head>
 <title>MessageArraySuccessCallback_onsuccess_checking</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageArraySuccessCallback_onsuccess_checking
-//==== LABEL check the function of onsuccess in MessageArraySuccessCallback by checking
+//==== LABEL Check if MessageArraySuccessCallback.onsuccess callback works properly
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageArraySuccessCallback:onsuccess M
@@ -51,7 +51,7 @@ Authors:
 //==== TEST_CRITERIA CBOA CBT
 setup({timeout: 90000});
 
-var t = async_test("MessageArraySuccessCallback_onsuccess_checking", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, filter, findMessageSuccess, findMessageError, addSuccess, serviceSuccess, serviceError;
 
 t.step(function () {
index 9a42cce972fbe10b54c7457dcf2058d18bff2e16..c043d8acf02f71be55f59ce0751176d99e6e2ab2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageBody_sms_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -44,7 +44,7 @@ test(function () {
 
     check_extensibility(messageBody);
 
-}, "MessageBody_sms_extend");
+}, document.title);
 
 </script>
 </body>
index f85896c583f6f4355c8c1730e03d38c28de1d35a..c5c462aa4f943952ca6030b67a375b4b0e16bea6 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageBody_sms_loaded_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -49,7 +49,7 @@ test(function () {
     messageBody.loaded = null;
     assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");
 
-}, "MessageBody_sms_loaded_attribute");
+}, document.title);
 
 </script>
 </body>
index 3f220dd69b4104d91a4b598d2ef4dd740bd76cf4..874a57fd65ceb2682f6a6426adad93d4fff45cfe 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageBody_sms_messageId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 90000});
 
-var t = async_test("MessageBody_sms_messageId_attribute", {timeout: 90000}), message, messageBody,
+var t = async_test(document.title, {timeout: 90000}), message, messageBody,
     serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
 t.step(function () {
 
index a0081ac462098bb1570be7f103cb65d1b1194c28..6a04377222478f0498f22758a4c7fa12dc5a9e4f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageBody_sms_plainBody_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -47,7 +47,7 @@ test(function () {
     messageBody.plainBody = null;
     assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after assigning null");
 
-}, "MessageBody_sms_plainBody_attribute");
+}, document.title);
 
 </script>
 </body>
index e8d4ee66b32cd0e2785af5fa5f7c0aeeab750065..e54ef4b9e4f21e1ab5ee754ee033a11e077be2e4 100644 (file)
@@ -28,27 +28,27 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversationArraySuccessCallback_onsuccess_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageConversationArraySuccessCallback_onsuccess_exist
-//==== LABEL check if method onsuccess in MessageConversationArraySuccessCallback
+//==== LABEL Check if MessageConversationArraySuccessCallback.onsuccess callback works properly
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationArraySuccessCallback:onsuccess M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
 setup({timeout: 90000});
-var t = async_test("MessageConversationArraySuccessCallback_onsuccess_exist", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, message, datetime, service, messageStorage, filter,
     sendSuccess, sendError, findConversationsSuccess, findConversationsError;
 
@@ -58,18 +58,18 @@ t.step(function () {
     });
 
     findConversationsSuccess = t.step_func(function (conversations) {
-        assert_true(conversations.length > 0, "conversation(s) found successfully!");
-
-        assert_own_property(conversations[0], "id", "conversations[0]");
-        assert_own_property(conversations[0], "type", "conversations[0]s");
-        assert_own_property(conversations[0], "timestamp", "conversations[0]");
-        assert_own_property(conversations[0], "messageCount", "conversations[0]");
-        assert_own_property(conversations[0], "unreadMessages", "conversations[0]");
-        assert_own_property(conversations[0], "preview", "conversations[0]");
-        assert_own_property(conversations[0], "isRead", "conversations[0]");
-        assert_own_property(conversations[0], "from", "conversations[0]");
-        assert_own_property(conversations[0], "to", "conversations[0]");
-        assert_own_property(conversations[0], "lastMessageId", "conversations[0]");
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");
+
+        assert_own_property(conversations[0], "id", "No id attribute in conversation");
+        assert_own_property(conversations[0], "type", "No type attribute in conversation");
+        assert_own_property(conversations[0], "timestamp", "No timestamp attribute in conversation");
+        assert_own_property(conversations[0], "messageCount", "No messageCount attribute in conversation");
+        assert_own_property(conversations[0], "unreadMessages", "No unreadMessages attribute in conversation");
+        assert_own_property(conversations[0], "preview", "No preview attribute in conversation");
+        assert_own_property(conversations[0], "isRead", "No isRead attribute in conversation");
+        assert_own_property(conversations[0], "from", "No from attribute in conversation");
+        assert_own_property(conversations[0], "to", "No to attribute in conversation");
+        assert_own_property(conversations[0], "lastMessageId", "No lastMessageId attribute in conversation");
 
         t.done();
     });
index 50c9f9ce0c7bfa071dbd347f4f1080aea9499a82..4000d20c787501a294d20cafba2beca1947932e6 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversation_sendFindRemove</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
@@ -43,14 +43,14 @@ Authors:
 <script type="text/javascript">
 //==== TEST: MessageConversation_sendFindRemove
 //==== PRIORITY P2
-//==== LABEL Send a message(sms) and find the relation conversation and then remove it
+//==== LABEL Check scenario: send a message(sms), find conversation and then remove it
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("MessageConversation_sendFindRemove", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, msg, messageStorage, filterConversation, filterMessage,
     removeConversationsSuccess, removeConversationsError, findMessageError,
     findConversationsSuccess, findConversationsError, findMessageSuccess,
@@ -107,7 +107,7 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         messageStorage = service.messageStorage;
-        msg = new tizen.Message("messaging.sms", { plainBody : "test1.", to : [ TEST_SMS_RECIPIENT ]});
+        msg = new tizen.Message("messaging.sms", { plainBody: "test1.", to: [ TEST_SMS_RECIPIENT ]});
         service.sendMessage(msg, sendSuccess, sendError);
     });
 
old mode 100755 (executable)
new mode 100644 (file)
index e4a2de8..c069f54
@@ -28,46 +28,46 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversationsChangeCallback_conversationsadded_withfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageConversationsChangeCallback_conversationsadded_withfilter
-//==== LABEL check the function of conversationsadded in MessageConversationsChangeCallback by withfilter
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
 setup({timeout: 90000});
-var t = async_test("MessageConversationsChangeCallback_conversationsadded_withfilter", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}), i,
     serviceSuccess, serviceError, service, message, filter,
-    removeAllSuccess, sendError, conversationChangeCB;
+    removeAllSuccess, sendError, listener, listenerId;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    conversationChangeCB = {
-        conversationsadded : t.step_func(function (conversations) {
+    listener = {
+        conversationsadded: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message.conversationId) {
                     t.done();
                     break;
@@ -82,7 +82,7 @@ t.step(function () {
 
     removeAllSuccess = t.step_func(function () {
         filter = new tizen.AttributeFilter("to", "CONTAINS", smsMessageInitDict.to[0]);
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
         service.sendMessage(message, null, sendError);
old mode 100755 (executable)
new mode 100644 (file)
index daa9b61..f28cce9
@@ -28,44 +28,44 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversationsChangeCallback_conversationsadded_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageConversationsChangeCallback_conversationsadded_withoutfilter
-//==== LABEL check the function of conversationsadded in MessageConversationsChangeCallback by withoutfilter
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsadded M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
 setup({timeout: 90000});
-var t = async_test("MessageConversationsChangeCallback_conversationsadded_withoutfilter", {timeout:90000}),
-    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, conversationChangeCB;
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;
 
 t.step(function () {
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    conversationChangeCB = {
-        conversationsadded : t.step_func(function (conversations) {
+    listener = {
+        conversationsadded: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message.conversationId) {
                     t.done();
                     break;
@@ -79,7 +79,7 @@ t.step(function () {
     });
 
     removeAllSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
         service.sendMessage(message, null, sendError);
old mode 100755 (executable)
new mode 100644 (file)
index 5a545fb..95c2f47
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageConversationsChangeCallback_conversationsremoved_withfilter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,15 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageConversationsChangeCallback_conversationsremoved_withfilter
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, sms
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBOA
-setup({ timeout: 90000 });
-var t = async_test("MessageConversationsChangeCallback_conversationsremoved_withfilter", {timeout: 90000}), changeCallback,
-    serviceSuccess, serviceError, service, message,
-    removeAllSuccess, sendSuccess, sendError, conversationChangeCB,
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}),
+    serviceSuccess, serviceError, service, message, i, watcherId,
+    removeAllSuccess, sendError, conversationChangeCB,
     removeConversationError, removedConversationId;
 
 t.step(function () {
@@ -56,10 +56,10 @@ t.step(function () {
     });
 
     conversationChangeCB = {
-        conversationsadded : t.step_func(function (conversations) {
+        conversationsadded: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message.conversationId) {
                     removedConversationId = conversations[i].id;
                     service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);
@@ -67,7 +67,7 @@ t.step(function () {
                 }
             }
         }),
-        conversationsremoved : t.step_func(function (conversations) {
+        conversationsremoved: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
             t.done();
@@ -97,6 +97,7 @@ t.step(function () {
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
+
 </script>
 </body>
 </html>
old mode 100755 (executable)
new mode 100644 (file)
index ff5537e..17bc52c
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageConversationsChangeCallback_conversationsremoved_withoutfilter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,15 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageConversationsChangeCallback_conversationsremoved_withoutfilter
-//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback, conversationsremoved, sms
+//==== LABEL Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsremoved M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBOA
-setup({ timeout: 90000 });
-var t = async_test("MessageConversationsChangeCallback_conversationsremoved_withoutfilter", {timeout: 90000}), changeCallback,
-    serviceSuccess, serviceError, service, message,
-    removeAllSuccess, sendSuccess, sendError, conversationChangeCB,
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}),
+    serviceSuccess, serviceError, service, message, i, watcherId,
+    removeAllSuccess, sendError, conversationChangeCB,
     removeConversationError, removedConversationId;
 
 t.step(function () {
@@ -56,10 +56,10 @@ t.step(function () {
     });
 
     conversationChangeCB = {
-        conversationsadded : t.step_func(function (conversations) {
+        conversationsadded: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message.conversationId) {
                     removedConversationId = conversations[i].id;
                     service.messageStorage.removeConversations([conversations[i]], null, removeConversationError);
@@ -67,7 +67,7 @@ t.step(function () {
                 }
             }
         }),
-        conversationsremoved : t.step_func(function (conversations) {
+        conversationsremoved: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
             t.done();
@@ -97,6 +97,7 @@ t.step(function () {
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
+
 </script>
 </body>
 </html>
old mode 100755 (executable)
new mode 100644 (file)
index d94ff56..2553e49
@@ -28,48 +28,47 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversationsChangeCallback_conversationsupdated_withfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageConversationsChangeCallback_conversationsupdated_withfilter
-//==== LABEL check the function of conversationsupdated in MessageConversationsChangeCallback by withfilter
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
 
-//  Check the conversationupdated method when some message updated with argument filter
-setup({timeout:90000});
-var t = async_test("MessageConversationsChangeCallback_conversationsupdated_withfilter", {timeout: 90000}),
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,
     serviceSuccess, serviceError, service, message1, message2, removeAllSuccess,
-    filter, sendSuccess, sendError, conversationChangeCB;
+    filter, sendSuccess, sendError, listener;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    conversationChangeCB = {
-        conversationsupdated : t.step_func(function (conversations) {
+    listener = {
+        conversationsupdated: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message2.conversationId) {
                     t.done();
                     break;
@@ -84,7 +83,7 @@ t.step(function () {
 
     sendSuccess = t.step_func(function () {
         filter = new tizen.AttributeFilter("to", "CONTAINS", smsMessageInitDict.to[0]);
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB, filter);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener, filter);
 
         message2 = new tizen.Message("messaging.sms", {
             to: [TEST_SMS_RECIPIENT],
@@ -115,6 +114,7 @@ t.step(function () {
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
+
 </script>
 </body>
 </html>
old mode 100755 (executable)
new mode 100644 (file)
index f0b829e..f63a049
@@ -28,48 +28,47 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageConversationsChangeCallback_conversationsupdated_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageConversationsChangeCallback_conversationsupdated_withoutfilter
-//==== LABEL check the function of conversationsupdated in MessageConversationsChangeCallback by withoutfilter
+//==== LABEL Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageConversationsChangeCallback:conversationsupdated M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
 
-//  Check the conversationupdated method when no message updated
-setup({timeout:90000});
-var t = async_test("MessageConversationsChangeCallback_conversationsupdated_withoutfilter", {timeout: 90000}),
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,
     serviceSuccess, serviceError, service, message1, message2,
-    removeAllSuccess, sendSuccess, sendError, conversationChangeCB;
+    removeAllSuccess, sendSuccess, sendError, listener;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    conversationChangeCB = {
-        conversationsupdated : t.step_func(function (conversations) {
+    listener = {
+        conversationsupdated: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message2.conversationId) {
                     t.done();
                     break;
@@ -83,7 +82,7 @@ t.step(function () {
     });
 
     sendSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);
 
         message2 = new tizen.Message("messaging.sms", {
             to: [TEST_SMS_RECIPIENT],
@@ -116,6 +115,7 @@ t.step(function () {
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
+
 </script>
 </body>
 </html>
index 2fa057961f7191358c99d3bcf9d15dd64e45eea0..e38680631ec40c50f7c11a68f6d50f95b7f6e309 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageInit_MessageInit_valid_argument_sms</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageInit_MessageInit_valid_argument_sms
-//==== LABEL checks various message attributes upon message (sms) creation
+//==== LABEL Checks various message attributes upon message (sms) creation
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -49,7 +49,7 @@ test(function () {
 
     assert_equals(smsMsg.body.plainBody, "Sms Message Test", "SMS message creation failed.");
 
-}, "MessageInit_MessageInit_valid_argument_sms");
+}, document.title);
 
 </script>
 </body>
index 0cfaddf197c3ddc1f8de46c4fe316e9854b72dce..5840409016d68b4c1159eb9c21fd4fe1b7dc6d93 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageServiceArraySuccessCallback_sms_onsuccess</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,9 +37,8 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessageServiceArraySuccessCallback_sms_onsuccess", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i;
 t.step(function () {
-    var serviceSuccess, i;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
index 2c800fe77accf2f7d1990ac819fa0575ec10ae3a..5df17c050a1e8ac74068b30c73616c43ccf53e75 100644 (file)
@@ -28,28 +28,28 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageService_id_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_id_exist
-//==== LABEL check if attribute id in MessageService
+//==== LABEL Check if attribute id in MessageService
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:id A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE
 setup({timeout: 90000});
 
-var t = async_test("MessageService_id_exist", {timeout: 90000}), serviceSuccess, serviceError;
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError;
 
 t.step(function () {
 
index acf4acca7a37e6cb654c958042464139dee4f8aa..c38d6599654ef3510e319339fcd524c68929d14c 100644 (file)
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Jakub Siewierski <j.siewierski@samsung.com>
 
 -->
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_loadBodySMS</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,14 +44,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_loadBodySMS
-//==== LABEL check if loadMessageBody works for sms
+//==== LABEL Check if MessageService.loadMessageBody method works for sms
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageService_loadBodySMS", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, service, messageStorage, message, datetime,
     sendSuccess, sendError, loadBodySuccess, loadBodyError, returnedValue;
 
index 086c740dc8ab837d4563320f5b2b65bba1b78a30..929f7edb8e272877a48f97fb96daa57ab41ac4a0 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageService_name_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_name_exist
-//==== LABEL check if the attribute name in MessageService
+//==== LABEL Check if name attribute exists in MessageService
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:name A
@@ -51,20 +51,20 @@ Authors:
 //==== TEST_CRITERIA AE
 setup({timeout: 90000});
 
-var t = async_test("MessageService_name_exist", {timeout: 90000}), serviceErrorCB, serviceListCB;
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;
 t.step(function () {
-
-    serviceErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         assert_true("name" in services[0], "Messaging.MessageService.name property exists");
+
         t.done();
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceErrorCB);
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index a7717225b41dd201c14a96bda8dc212233b4c02d..6168684c0441251efda7f94fbb4270e6753f3e45 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageService_sendMessage_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_sendMessage_exist
-//==== LABEL check if the attribute sendMessage exist in MessageService
+//==== LABEL Check if sendMessage exist in MessageService
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
@@ -51,18 +51,20 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sendMessage_exist", {timeout: 90000}), serviceErrorCB, serviceListCB;
+var t = async_test(document.title, {timeout: 90000}), serviceError, serviceSuccess;
 t.step(function () {
-    serviceErrorCB = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
-    });
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         assert_true("sendMessage" in services[0], "sendMessage does not exist.");
+
         t.done();
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceErrorCB);
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 9d67e95b2f7c907b76357467a60a0bdfbe990464..4030d62b2f9deac776cd88f0ac65f46f9b3b843c 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageService_sendMessage_invalid_argument</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sendMessage_invalid_argument
-//==== LABEL check whether invoking sendMessage method with improper argument throws exception properly
+//==== LABEL Check whether invoking sendMessage method with improper argument throws exception properly
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
@@ -41,7 +41,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sendMessage_invalid_argument", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, serviceError, serviceSuccess, sendError, sendSuccess;
 t.step(function () {
 
@@ -57,7 +57,7 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0]; // save service
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.sendMessage("messaging.email", sendSuccess, sendError);
         });
 
index b3d9a854d8621802817bc719d594f844507a4042..00ef2563457637c9cd70c312bcc29b409c9b5fc0 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageService_sendMessage_valid_argument</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,14 +33,14 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sendMessage_valid_argument
-//==== LABEL check whether sendMessage method properly sends the specified message
+//==== LABEL Check if MessageService.sendMessage method works properly with valid argument (sms)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA
-setup({timeout : 90000});
-var t = async_test("MessageService_sendMessage_valid_argument", {timeout : 90000}),
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}),
     service, smsMessage, serviceError, serviceSuccess, sendError, sendSuccess;
 t.step(function () {
 
index 7c49e5d81d39783ed2f7cb3d5e5f2a4ea06636a2..fe0498dc9230149881324bb6f79a73baa77bf486 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_extend</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -37,10 +37,9 @@ Authors:
 //==== TEST_CRITERIA OBX
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_extend", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
 
 t.step(function () {
-    var messageService, serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
index 02b8d6d01a4e0646255c71dc1e035965d39b6ec3..d01a0014bf49a286b804708ba273a6a5ac8e8ae2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_loadMessageBody_exist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -38,18 +38,16 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_loadMessageBody_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
 
 t.step(function () {
-    var message_service,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
-        message_service = services[0];
+        messageService = services[0];
 
-        assert_true("loadMessageBody" in message_service, "No loadMessageBody method in message_service");
-        check_method_exists(message_service, "loadMessageBody");
+        assert_true("loadMessageBody" in messageService, "No loadMessageBody method in messageService");
+        check_method_exists(messageService, "loadMessageBody");
 
         t.done();
     });
index f27e03ebe04f3f36f23788518ba3f954f1b19302..f97d035fcc195abfceaf61a972f8bccb707ac8b1 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_loadMessageBody_message_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -32,7 +32,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_loadMessageBody_message_TypeMismatch
-//==== LABEL Check for loadMessageBody message conversions exception (SMS)
+//==== LABEL Check type conversions for message argument of MessageService.loadMessageBody method (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
@@ -40,11 +40,10 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_loadMessageBody_message_TypeMismatch", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, i, param, conversionTable, loadBodySuccess,
+    serviceSuccess, serviceError, exceptionName;
 
 t.step(function () {
-    var message_service, i, param, conversionTable, loadBodySuccess,
-        serviceSuccess, serviceError, exceptionName;
 
     loadBodySuccess = t.step_func(function () {
         assert_unreached("loadMessageBody() success callback invoked.");
@@ -52,16 +51,16 @@ t.step(function () {
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
-        message_service = services[0];
+        messageService = services[0];
 
         conversionTable = getTypeConversionExceptions("object", false);
         for(i = 0; i < conversionTable.length; i++) {
             param = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
             function () {
-                message_service.loadMessageBody(param, loadBodySuccess) ;
+                messageService.loadMessageBody(param, loadBodySuccess) ;
             }, exceptionName + " should be thrown " + param);
         }
 
index 87f57c3341fb33d11e602338a9b440e82c96c621..0fe78bd16afb5a3ea7479f6a8fbbe119b5db325a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_loadMessageBody_message_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -32,7 +32,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_loadMessageBody_message_invalid_obj
-//==== LABEL Check if method loadMessageBody with invalid message attribute throws exception (SMS)
+//==== LABEL Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
@@ -40,15 +40,13 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_loadMessageBody_message_invalid_obj", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, message, serviceSuccess, serviceError;
 
 t.step(function () {
-    var message_service, message,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
-        message_service = services[0];
+        messageService = services[0];
 
         message = {
             id: "1",
@@ -68,10 +66,8 @@ t.step(function () {
             messageStatus: ""
         };
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
-            message_service.loadMessageBody(message);
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+            messageService.loadMessageBody(message);
         });
 
         t.done();
index dc3edfee53147c62002f6afc0337cb478c1b8b27..a7295c44d8738b100ab9092cef6a4fac2836ed7a 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_loadMessageBody_missarg_message</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -32,27 +32,23 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_loadMessageBody_missarg_message
-//==== LABEL Check if method loadMessageBody without message attribute throws exception (SMS)
+//==== LABEL Check with missing non-optional argument - MessageService.loadMessageBody (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:loadMessageBody M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_loadMessageBody_missarg_message", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
 
 t.step(function () {
-    var message_service,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "Received empty services array");
-        message_service = services[0];
+        assert_greater_than(services.length, 0, "Received empty services array");
+        messageService = services[0];
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
-            message_service.loadMessageBody();
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
+            messageService.loadMessageBody();
         });
 
         t.done();
index d2708a08b4c3e1d53ed6a6b11a7f2c0f5224622c..121e264b4f546938817f6a2d198332d81e4f09b7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_messageStorage_attribute</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,9 @@ Authors:
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_messageStorage_attribute", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messagingService, storage, serviceSuccess, serviceError;
 
 t.step(function () {
-    var messagingService, storage, serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
index 824cb6d8ac2533990a2ff7947a996d5eee1a4e07..f435e31766691b8c7ed2c92947d0976f49bb75f3 100644 (file)
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Jakub Siewierski <j.siewierski@samsung.com>
 
 -->
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,14 +44,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_sms_sendMessage
-//==== LABEL Proper invocation with arguments - check if sendMessage (SMS) does what it should.
+//==== LABEL Check if MessageService.sendMessage method works properly (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     message, datetime, messageStorage, sendSuccess, sendError,
     service, serviceSuccess, serviceError;
 
index 6c5f77452020d8abb6676e6c068403c8ca75080c..a6552ee4b83962c3d3deb210e584fc2196ca3f5b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageService_sms_sendMessage_errorCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -31,20 +31,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_errorCallback_TypeMismatch
-//==== LABEL Check argument errorCallback (SMS) conversions exception
+//==== LABEL Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MC
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_errorCallback_TypeMismatch", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
+    sendSuccess, invalidErrorCallback, exceptionName, i, conversionTable;
 
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError, message,
-        sendSuccess, invalidErrorCallback, exceptionName,
-        i, conversionTable;
 
     sendSuccess = t.step_func(function (recipients) {
         assert_unreached("Success callback invoked.");
index 3ca82ceff87cf4dfc24c19870e4e84eaf778aa32..5a173c2f19804a22afa6245e7e6a6fb1e049331e 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_errorCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -30,20 +30,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_errorCallback_invalid_cb
-//==== LABEL Check argument MessageService.sendMessage (SMS) errorCallback validation - use {onsuccess: function (){}}
+//==== LABEL Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTCB
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_errorCallback_invalid_cb", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
+    sendSuccess, invalidErrorCallback, exceptionName = "TypeMismatchError";
 
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError, message,
-        sendSuccess, invalidErrorCallback,
-        exceptionName = "TypeMismatchError";
 
     invalidErrorCallback = {
         onerror: t.step_func(function (error) {
index 8029ed5d166ea24ea5b011026f50e581c310d0a4..86cb41cca133db4942a0533503e5a4e7f7a47394 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_exist</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -38,18 +38,16 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
 
 t.step(function () {
-    var message_service,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
-        message_service = services[0];
+        messageService = services[0];
 
-        assert_true("sendMessage" in message_service, "No sendMessage method in message_service");
-        check_method_exists(message_service, "sendMessage");
+        assert_true("sendMessage" in messageService, "No sendMessage method in messageService");
+        check_method_exists(messageService, "sendMessage");
 
         t.done();
     });
index 5e89b99f57e2199524ddeebfb72488685bc9a5df..ae5e135e6dc9f8f533203a0c00aa36bc7e0165b5 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageService_sms_sendMessage_message_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,20 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_message_TypeMismatch
-//==== LABEL Check message (SMS) argument conversions exception
+//==== LABEL Check type conversions for message argument of MessageService.sendMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MC
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_message_TypeMismatch", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
+    sendError, incorrectMessage, exceptionName, i, conversionTable;
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError,
-        sendSuccess, sendError,
-        incorrectMessage, exceptionName,
-        i, conversionTable;
 
     sendSuccess = t.step_func(function (recipients) {
         assert_unreached("Success callback invoked");
index 226eff84e4254c4e6bdd133198ed6fed1b6d4db9..cde49c2b4b44cb162b85d46c4b62b1c368ccf21c 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_message_invalid_obj</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -30,20 +30,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_message_invalid_obj
-//==== LABEL Check MessageService.sendMessage (SMS) argument message validation - use simple object
+//==== LABEL Check if MessageService.sendMessage method throws exception when message is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTO
-setup({ timeout: 90000 });
-var t = async_test("MessageService_sms_sendMessage_message_invalid_obj", { timeout: 90000 });
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, sendSuccess,
+    sendError, fakeMessage, exceptionName = "TypeMismatchError";
 
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError,
-        sendSuccess, sendError,
-        fakeMessage,
-        exceptionName = "TypeMismatchError";
 
     sendSuccess = t.step_func(function (recipients) {
         assert_unreached("Success callback invoked");
index 1b45bfdb68ca51872ba89d7c3ee927f208bc09fa..31bca000e30a8aa2fedb4ce027f28a78cbb47a6d 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageService_sms_sendMessage_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_missarg
-//==== LABEL Check MessageService.sendMessage (SMS) with missing non-optional argument
+//==== LABEL Check with missing non-optional argument - MessageService.sendMessage (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMA
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_missarg", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, exceptionName = "TypeMismatchError";
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError,
-        exceptionName = "TypeMismatchError";
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
index 3b17661c5684d8ed79ce00fe257fd4136d19076a..0e035b06d3f8e807054249a672f073c26862e604 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_successCallback_TypeMismatch</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -30,20 +30,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_successCallback_TypeMismatch
-//==== LABEL Check argument successCallback (SMS) conversions exception
+//==== LABEL Check type conversions for successCallback argument of MessageService.sendMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MC
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_successCallback_TypeMismatch", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
+    sendError, invalidSuccessCallback, exceptionName, i, conversionTable;
 
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError, message,
-        sendError, invalidSuccessCallback, exceptionName,
-        i, conversionTable;
 
     sendError = t.step_func(function (error) {
         assert_unreached("Error callback invoked, name:" + error.name + ", msg:" + error.message);
index eb115cea3facb46dd09160b1ce5011cabea0ce68..35e0a3df2cbb07a5a229da6cd969ec7223995dba 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_successCallback_invalid_cb</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -30,20 +30,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_successCallback_invalid_cb
-//==== LABEL Check argument MessageService.sendMessage (SMS) successCallback validation - use {onsuccess: function (){}}
+//==== LABEL Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTCB
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_successCallback_invalid_cb", { timeout: 90000 });
+var t = async_test(document.title, {timeout: 90000}), messagingService, serviceSuccess, serviceError, message,
+    sendError, invalidSuccessCallback, exceptionName = "TypeMismatchError";
 
 t.step(function () {
-    var messagingService, serviceSuccess, serviceError, message,
-        sendError, invalidSuccessCallback,
-        exceptionName = "TypeMismatchError";
 
     invalidSuccessCallback = {
         onsuccess: t.step_func(function (recipients) {
index 9ea48e1775391ffe81c9c91c96ffad3165840502..de1d19cbeaebef5fdc13b04e0d936990b8e91039 100644 (file)
@@ -22,7 +22,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_sendMessage_without_errorCallback</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -30,14 +30,14 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageService_sms_sendMessage_without_errorCallback
-//==== LABEL Check without optional argument sendMessage(valid_message, valid_successCallback) (sms)
+//==== LABEL Check if MessageService.sendMessage method works properly without errorCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:sendMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA
-setup({ timeout: 90000 });
+setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_sendMessage_without_errorCallback", { timeout: 90000 }),
+var t = async_test(document.title, {timeout: 90000}),
     message, datetime,
     sendSuccess, returnedValue = null,
     service, serviceListSuccess, serviceListError;
@@ -61,8 +61,8 @@ t.step(function () {
 
         datetime = tizen.time.getCurrentDateTime().toString();
         message = new tizen.Message("messaging.sms", {
-            plainBody : datetime,
-            to : [ TEST_SMS_RECIPIENT ]
+            plainBody: datetime,
+            to: [ TEST_SMS_RECIPIENT ]
         });
 
         returnedValue = service.sendMessage(message, sendSuccess);
index 296f7b07b915658aedad86bef623fd03893437ef..9189ad77a9f770d70f5e5f1c25a99f7e9d834a93 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <html>
 <head>
 <title>MessageService_sms_type_attribute</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -38,17 +38,17 @@ Authors:
 //==== TEST_CRITERIA AE AT ARO
 setup({timeout: 90000});
 
-var t = async_test("MessageService_sms_type_attribute", {timeout: 90000}), messaging_service, serviceSuccess, serviceError;
+var t = async_test(document.title, {timeout: 90000}), messageService, serviceSuccess, serviceError;
 
 t.step(function () {
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
-        messaging_service = services[0];
+        messageService = services[0];
 
-        assert_true("type" in messaging_service, "No 'type' attribute in messaging_service");
-        assert_type(messaging_service.type, "string", "messaging_service.type is not string");
-        check_readonly(messaging_service, "type", "messaging.sms", "string", "messaging.email");
+        assert_true("type" in messageService, "No 'type' attribute in messageService");
+        assert_type(messageService.type, "string", "messageService.type is not string");
+        check_readonly(messageService, "type", "messaging.sms", "string", "messaging.email");
 
         t.done();
     });
index 849418a21a9e8dfe6a78264e46c9e0cdb0a2c1f4..f7066ee996f57f52ad6461a1680e4e06e0f0fc50 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageService_type_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,14 +43,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageService_type_exist
-//==== LABEL check if attribute type in MessageService
+//==== LABEL Check if attribute type in MessageService
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageService:type A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE
 setup({timeout: 90000});
 
-var t = async_test("MessageService_type_exist", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError;
 t.step(function () {
     serviceSuccess = t.step_func(function (services) {
index 4dcbf6a9d5d34e45ecbf3d7321406b7383205437..27f540aaaaf17dc027b1f50b7066feb221fa5379 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_addCCLAddMRemoveCRemoveCCL</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,99 +43,89 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_addCCLAddMRemoveCRemoveCCL
-//==== LABEL Add conversationg listener and add a message, and then remove the conversation related with the adding message, at last remove the conversation listener
+//==== LABEL Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener
 //==== PRIORITY P3
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:MessageStorage U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_addCCLAddMRemoveCRemoveCCL", { timeout: 90000 }),
-    service, msg, errorAddDraftCallback, errorFindConCallback, errorRemoveConCallback,
-    successRemoveConCallback, conversationsFindConArrayCB,
-    successAddDraftCallback, serviceListCB, serviceErrorCB,
-    messageFindSuccess, messageFindError, conversationChangeCB,
-    filterForId, filterForTo,
-    watchId;
-
-add_result_callback(function () {
-    try {
-        service.messageStorage.removeChangeListener(watchId);
-    } catch (err) {
-        // do nothing in case removeChangeListener throws an exception
-    }
-});
+
+var t = async_test(document.title, {timeout: 90000}), listener,
+    serviceError, serviceSuccess, service, listenerId, msg, addError, addSuccess,
+    filterForId, findConversationError, findConversationSuccess, removeConversationError,
+    removeConversationSuccess, findMessageSuccess, findMessageError, filterForTo;
+
 
 t.step(function () {
-    conversationChangeCB = {
-        conversationsupdated : function (conversations) {
+    add_result_callback(function () {
+        try {
+            service.messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throws an exception
+        }
+    });
+
+    listener = {
+        conversationsupdated: function (conversations) {
         },
-        conversationsadded : function (conversations) {
+        conversationsadded: function (conversations) {
         },
-        conversationsremoved : function (conversations) {
+        conversationsremoved: function (conversations) {
         }
     };
 
-    errorAddDraftCallback = t.step_func(function (e) {
-        assert_unreached("addDraftMessage() error: " + e.message);
+    removeConversationSuccess = t.step_func(function () {
+        t.done();
     });
 
-
-    errorFindConCallback = t.step_func(function (e) {
-        assert_unreached("findConversations() error: " + e.message);
+    removeConversationError = t.step_func(function (error) {
+        assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-
-    errorRemoveConCallback = t.step_func(function (e) {
-        assert_unreached("removeConversations() error: " + e.message);
+    findConversationSuccess = t.step_func(function (conversations) {
+        assert_greater_than(conversations.length, 0, "Received empty conversations array");
+        service.messageStorage.removeConversations(conversations, removeConversationSuccess, removeConversationError);
     });
 
-    successRemoveConCallback = t.step_func(function () {
-        t.done();
+    findConversationError = t.step_func(function (error) {
+        assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    conversationsFindConArrayCB = t.step_func(function (conversations) {
-        assert_true(conversations.length > 0, "No conversations found.");
-        service.messageStorage.removeConversations(conversations, successRemoveConCallback,
-                errorRemoveConCallback);
+    findMessageSuccess = t.step_func(function (messages) {
+        assert_greater_than(messages.length, 0, "Received empty messages array");
+        filterForId = new tizen.AttributeFilter("id", "EXACTLY", messages[0].conversationId);
+        service.messageStorage.findConversations(filterForId, findConversationSuccess, findConversationError);
     });
 
-    messageFindSuccess = t.step_func(function (messages) {
-        assert_true(messages.length > 0, "No message found.");
-        filterForId = new tizen.AttributeFilter("id", "EXACTLY",
-                messages[0].conversationId);
-        service.messageStorage.findConversations(filterForId, conversationsFindConArrayCB,
-                errorFindConCallback);
+    findMessageError = t.step_func(function (error) {
+        assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    messageFindError = t.step_func(function (err) {
-        assert_unreached("findMessages() error: " + err.message);
+    addSuccess = t.step_func(function () {
+        filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
+        service.messageStorage.findMessages(filterForTo, findMessageSuccess, findMessageError);
     });
 
-    successAddDraftCallback = t.step_func(function () {
-        filterForTo = new tizen.AttributeFilter("to", "CONTAINS",
-                TEST_SMS_RECIPIENT);
-        service.messageStorage.findMessages(filterForTo, messageFindSuccess,
-                messageFindError);
+    addError = t.step_func(function (error) {
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceListCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No MessageService found.");
+    serviceSuccess = t.step_func(function (services) {
+        assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
-        watchId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);
         msg = new tizen.Message("messaging.sms",
-                {plainBody : "addCCLAddMRemoveCRemoveCCL-testing",
-                 to : [ TEST_SMS_RECIPIENT ]});
-        service.messageStorage.addDraftMessage(msg, successAddDraftCallback,
-                errorAddDraftCallback);
+                {plainBody: "addCCLAddMRemoveCRemoveCCL-testing",
+                 to: [ TEST_SMS_RECIPIENT ]});
+        service.messageStorage.addDraftMessage(msg, addSuccess, addError);
     });
 
-    serviceErrorCB = t.step_func(function (err) {
-        assert_unreached("getMessageService() error: " + err.message);
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB,
-            serviceErrorCB);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
old mode 100755 (executable)
new mode 100644 (file)
index e602a02..f1f395f
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_addConversationsChangeListener_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_addConversationsChangeListener_withoutfilter
-//==== LABEL: Check addConversationsChangeListener method without filter
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
@@ -51,23 +51,23 @@ Authors:
 //==== TEST_CRITERIA MAST MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_addConversationsChangeListener_withoutfilter", {timeout: 90000}),
-    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, conversationChangeCB;
+var t = async_test(document.title, {timeout: 90000}), i, listenerId,
+    serviceSuccess, serviceError, service, message, removeAllSuccess, sendError, listener;
 
 t.step(function () {
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    conversationChangeCB = {
-        conversationsadded : t.step_func(function (conversations) {
+    listener = {
+        conversationsadded: t.step_func(function (conversations) {
             assert_type(conversations, "array", "conversations");
             assert_greater_than(conversations.length, 0, "Received empty conversations array");
-            for (var i in conversations) {
+            for (i = 0; i < conversations.length; i++) {
                 if (conversations[i].id === message.conversationId) {
                     t.done();
                     break;
@@ -81,7 +81,7 @@ t.step(function () {
     });
 
     removeAllSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addConversationsChangeListener(conversationChangeCB);
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
         service.sendMessage(message, null, sendError);
@@ -99,6 +99,7 @@ t.step(function () {
 
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
+
 </script>
 </body>
 </html>
index e794e57cc387952586398ea7014e4e88ff12affc..74f6f410a9af0f18222d912edf7836ec246da82e 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_addMCLaddM</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_addMCLaddM
-//==== LABEL: Check if addMessagesChangeListener for sms works properly
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly for sms
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
@@ -51,56 +51,55 @@ Authors:
 //==== TEST_CRITERIA MMINA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_addMCLaddM", {timeout: 90000}),
-    service, listenerId, messageChangeCallback, sendSuccess, sendFailure, serviceListCB,
+var t = async_test(document.title, {timeout: 90000}),
+    service, listenerId, listener, sendError, serviceSuccess,
     msg, serviceError, messageStorage;
 
 t.step(function () {
-    messageChangeCallback = {
+    //cleanup after TC
+    add_result_callback(function () {
+        try {
+            messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
         messagesupdated: t.step_func(function (messages) {
-            assert_unreached("There is some message updated but not added!");
+            assert_unreached("messagesupdated callback invoked");
         }),
         messagesadded: t.step_func(function (messages) {
-            assert_true(messages.length > 0, "No message added!");
+            assert_greater_than(messages.length, 0, "Received empty messages array");
+
             t.done();
         }),
         messagesremoved: t.step_func(function (messages) {
-            assert_unreached("There is some message removed but not added!");
+            assert_unreached("messagesremoved callback invoked");
         })
     };
 
-    sendSuccess = t.step_func(function () {});
-
-    sendFailure = t.step_func(function (error) {
+    sendError = t.step_func(function (error) {
         assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         messageStorage = service.messageStorage;
-        listenerId = service.messageStorage.addMessagesChangeListener(messageChangeCallback);
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);
         msg = new tizen.Message("messaging.sms", {
             plainBody: "test.",
             to: [TEST_SMS_RECIPIENT]
         });
-        service.sendMessage(msg, sendSuccess, sendFailure);
+        service.sendMessage(msg, null, sendError);
     });
 
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
-});
-
-//cleanup after TC
-add_result_callback(function () {
-    try {
-        messageStorage.removeChangeListener(listenerId);
-    } catch (err) {
-        // do nothing in case removeChangeListener throw an exception
-    }
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
old mode 100755 (executable)
new mode 100644 (file)
index c7d040f..3d15289
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
@@ -36,7 +36,7 @@ Authors:
 <html>
 <head>
 <title>MessageStorage_addMessagesChangeListener_withfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,7 +44,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_addMessagesChangeListener_withfilter
-//==== LABEL: Check the addMessagesChangeListener method with parmeter filter
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -52,16 +52,25 @@ Authors:
 //==== TEST_CRITERIA MAST MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_addMessagesChangeListener_withfilter", {timeout: 90000}),
-    service, listenerId, messageStorage, message, messageChangeCallback, filter, serviceListCB,
-    serviceError;
+var t = async_test(document.title, {timeout: 90000}), i,
+    service, listenerId, messageStorage, message, listener, filter, serviceSuccess,
+    serviceError, addError;
 
 t.step(function (){
-    messageChangeCallback = {
-        messagesadded : t.step_func(function (messages) {
+    //cleanup after TC
+    add_result_callback(function () {
+        try {
+            messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
+        messagesadded: t.step_func(function (messages) {
             assert_type(messages, "array", "Not an array.");
             assert_greater_than(messages.length, 0, "Received empty messages array");
-            for (var i in messages) {
+            for (i = 0; i < messages.length; i++) {
                 assert_true(messages[i] instanceof tizen.Message, "Not a message.");
                 if (messages[i].id === message.id) {
                     t.done();
@@ -71,30 +80,25 @@ t.step(function (){
         })
     };
 
-    serviceListCB = t.step_func(function serviceListCB(services) {
+    addError = t.step_func(function (error) {
+        assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    serviceSuccess = t.step_func(function serviceListCB(services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         messageStorage = service.messageStorage;
         filter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
-        listenerId = messageStorage.addMessagesChangeListener(messageChangeCallback, filter);
-        message = new tizen.Message("messaging.sms", {plainBody : "test.",to : [ TEST_SMS_RECIPIENT ]});
-        service.messageStorage.addDraftMessage(message);
+        listenerId = messageStorage.addMessagesChangeListener(listener, filter);
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});
+        service.messageStorage.addDraftMessage(message, null, addError);
     });
 
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
-});
-
-//cleanup after TC
-add_result_callback(function () {
-    try {
-        messageStorage.removeChangeListener(listenerId);
-    } catch (err) {
-        // do nothing in case removeChangeListener throw an exception
-    }
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
old mode 100755 (executable)
new mode 100644 (file)
index fdf4ee3..bc18cca
@@ -28,7 +28,7 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
         Andrzej Krolikowski <a.krolikowsk@samsung.com>
 
 -->
@@ -36,14 +36,14 @@ Authors:
 <html>
 <head>
 <title>MessageStorage_addMessagesChangeListener_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_addMessagesChangeListener_withoutfilter
-//==== LABEL: Check the addMessagesChangeListener method without parmeter filter
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter
 //==== PRIORITY: P2
 //==== SPEC: Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -51,9 +51,9 @@ Authors:
 //==== TEST_CRITERIA MR MMINA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_addMessagesChangeListener_withoutfilter", {timeout: 90000}),
-    service, listenerId, serviceListCB, message, messageStorage, messageChangeCallback,
-    serviceError;
+var t = async_test(document.title, {timeout: 90000}), i,
+    service, listenerId, serviceSuccess, message, messageStorage, listener,
+    serviceError, sendError;
 t.step(function () {
     //cleanup after TC
     add_result_callback(function () {
@@ -64,11 +64,11 @@ t.step(function () {
         }
     });
 
-    messageChangeCallback = {
-        messagesadded : t.step_func(function (messages) {
+    listener = {
+        messagesadded: t.step_func(function (messages) {
             assert_type(messages, "array", "Not an array.");
             assert_greater_than(messages.length, 0, "Received empty messages array");
-            for (var i in messages) {
+            for (i = 0; i < messages.length; i++) {
                 assert_true(messages[i] instanceof tizen.Message, "Not a message.");
                 if (messages[i].id === message.id) {
                     t.done();
@@ -78,21 +78,25 @@ t.step(function () {
         })
     };
 
-    serviceListCB = t.step_func(function (services) {
+    sendError = t.step_func(function (error) {
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         messageStorage = service.messageStorage;
-        listenerId = messageStorage.addMessagesChangeListener(messageChangeCallback);
+        listenerId = messageStorage.addMessagesChangeListener(listener);
         assert_type(listenerId, "long" , "Incorrect returned value from addMessagesChangeListener method.");
-        message = new tizen.Message("messaging.sms", {plainBody : "test.",to : [ TEST_SMS_RECIPIENT ]});
-        service.sendMessage(message);
+        message = new tizen.Message("messaging.sms", {plainBody: "test.", to: [ TEST_SMS_RECIPIENT ]});
+        service.sendMessage(message, null, sendError);
     });
 
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 79b8c26d19b857a6810262756e03d582e2b2fb7c..4fd296525e6ead1f217268eeb0d0aba0ee656b5f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check argument conversationsChangeCallback conversions exception - email
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        incorrectChangeListener, exceptionName, i, conversionTable;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
@@ -54,7 +53,7 @@ t.step(function () {
             incorrectChangeListener  = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addConversationsChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
index df615d2c2981b31dd9a79aca095a7d7b29ff17f2..929648ad3af0910f74062aa56e3da4682de21148 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_findMessages</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_findMessages
-//==== LABEL Check the function findMessages in MessageStorage
+//==== LABEL Check if MessageStorage.findMessages method works properly
 //==== PRIORITY P1
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
@@ -51,13 +51,14 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages", {timeout: 90000}),
-    smsService, findMessagesCallback, findError, filter,
-    getMessagingServicesCallback, addSuccess, serviceError;
+var t = async_test(document.title, {timeout: 90000}),
+    smsService, findSuccess, findError, filter,
+    serviceSuccess, addSuccess, serviceError;
 t.step(function () {
 
-    findMessagesCallback = t.step_func(function (messages) {
+    findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
+
         t.done();
     });
 
@@ -67,10 +68,10 @@ t.step(function () {
 
     addSuccess = t.step_func(function () {
         filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        smsService.messageStorage.findMessages(filter, findMessagesCallback, findError);
+        smsService.messageStorage.findMessages(filter, findSuccess, findError);
     });
 
-    getMessagingServicesCallback = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         smsService = services[0];
 
@@ -81,7 +82,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", getMessagingServicesCallback, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 3b3a68f45df755df232c1dc22d0c56beda99cf56..03d53564994bf475ebad3274dd479b6beca31c14 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_errorCallback_TypeMismatch_1</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_errorCallback_TypeMismatch_1
-//==== LABEL check whether invoking 'findMessages' method with invalid error callback throws exception properly
+//==== LABEL Check MessageStorage.findMessages method when errorCallback is a number (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
@@ -42,7 +42,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_errorCallback_TypeMismatch_1", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, findSuccess, filter;
 t.step(function () {
 
@@ -55,7 +55,7 @@ t.step(function () {
 
         filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             services[0].messageStorage.findMessages(filter, findSuccess, 1);
         });
 
index 5c86c5248fbe27b055585724ccc79d32de02efa0..45b4e7c35b48f43bcc3b500b59fd46f44c980ce1 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_errorCallback_null</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_errorCallback_null
-//==== LABEL check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage with null errorCallback
+//==== LABEL Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -42,10 +42,9 @@ Authors:
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_errorCallback_null", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, typeFilter, findSuccess,
+    i, addSuccess, service, foundMessage = 0, addedMessage;
 t.step(function () {
-    var serviceSuccess, serviceError, typeFilter, findSuccess, i,
-        addSuccess, service, foundMessage = 0, addedMessage;
 
     findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
index 1effbc0383f9783320c71558e0fb9adb0ba92e97..fadbfeb514e3a9739d1932ec04e0fc245be7a3a1 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_findMessages_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,14 +43,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_findMessages_exist
-//==== LABEL check if method findMessages in MessageStorage
+//==== LABEL Check if method findMessages in MessageStorage
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_exist", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError;
 t.step(function () {
 
index 3dfb97281ae5cffda517831b77344c36b5afe7b1..4ea53b2ec490fa407411b3dfe7ccdc1093689529 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_filter_sms_valid</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_filter_sms_valid
-//==== LABEL check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type (sms)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -42,10 +42,9 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_filter_sms_valid", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), smsService, findSuccess, findError, typeFilter, serviceSuccess,
+    addSuccess, addedMessage, foundMessage = 0, returnedValue = null, i, serviceError;
 t.step(function () {
-    var smsService, findSuccess, findError, typeFilter, serviceSuccess, addSuccess,
-        addedMessage, foundMessage = 0, returnedValue = null, i, serviceError;
 
     findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
index ecf985d5b1fe6c3a34e5bdcc3dd01ce6d8d58a73..07784fa12e31c3429d4c39ba18a3ec947411c54c 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_limit_valid</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_limit_valid
-//==== LABEL check whether 'findMessages' method properly retrieves messages matching the supplied filter limited to specified number
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -42,11 +42,10 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_limit_valid", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 5, serviceError,
+    serviceSuccess, addSuccess, findError, findSuccess, addSuccessCounter = 0, i;
 
 t.step(function () {
-    var smsService, typeFilter, sortMode, limit = 5, serviceError, serviceSuccess, addSuccess,
-        findError, findSuccess, addSuccessCounter = 0, i;
 
     findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
index e14390b229067b25b0b1b217ef2f95d2099be03c..ed0ce89174e47622e0469fbbc95d61936509a17e 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_missarg</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -32,7 +32,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_findMessages_missarg
-//==== LABEL MessageStorage.findMessages (filter) WRONG argument(s)
+//==== LABEL Check with missing non-optional argument - MessageStorage.findMessages (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
@@ -40,13 +40,13 @@ Authors:
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_missarg", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, filter, serviceError, serviceSuccess, onSuccess;
 t.step(function () {
 
     onSuccess = t.step_func(function () {
         filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.messageStorage.findMessages(filter);
         });
 
index a1ee3709c82cbc1055d887b7650bb9e945efcba4..b9b1679c334ebb24b71c303cb63b95da933b7fae 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_noarg</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_noarg
-//==== LABEL MessageStorage.findMessages () WRONG argument(s)
+//==== LABEL Check without arguments - MessageStorage.findMessages (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
@@ -41,20 +41,18 @@ Authors:
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_findMessages_noarg", {timeout: 90000});
-this_test.step(function () {
-    var onSuccess = this_test.step_func(function (services) {
+var t = async_test(document.title, {timeout: 90000}), onSuccess;
+t.step(function () {
+    onSuccess = t.step_func(function (services) {
         assert_type(services, "array", "type of services is not Array");
         if (services.length > 0) {
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 services[0].messageStorage.findMessages();
             });
         } else {
             assert_unreached("list of services is empty");
         }
-        return this_test.done();
+        t.done();
     });
 
     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
index 38bffd9a6001c97a447a00066ffb5d0f61de557b..581d5ed9a3fa77ca77ce311dde529fbdbc7ada8e 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_offset_valid</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_findMessages_offset_valid
-//==== LABEL check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter and offset param
+//==== LABEL Check if MessageStorage.findMessages method works properly with valid offset
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -42,10 +42,9 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_offset_valid", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), smsService, typeFilter, sortMode, limit = 10, offset = 2,
+    serviceSuccess, serviceError, addSuccess, findSuccess, findError, addSuccessCounter = 0, i;
 t.step(function () {
-    var smsService, typeFilter, sortMode, limit = 10, offset = 2, serviceSuccess, serviceError,
-    addSuccess, findSuccess, findError, addSuccessCounter = 0, i;
 
     findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
index 48f924afa8cba3519c54c8a1f4bcb4164e7ec32c..6200617c8754f3c8f3910a5b24f97056d9b67548 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_findMessages_sort_valid</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_findMessages_sort_valid
-//==== LABEL check whether 'findMessages' method properly retrieves messages matching the supplied filter in specified order
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -41,11 +41,10 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_findMessages_sort_valid", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), service, findSuccess, findError, addSuccess, typeFilter,
+    sortMode, serviceSuccess, serviceError;
 
 t.step(function () {
-    var service, findSuccess, findError, addSuccess, typeFilter, sortMode,
-        serviceSuccess, serviceError;
 
     findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "Received empty messages array");
index 2352518bc87cf326e26eef09faa67b5b7727ae7f..b62347772640e0454846ed52767c36c6ff4dc4bd 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check argument conversationsChangeCallback conversions exception - mms
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        incorrectChangeListener, exceptionName, i, conversionTable;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
@@ -54,7 +53,7 @@ t.step(function () {
             incorrectChangeListener  = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addConversationsChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
index d00d856af37df289bb5cba4b545b39deb72b446f..59186bec78d2a66c38104a3b7f01993abd47f5f8 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeChangeListener_exist</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,14 +43,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeChangeListener_exist
-//==== LABEL check if method removeChangeListener in MessageStorage
+//==== LABEL Check if method removeChangeListener in MessageStorage
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeChangeListener_exist", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError;
 
 t.step(function () {
index 1ae2fbb50d217e9db37bec62b44db9bb7b1baa73..d096f77dd1c6fd85113d9c9c8e821a3c847e98c9 100644 (file)
@@ -28,14 +28,14 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeChangeListener_forconversations</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,33 +43,41 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeChangeListener_forconversations
-//==== LABEL check the function of removeChangeListener in MessageStorage by forconversations
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MMINA
-
-// Check removeChangeListener method with removing conversations listener
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeChangeListener_forconversations", {timeout: 90000}),
-      watchId, conversationChangeCB, serviceListCB, serviceError;
+var t = async_test(document.title, {timeout: 90000}),
+      listenerId, listener, serviceSuccess, serviceError, service;
 
 t.step(function () {
-    conversationChangeCB = {
-        conversationsupdated : t.step_func(function (conversations) {
+    add_result_callback(function (res) {
+        try {
+            service.messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
+        conversationsupdated: t.step_func(function (conversations) {
         }),
-        conversationsadded : t.step_func(function (conversations) {
+        conversationsadded: t.step_func(function (conversations) {
         }),
-        conversationsremoved : t.step_func(function (conversations) {
+        conversationsremoved: t.step_func(function (conversations) {
         })
     };
 
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
-        watchId = services[0].messageStorage.addConversationsChangeListener(conversationChangeCB);
-        services[0].messageStorage.removeChangeListener(watchId);
+        service = services[0];
+        listenerId = service.messageStorage.addConversationsChangeListener(listener);
+        service.messageStorage.removeChangeListener(listenerId);
+
         t.done();
     });
 
@@ -77,7 +85,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 2eb25fda817d361361490bc8a0e9ebf021fca637..6158c2dbaaf93132461f87d3d0213eaa06b3eba6 100644 (file)
@@ -29,21 +29,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeChangeListener_forfolder</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeChangeListener_forfolder
-//==== LABEL check the function of removeChangeListener in MessageStorage by forfolder
+//==== LABEL Check if removeChangeListener method removes listener added by addFoldersChangeListener method
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
@@ -51,23 +51,33 @@ Authors:
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeChangeListener_forfolder", {timeout: 90000}),
-      watchId, folderChangeCB, serviceListCB, serviceError;
+var t = async_test(document.title, {timeout: 90000}),
+    listener, serviceSuccess, serviceError, listenerId, service;
 
 t.step(function () {
-    folderChangeCB = {
-        foldersupdated : t.step_func(function (folders) {
+    add_result_callback(function (res) {
+        try {
+            service.messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
+        foldersupdated: t.step_func(function (folders) {
         }),
-        foldersadded : t.step_func(function (folders) {
+        foldersadded: t.step_func(function (folders) {
         }),
-        foldersremoved : t.step_func(function (folders) {
+        foldersremoved: t.step_func(function (folders) {
         })
     };
 
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
-        watchId = services[0].messageStorage.addFoldersChangeListener(folderChangeCB);
-        services[0].messageStorage.removeChangeListener(watchId);
+        service = services[0];
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);
+        service.messageStorage.removeChangeListener(listenerId);
+
         t.done();
     });
 
@@ -75,7 +85,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 34bba6ffe16aabad1caec675ca1b559971e0b78f..229d626edabec0abe7c24116c3762c735687bd80 100644 (file)
@@ -28,21 +28,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeChangeListener_formessages</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeChangeListener_formessages
-//==== LABEL check the function of removeChangeListener in MessageStorage by formessages
+//==== LABEL Check if removeChangeListener method removes listener added by addMessagesChangeListener method
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
@@ -50,23 +50,33 @@ Authors:
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeChangeListener_formessages", {timeout: 90000}),
-      watchId, messageChangeCB, serviceListCB, serviceError;
+var t = async_test(document.title, {timeout: 90000}),
+    listenerId, listener, serviceSuccess, serviceError, service;
 
 t.step(function () {
-    messageChangeCB = {
-        messagesupdated : t.step_func(function (messages) {
+    add_result_callback(function (res) {
+        try {
+            service.messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
+        messagesupdated: t.step_func(function (messages) {
         }),
-        messagesadded : t.step_func(function (messages) {
+        messagesadded: t.step_func(function (messages) {
         }),
-        messagesremoved : t.step_func(function (messages) {
+        messagesremoved: t.step_func(function (messages) {
         })
     };
 
-    serviceListCB = t.step_func(function (services) {
-        assert_true(services.length > 0, "No message services.");
-        watchId = services[0].messageStorage.addMessagesChangeListener(messageChangeCB);
-        services[0].messageStorage.removeChangeListener(watchId);
+    serviceSuccess = t.step_func(function (services) {
+        assert_greater_than(services.length, 0, "Received empty services array");
+        service = services[0];
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);
+        service.messageStorage.removeChangeListener(listenerId);
+
         t.done();
     });
 
@@ -74,7 +84,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index a8535a6aca52e7269e472c7c30d07f2f168eb153..235160ca82ad42daa409a44bfdc8ea888f4183dd 100644 (file)
@@ -28,32 +28,40 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeChangeListener_valid_argument</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeChangeListener_valid_argument
-//==== LABEL check the function removeChangeListener in MessageStorage
+//==== LABEL Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeChangeListener_valid_argument", {timeout: 90000}),
-    watchId, service, serviceListCB, serviceError, folderChangeCB;
+var t = async_test(document.title, {timeout: 90000}),
+    listenerId, service, serviceSuccess, serviceError, listener;
 
 t.step(function () {
-    folderChangeCB = {
+    add_result_callback(function (res) {
+        try {
+            service.messageStorage.removeChangeListener(listenerId);
+        } catch (err) {
+            // do nothing in case removeChangeListener throw an exception
+        }
+    });
+
+    listener = {
         foldersadded: function (folders) {
         },
         foldersupdated: function (folders) {
@@ -62,11 +70,12 @@ t.step(function () {
         }
     };
 
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
-        watchId = service.messageStorage.addFoldersChangeListener(folderChangeCB);
-        service.messageStorage.removeChangeListener(watchId);
+        listenerId = service.messageStorage.addFoldersChangeListener(listener);
+        service.messageStorage.removeChangeListener(listenerId);
+
         t.done();
     });
 
@@ -74,7 +83,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 608afca45288ff9a550951cf90515d87f115ddb8..4f34d2b8a4779cab7b620f747dd02fbdfb7ceadc 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_removeChangeListener_with_watchId</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeChangeListener_with_watchId
-//==== LABEL MessageStorage.removeChangeListener (watchId)
+//==== LABEL Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeChangeListener M
@@ -41,17 +41,16 @@ Authors:
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_removeChangeListener_with_watchId", {timeout: 90000});
-this_test.step(function () {
-    var service = null, onSuccess, foldersChangeCallback, watchId;
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, foldersChangeCallback, watchId;
+t.step(function () {
 
     foldersChangeCallback = {
-        foldersupdated : this_test.step_func(),
-        foldersadded : this_test.step_func(),
-        foldersremoved : this_test.step_func()
+        foldersupdatedt.step_func(),
+        foldersaddedt.step_func(),
+        foldersremovedt.step_func()
     };
 
-    onSuccess = this_test.step_func(function (services) {
+    onSuccess = t.step_func(function (services) {
         assert_type(services, "array", "type of services is not Array");
         if (services.length > 0) {
             service = services[0];
@@ -60,7 +59,7 @@ this_test.step(function () {
         } else {
             assert_unreached("list of services is empty");
         }
-        return this_test.done();
+        t.done();
     });
 
     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
index 98c40e10faee079c6b9635edf7ea59d3cdc6b352..ff0af0d50743295c41accff7ef3bb11f9fc5ea6f 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_arg_null</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_arg_null
-//==== LABEL check whether invoking 'removeConversations' method with null MessageConversation param throws exception properly
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is null (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -42,7 +42,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeConversations_arg_null", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, removeError, removeSuccess, service;
 t.step(function () {
 
@@ -58,7 +58,7 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.messageStorage.removeConversations(null, removeSuccess, removeError);
         });
 
index f8e9d92b9d55047a9a5e1819170769d99268ebaa..88778e72d6adf285c96f4cd1d30f931976ff0eaa 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_arg_undefined</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_arg_undefined
-//==== LABEL check whether invoking 'removeConversations' method with undefined MessageConversation param throws exception properly
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is undefined (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -42,7 +42,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeConversations_arg_undefined", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, removeError, removeSuccess, service;
 t.step(function () {
 
@@ -58,7 +58,7 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.messageStorage.removeConversations(undefined, removeSuccess, removeError);
         });
 
index 0759fee4c3ca3e277fb93f724e63cb5705975f89..8a469909bcce3d53336df8e00e8e231ef551de87 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_conversations_number</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_conversations_number
-//==== LABEL check whether invoking 'removeConversations' method with invalid MessageConversation param throws exception properly
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is a number (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -42,7 +42,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeConversations_conversations_number", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, removeError, removeSuccess, service;
 t.step(function () {
     removeSuccess = t.step_func(function () {
@@ -57,7 +57,7 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.messageStorage.removeConversations(1, removeSuccess, removeError);
         });
 
index 5935ee809d55ea7a05666f0c598a64b66089db14..74decfdec510b18fc1d13c026bc2648bf67e2f5a 100644 (file)
@@ -28,21 +28,21 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeConversations_forsms</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_removeConversations_forsms
-//==== LABEL check the function of removeConversations in MessageStorage by forsms
+//==== LABEL Check if MessageStorage.removeConversations method works properly with all callbacks (sms)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -50,7 +50,7 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeConversations_forsms", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, serviceError, serviceSuccess, filter, findError, findSuccess, removeError, removeSuccess,
     onSuccess;
 
index dcac54e5bdd57dd90bc311843b2c7b116ec39f73..50ccdb27b7734d9ee60ca234a10d0ed0ce991878 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_invalid_arg</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_invalid_arg
-//==== LABEL MessageStorage.removeConversations ('sth') WRONG argument(s)
+//==== LABEL Check MessageStorage.removeConversations method when conversations argument is invalid (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -41,23 +41,20 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_removeConversations_invalid_arg", {timeout: 90000});
-this_test.step(function () {
-    var service = null, onSuccess;
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;
+t.step(function () {
 
-    onSuccess = this_test.step_func(function (services) {
+    onSuccess = t.step_func(function (services) {
         assert_type(services, "array", "type of services is not Array");
         if (services.length > 0) {
             service = services[0];
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 service.messageStorage.removeConversations("sth");
             });
         } else {
             assert_unreached("list of services is empty");
         }
-        return this_test.done();
+        t.done();
     });
 
     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
index 4fe089a79877a5b447e000ddb8fd4e7e8f7b5b38..2a94fbf7aca90b949e45b3d455fcc2e45e8bde6c 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_missarg_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_missarg_TypeMismatch
-//==== LABEL MessageStorage.removeConversations () WRONG argument(s)
+//==== LABEL Check with missing non-optional argument - MessageStorage.removeConversations (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -41,23 +41,20 @@ Authors:
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_removeConversations_missarg_TypeMismatch", {timeout: 90000});
-this_test.step(function () {
-    var service = null, onSuccess;
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess;
+t.step(function () {
 
-    onSuccess = this_test.step_func(function (services) {
+    onSuccess = t.step_func(function (services) {
         assert_type(services, "array", "type of services is not Array");
         if (services.length > 0) {
             service = services[0];
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 service.messageStorage.removeConversations();
             });
         } else {
             assert_unreached("list of services is empty");
         }
-        return this_test.done();
+        t.done();
     });
 
     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
index d524cc0cc7bc27b828647465c84b1c95b3b8249d..358d0834494e1c3cefba4546b7d173ed59f6bb33 100644 (file)
@@ -28,67 +28,71 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_removeConversations_sms</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
-
 //==== TEST: MessageStorage_removeConversations_sms
 //==== PRIORITY P2
-//==== LABEL Check if removeConversations works properly
+//==== LABEL Check if MessageStorage.removeConversations method works properly (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_removeConversations_sms", {timeout: 90000}),
-    service, msg, filter, successCallback, errorCallback, conversationsArrayCB, queryErrorCB,
-    messageSent, serviceListCB, serviceError;
+
+var t = async_test(document.title, {timeout: 90000}),
+    service, msg, filter, removeSuccess, removeError, findSuccess, findError,
+    sendSuccess, serviceSuccess, serviceError, sendError;
 
 t.step(function () {
-    successCallback = t.step_func(function () {
+    removeSuccess = t.step_func(function () {
         t.done();
     });
 
-    errorCallback = t.step_func(function (error) {
+    removeError = t.step_func(function (error) {
         assert_unreached("removeConversations() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    conversationsArrayCB = t.step_func(function (conversations) {
+    findSuccess = t.step_func(function (conversations) {
         assert_greater_than(conversations.length, 0, "Received empty conversations array");
-        service.messageStorage.removeConversations(conversations, successCallback, errorCallback);
+        service.messageStorage.removeConversations(conversations, removeSuccess, removeError);
     });
 
-    queryErrorCB = t.step_func(function (error) {
+    findError = t.step_func(function (error) {
         assert_unreached("findConversations() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    messageSent = t.step_func(function (recipients) {
-        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        service.messageStorage.findConversations(filter, conversationsArrayCB, queryErrorCB);
+    sendSuccess = t.step_func(function (recipients) {
+        filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.findError");
+        service.messageStorage.findConversations(filter, findSuccess, findError);
+    });
+
+    sendError = t.step_func(function (error) {
+        assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceListCB = t.step_func(function (services) {
+    serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         msg = new tizen.Message("messaging.sms", {plainBody: "test.", to: [TEST_SMS_RECIPIENT]});
-        service.sendMessage(msg, messageSent);
+        service.sendMessage(msg, sendSuccess, sendError);
     });
 
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.sms", serviceListCB, serviceError);
+    tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
 </script>
index 30cc95a369bdefc9d998f04b91cd8b3c7804bc09..a00ca063b386d9fcee065545717b35cb199c2e78 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_removeConversations_successCallback_number</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_removeConversations_successCallback_number
-//==== LABEL check whether invoking 'removeConversations' method with invalid success callback throws exception properly
+//==== LABEL Check MessageStorage.removeConversations method when successCallback is a number (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:removeConversations M
@@ -43,7 +43,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_removeConversations_successCallback_number", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, toFilter, sortMode, limit,
     findConversationsSuccess, findConversationsError, foundConversation, sendSuccess, sendError, newMessage,
     removeError, service;
@@ -57,7 +57,7 @@ t.step(function () {
         assert_greater_than(conversations.length, 0, "no conversations found");
         foundConversation = conversations[0];
 
-        assert_throws({name: TYPE_MISMATCH_ERR}, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             service.messageStorage.removeConversations(foundConversation, 1, removeError);
         });
 
index c199c7e5874f2f1059f15ce7d0c1b01bb72cdb20..9c46275c8dd2e7faa521c815f6054e22b6632a5f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch
-//==== LABEL Check argument conversationsChangeCallback conversions exception - sms
+//==== LABEL Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        incorrectChangeListener, exceptionName, i, conversionTable;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
@@ -54,7 +53,7 @@ t.step(function () {
             incorrectChangeListener  = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addConversationsChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
index 55f58d9c73507f7560a69b8a2f7f9a72634aaed1..85261e2d303c23ced95540ff59d843b0291c8709 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb
-//==== LABEL Check argument conversationsChangeCallback validation - addConversationsChangeListener, sms
+//==== LABEL Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MTL
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectListeners, i, exceptionName, incorrectChangeListener;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        incorrectListeners, i, exceptionName, incorrectChangeListener;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
@@ -54,7 +53,7 @@ t.step(function () {
             incorrectChangeListener = incorrectListeners[i][0];
             exceptionName = incorrectListeners[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addConversationsChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener.");
index 7062bfbf53282bb5b8dbe0f5064f87ff5f21c5d5..0191e37d269094f9a33b3a2a0d1439cc343b0743 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addConversationsChangeListener_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addConversationsChangeListener_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 4ed7bd99c1c2b14a6d637d8dcd62a74f507ef994..29aa2e0a07161bb0a6d51da13242592928420267 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,19 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage
-//==== LABEL Check if method addDraftMessage of MessageStorage (SMS) works properly.
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
+    addDraftSuccess, addDraftError, filter, findMessagesSuccess, findMessagesError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
-        addDraftSuccess, addDraftError, filter,
-        findMessagesSuccess, findMessagesError;
 
     findMessagesSuccess = t.step_func(function (messages) {
         assert_equals(messages.length, 1, "Received incorrect number of messages");
index e42b3a9344993d77cf90c6c7a4b1ffc34d9bd70d..d5e85aad86aade58f8087f12379584ab990c6ed1 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch
-//==== LABEL Check if addDraftMessage (sms) throws exception when errorCallback is incorrect
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -38,11 +38,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, plainBodyToSet = "plainBody", addDraftSuccess, conversionTable, i, exceptionName, incorrectCallback;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        plainBodyToSet = "plainBody", addDraftSuccess, conversionTable, i,
-        exceptionName, incorrectCallback;
 
     addDraftSuccess = t.step_func(function () {
         assert_unreached("addDraftMessage() success callback invoked.");
@@ -59,7 +57,7 @@ t.step(function () {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
             function () {
                 messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
             }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index 5cb2791054061dd83f767a2120f11667948ecbfe..3c0ddf9c4f94af1d23561963d0837265a0802f35 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb
-//==== LABEL Check if addDraftMessage (sms) throws exception when errorCallback is invalid
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -38,11 +38,9 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, plainBodyToSet = "plainBody", addDraftSuccess, incorrectCallback, exceptionName = "TypeMismatchError";
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        plainBodyToSet = "plainBody", addDraftSuccess, incorrectCallback,
-        exceptionName = "TypeMismatchError";
 
     addDraftSuccess = t.step_func(function () {
         assert_unreached("addDraftMessage() success callback invoked.");
@@ -60,7 +58,7 @@ t.step(function () {
         messageStorage = messageService.messageStorage;
 
         message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.addDraftMessage(message, addDraftSuccess, incorrectCallback);
             }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index be96d73e66308834227560f69eb26e071809270a..ff5785bc3f7019976ba15e34c4e3010d28bf056a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 2ed27340d2371e5b693316787ff682f7c846761b..b306ee2467874176e98b26242cf12ed27003149b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_message_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_message_TypeMismatch
-//==== LABEL Check argument message conversions exception in addDraftMessage method (sms)
+//==== LABEL Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,11 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_message_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectMessage, conversionTable, i, exceptionName, addDraftSuccess, addDraftError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, incorrectMessage,
-        conversionTable, i, exceptionName,
-        addDraftSuccess, addDraftError;
 
     addDraftSuccess = t.step_func(function () {
         assert_unreached("addDraftMessage success callback invoked.");
@@ -62,7 +60,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectMessage = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addDraftMessage(incorrectMessage, addDraftSuccess, addDraftError);
                 }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessage);
index c233764deb1cbf3a889337b04ae3f3c75b84b579..4df7db0df2ea73dfa1c56c2ccfa95f51c874079c 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_message_invalid_obj</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_message_invalid_obj
-//==== LABEL Check argument message validation in addDraftMessage method (sms) - invalid object
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_message_invalid_obj", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    fakeMessage, exceptionName = "TypeMismatchError", addDraftSuccess, addDraftError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, fakeMessage, exceptionName = "TypeMismatchError",
-        addDraftSuccess, addDraftError;
 
     addDraftSuccess = t.step_func(function () {
         assert_unreached("addDraftMessage success callback invoked.");
@@ -74,7 +73,7 @@ t.step(function () {
             inResponseTo: null,
             messageStatus: ""
         };
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             messageStorage.addDraftMessage(fakeMessage, addDraftSuccess, addDraftError);
         }, exceptionName + " should be thrown - given incorrect Message");
index 3d9407d303d3b9fce7f1560fee32b58f7a271d6e..3e6e6a5f47545054a6b5738c02c43d95388ad666 100644 (file)
@@ -23,31 +23,30 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_missarg
-//==== LABEL Check MessageStorage.addDraftMessage (sms) with missing non-optional argument
+//==== LABEL Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_missarg", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    exceptionName = "TypeMismatchError";
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        exceptionName = "TypeMismatchError";
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         messageService = services[0];
         messageStorage = messageService.messageStorage;
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.addDraftMessage();
             }, exceptionName + " should be thrown - missing argument");
index 67af4ef4fb2394dbe54381cda8c9c126a2263e81..4f436ac32690e2f79c3da47e0a0e315f479dc1c8 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch
-//==== LABEL Check if addDraftMessage (sms) throws exception when successCallback is incorrect
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -38,11 +38,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, conversionTable, exceptionName, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        plainBodyToSet = "plainBody", incorrectCallback, addDraftError,
-        conversionTable, exceptionName, i;
 
     addDraftError = t.step_func(function (error) {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
@@ -60,7 +58,7 @@ t.step(function () {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
             function () {
                 messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
             }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index 775a89a013f3d8844df7671564008f8cffb5c902..5cae4b1622043937a6faea2ae9a352312a352cd8 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_successCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_successCallback_invalid_cb
-//==== LABEL Check if addDraftMessage (sms) throws exception when successCallback is invalid
+//==== LABEL Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -38,11 +38,9 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_successCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, plainBodyToSet = "plainBody", incorrectCallback, addDraftError, exceptionName = "TypeMismatchError";
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        plainBodyToSet = "plainBody", incorrectCallback, addDraftError,
-        exceptionName = "TypeMismatchError";
 
     incorrectCallback = {
         onsuccess: t.step_func(function () {
@@ -60,7 +58,7 @@ t.step(function () {
         messageStorage = messageService.messageStorage;
 
         message = new tizen.Message("messaging.sms", {plainBody: plainBodyToSet});
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.addDraftMessage(message, incorrectCallback, addDraftError);
             }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index dbef37d9dd0dd1eb907ccf356b05753eebeb12ca..2b4e650530cb415d355d71a8517d69c8f62ef8e1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,19 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_without_errorCallback
-//==== LABEL Check if method addDraftMessage of MessageStorage (sms) works properly without errorCallback
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_without_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
+    addDraftSuccess, filter, findMessagesSuccess, findMessagesError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), returnedValue = null,
-        addDraftSuccess, filter,
-        findMessagesSuccess, findMessagesError;
 
     findMessagesSuccess = t.step_func(function (messages) {
         assert_equals(messages.length, 1, "Received incorrect number of messages");
index 4e8cf8b19658b8fe4598fb53d3a9728f7dc13df4..3838e3e46329c0673826a730687fdc145e42ecf0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addDraftMessage_without_successCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addDraftMessage_without_successCallback
-//==== LABEL Check if method addDraftMessage of MessageStorage (sms) works properly without successCallback
+//==== LABEL Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addDraftMessage M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addDraftMessage_without_successCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, returnedValue = null;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, message,
-        returnedValue = null;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 74cf6b12bcfbed825730335fac58c81e6d3867d0..a21f3b8eacbb1c20462d04e7e43b12253e3ace6b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addFoldersChangeListener_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addFoldersChangeListener_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index ad11ae29904e107bb41169e468cd57abc3cae54a..52829ceec6a65bf134d8bdec8acdef772e42046b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 25612fc9fece646fcafadb7af62174956b995252..4644124a7ac6be08b4a4754f30a965552b49f527 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch
-//==== LABEL Check argument filter conversions exception - addMessagesChangeListener, filter, sms
+//==== LABEL Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    changeCallback, conversionTable, incorrectFilter, exceptionName, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, changeCallback,
-        conversionTable, incorrectFilter, exceptionName, i;
 
     changeCallback = {
         messagesadded: t.step_func(function (addedMessages) {
@@ -65,7 +64,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectFilter = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName}, function () {
+            assert_throws({name: exceptionName}, function () {
                 messageStorage.addMessagesChangeListener(changeCallback, incorrectFilter);
             }, exceptionName + " should be thrown - given incorrect filter: " + incorrectFilter);
         }
index cc3a03c24d301ced083ecf0c9385b597c7e600a4..aa02bb72e8fb69ab3e10a28b53db8f82c09dfdc0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch
-//==== LABEL Check argument messagesChangeCallback conversions exception - addMessagesChangeListener, sms
+//==== LABEL Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectChangeListener, exceptionName, i, conversionTable;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        incorrectChangeListener, exceptionName, i, conversionTable;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
@@ -55,7 +54,7 @@ t.step(function () {
             incorrectChangeListener  = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addMessagesChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener: " + incorrectChangeListener + ".");
index 059caa40c37ab76ce181cdd014b324daa71f08bb..8fd99d82ba2cf96412d3b0905812410962f39be1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb
-//==== LABEL Check argument messagesChangeCallback validation - invalid, sms
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,9 @@ Authors:
 //==== TEST_CRITERIA MTL
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    incorrectListeners, incorrectChangeListener, exceptionName, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, incorrectListeners,
-        incorrectChangeListener, exceptionName, i;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
@@ -53,7 +52,7 @@ t.step(function () {
         for(i = 0; i < incorrectListeners.length; i++) {
             incorrectChangeListener = incorrectListeners[i][0];
             exceptionName = incorrectListeners[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.addMessagesChangeListener(incorrectChangeListener);
                 }, exceptionName + " should be thrown - given incorrect listener.");
index 5f5c428ba927517394d3126cb24e90a7476537cf..4cb2a3cc48b45dcdd09d5456d0655cb1355ca933 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,23 +31,23 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_missarg
-//==== LABEL Check with missing non-optional argument - addMessagesChangeListener, sms
+//==== LABEL Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_missarg", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    exceptionName = "TypeMismatchError";
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, exceptionName = "TypeMismatchError";
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
         messageService = services[0];
         messageStorage = messageService.messageStorage;
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.addMessagesChangeListener();
             }, exceptionName + " should be thrown - missing argument.");
index 30fa547b7b203c06428d5a09ef10fe67a9242c63..8a2f76a886b07258762ddef4989cd390c1f23102 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_with_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,23 +31,20 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_with_filter
-//==== LABEL Check with optional arguments addMessagesChangeListener (sms)
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_with_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,
-        endText = "ending", currentDate = new Date(),
-        matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-        mismatchPlainBodyToSet = currentDate.getTime().toString(),
-        matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
-        matchMessage, mismatchMessage,
-        changeCallback, addDraftError,
-        loadSuccess, loadError;
 
     //cleanup after TC
     add_result_callback(function () {
@@ -95,7 +92,7 @@ t.step(function () {
 
         filter = new tizen.AttributeFilter("body.plainBody", "ENDSWITH", endText);
         subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback, filter);
-        assert_type(subscriptionIdentifier, "number", "Incorrect returned value.");
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
 
         mismatchInitDict.plainBody = mismatchPlainBodyToSet;
         mismatchMessage = new tizen.Message("messaging.sms", mismatchInitDict);
index 350401b57265dfdf60bbd2782839a5be4f301593..4431650111f5881ae5b7265df6d1e1c598a67256 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_addMessagesChangeListener_without_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,19 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_addMessagesChangeListener_without_filter
-//==== LABEL Check if method addMessagesChangeListener of MessageStorage (sms) works properly without filter.
+//==== LABEL Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addMessagesChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MMINA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_addMessagesChangeListener_without_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,
+    changeCallback, initDict = smsMessageInitDict, addDraftError, loadSuccess, loadError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        message, changeCallback, initDict = smsMessageInitDict, addDraftError,
-        loadSuccess, loadError;
 
     //cleanup after TC
     add_result_callback(function () {
@@ -90,7 +88,7 @@ t.step(function () {
         messageStorage = messageService.messageStorage;
 
         subscriptionIdentifier = messageStorage.addMessagesChangeListener(changeCallback);
-        assert_type(subscriptionIdentifier, "number", "Incorrect returned value.");
+        assert_type(subscriptionIdentifier, "long", "Incorrect returned value.");
         initDict.plainBody = plainBodyToSet;
         message = new tizen.Message("messaging.sms", initDict);
         messageStorage.addDraftMessage(message, null, addDraftError);
index 9455378078cf6f6f3d368fbb4771edce6b02293b..e10e6dd7125f1b7ebb5a9b488407c8ba56c995af 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -38,9 +38,8 @@ Authors:
 //==== TEST_CRITERIA OBX
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_extend", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage, serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 7b098ad0bfd0b896bd86d3d8012758195ac0d728..3494a522d654cdd2b99aa4a0b056406ea8f2fa33 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations
-//==== LABEL Check if method MessageStorage::findConversations() can be successfully called for sms message
+//==== LABEL Check if MessageStorage.findConversations method works properly (sms)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -43,7 +43,7 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError,
     addSuccess, addError,
     conversationSuccess, conversationError,
index fec6b20be730dc0e31da5782399628b3a043d848..d8d693ea4019d3f5dca6d675196f0af281adf00b 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_errorCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_errorCallback_TypeMismatch
-//==== LABEL check whether invoking 'findConversations' method with invalid error callback throws exception properly
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,18 +42,17 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_errorCallback_TypeMismatch", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, findConversationsCallback, getMessagingServicesCallback,
-        onError, i, incorrectCallback, conversionTable, exceptionName;
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,
+    onError, i, incorrectCallback, conversionTable, exceptionName;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
         conversionTable = getTypeConversionExceptions("functionObject", true);
@@ -68,10 +67,10 @@ this_test.step(function () {
                 services[0].messageStorage.findConversations(toFilter, findConversationsCallback, incorrectCallback);
             });
         }
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 497d6cdd0adece84876b7dc1e0dfa9648eca4c3f..79fe4fff1e967ed21f44a4d11fa7a10e09980acf 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_errorCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_errorCallback_invalid_cb
-//==== LABEL check whether invoking 'findConversations' method with object as error callback throws exception properly
+//==== LABEL Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,38 +42,35 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_errorCallback_invalid_cb", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, findConversationsCallback, getMessagingServicesCallback,
-        onError, invalidCallback, conversionTable;
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, getMessagingServicesCallback,
+    onError, invalidCallback, conversionTable;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
     invalidCallback = {
-        onerror: this_test.step_func(function () {
+        onerror: t.step_func(function () {
             assert_unreached("Unexpected onerror");
         })
     };
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
         conversionTable = getTypeConversionExceptions("functionObject", true);
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             services[0].messageStorage.findConversations(toFilter, findConversationsCallback, invalidCallback);
         });
 
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 8e74e2e2d802e43222ef242a055898b643d2a88e..870f044ef2e59bff1281465a7daaf0d8052e737a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_true(services.length > 0, "Received empty services array");
index d791db5d382fc70999e1d38dbdfae4090b370af8..963bbf8fcc3b04c69865134623165f8e9af3b01f 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_filter_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_filter_TypeMismatch
-//==== LABEL Check whether method MessageStorage::findConversations() method with invalid filter param throws exception properly
+//==== LABEL Check type conversions for filter argument of MessageStorage.findConversations method (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -43,20 +43,19 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_filter_TypeMismatch", {timeout: 90000});
-this_test.step(function () {
-    var findConversationsCallback, errorCallback, getMessagingServicesCallback,
-        onError, i, incorrectFilter, conversionTable, exceptionName;
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
+    onError, i, incorrectFilter, conversionTable, exceptionName;
+t.step(function () {
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_not_equals(services.length, 0, "getMessageServices services.length");
 
         conversionTable = getTypeConversionExceptions("object", false);
@@ -65,16 +64,14 @@ this_test.step(function () {
             incorrectFilter = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 services[0].messageStorage.findConversations(incorrectFilter, findConversationsCallback, errorCallback);
             });
         }
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 31ede7226e1c2555c973e9d6134e1ed6f7b897c6..9d31138887c07a1fbef4e383fdf9d3936e76af00 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_filter_id</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_filter_id
-//==== LABEL Check if method MessageStorage::findConversations() can be successfully called for sms message (with conversationId)
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by id (sms)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -43,7 +43,7 @@ Authors:
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations_filter_id", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, returnedValue = null,
     addDraftSuccess, addDraftError,
     findMessageSuccess, findMessageError,
index 8b1ba61e4991aea6b7108146fcb4d0b4f8c5044f..041e56e1abcf0c9fb023192f5d525d524cc5c41e 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_filter_invalid_obj</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_filter_invalid_obj
-//==== LABEL Check whether method MessageStorage::findConversations() method generic object as filter param throws exception properly
+//==== LABEL Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -43,21 +43,20 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_filter_invalid_obj", {timeout: 90000});
-this_test.step(function () {
-    var findConversationsCallback, errorCallback, getMessagingServicesCallback,
-        onError, invalidFilter;
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, errorCallback, getMessagingServicesCallback,
+    onError, invalidFilter;
+t.step(function () {
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_not_equals(services.length, 0, "getMessageServices services.length");
 
         invalidFilter = {
@@ -66,16 +65,14 @@ this_test.step(function () {
             matchValue: services[0].type
         };
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             services[0].messageStorage.findConversations(invalidFilter, findConversationsCallback, errorCallback);
         });
 
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index f964698a57a6e6db7db32f0c3cf6d15220d086a8..611e0af4d22bf83dd8e28dea5663cbbfe47f1ca1 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_filter_to</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_filter_to
-//==== LABEL Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by to)
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by to (sms)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -43,13 +43,9 @@ Authors:
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations_filter_to", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,
+    sendError, conversationSuccess, conversationError, service, newMessage, filter, recipient = TEST_SMS_RECIPIENT;
 t.step(function () {
-    var serviceSuccess, serviceError, returnedValue = null,
-        sendSuccess, sendError,
-        conversationSuccess, conversationError,
-        service, newMessage, filter,
-        recipient = TEST_SMS_RECIPIENT;
 
     conversationSuccess = t.step_func(function (conversations) {
         assert_type(conversations, "array", "conversations");
index 27b899f5248af8ffaa35da2d3c082b94384bd0cb..93d4afbc1a01e62819aaa68ac7bcdbbd381a1824 100644 (file)
@@ -26,7 +26,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_filter_type</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -35,7 +35,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_filter_type
-//==== LABEL Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by type)
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter by type (sms)
 //==== PRIORITY P1
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -43,12 +43,9 @@ Authors:
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations_filter_type", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, returnedValue = null, sendSuccess,
+    sendError, resendError, conversationSuccess, conversationError, i, service, filter, newMessage;
 t.step(function () {
-    var serviceSuccess, serviceError, returnedValue = null,
-        sendSuccess, sendError, resendError,
-        conversationSuccess, conversationError,
-        i, service, filter, newMessage;
 
     conversationSuccess = t.step_func(function (conversations) {
         assert_equals(returnedValue, undefined, "Incorrect returned value");
index 83f5a85f464c61a9f11dcc3c939c2d2ee6ada1fd..ba669b9be67e05a5b14bd63f649d50b62481bde8 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_missarg</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,7 +33,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_missarg
-//==== LABEL MessageStorage.findConversations (filter) WRONG argument(s)
+//==== LABEL Check with missing non-optional argument - MessageStorage.findConversations (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -41,25 +41,22 @@ Authors:
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_missarg", {timeout: 90000});
-this_test.step(function () {
-    var service = null, onSuccess, filter;
+var t = async_test(document.title, {timeout: 90000}), service = null, onSuccess, filter;
+t.step(function () {
 
     filter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
 
-    onSuccess = this_test.step_func(function (services) {
+    onSuccess = t.step_func(function (services) {
         assert_type(services, "array", "type of services is not Array");
         if (services.length > 0) {
             service = services[0];
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 service.messageStorage.findConversations(filter);
             });
         } else {
             assert_unreached("list of services is empty");
         }
-        return this_test.done();
+        t.done();
     });
 
     tizen.messaging.getMessageServices("messaging.sms", onSuccess);
index cb512b319401fe56924c2e35b5566efe94cbee36..44892594e60003466f87ff7ac215d47974c029c9 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_sort_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_sort_TypeMismatch
-//==== LABEL check whether invoking 'findConversations' method with invalid SortMode param throws exception properly
+//==== LABEL Check type conversions for sort argument of MessageStorage.findConversations method (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,22 +42,21 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_sort_TypeMismatch", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback, onError,
-        i, incorrectSort, conversionTable, exceptionName;
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
+    onError, i, incorrectSort, conversionTable, exceptionName;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
         conversionTable = getTypeConversionExceptions("object", true);
@@ -66,16 +65,14 @@ this_test.step(function () {
             incorrectSort = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, incorrectSort);
             });
         }
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index c49c80b71bd16d99ab7fc95906fa41f2e18c1433..e7b460444ef868b67fd5b564403dbc6a0f3ca272 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_sort_invalid_obj</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_sort_invalid_obj
-//==== LABEL check whether invoking 'findConversations' method with object as SortMode param throws exception properly
+//==== LABEL Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,18 +42,17 @@ Authors:
 //==== TEST_CRITERIA MTO
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_sort_invalid_obj", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback, onError,
-        invalidSort;
+var t = async_test(document.title, {timeout: 90000}), toFilter, findConversationsCallback, errorCallback, getMessagingServicesCallback,
+    onError, invalidSort;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    findConversationsCallback = this_test.step_func(function () {
+    findConversationsCallback = t.step_func(function () {
         assert_unreached("Unexpected findConversationsCallback");
     });
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
@@ -62,19 +61,17 @@ this_test.step(function () {
         order: "ASC"
     };
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             services[0].messageStorage.findConversations(toFilter, findConversationsCallback, errorCallback, invalidSort);
         });
 
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 967f9c3b284f1c3e352c15413e537aeed54fa131..da36490e509c589854f368278d1dfdd2a4309f0b 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_successCallback_TypeMismatch</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_successCallback_TypeMismatch
-//==== LABEL check whether invoking 'findConversations' method with invalid success calback throws exception properly
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,18 +42,17 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_successCallback_TypeMismatch", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, errorCallback, getMessagingServicesCallback, onError,
-        i, incorrectCallback, conversionTable, exceptionName;
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
+    onError, i, incorrectCallback, conversionTable, exceptionName;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
         conversionTable = getTypeConversionExceptions("functionObject", false);
@@ -62,16 +61,14 @@ this_test.step(function () {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({
-                name: TYPE_MISMATCH_ERR
-            }, function () {
+            assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
                 services[0].messageStorage.findConversations(toFilter, incorrectCallback, errorCallback);
             });
         }
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 4ca48ebf3213574663dd6d5097e668fec38a7e1f..6409881d6904e930b65c793995e6eb82fc61dfff 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_successCallback_invalid_cb</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_successCallback_invalid_cb
-//==== LABEL check whether invoking 'findConversations' method with object as success calback throws exception properly
+//==== LABEL Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,36 +42,33 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_successCallback_invalid_cb", {timeout: 90000});
-this_test.step(function () {
-    var toFilter, errorCallback, getMessagingServicesCallback, onError,
-        invalidCallback;
+var t = async_test(document.title, {timeout: 90000}), toFilter, errorCallback, getMessagingServicesCallback,
+    onError, invalidCallback;
+t.step(function () {
 
     toFilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT);
 
-    errorCallback = this_test.step_func(function (err) {
+    errorCallback = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback: " + err.message);
     });
 
     invalidCallback = {
-        onsuccess: this_test.step_func(function () {
+        onsuccess: t.step_func(function () {
             assert_unreached("Unexpected onsuccess");
         })
     };
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_true(services.length > 0, "services not found");
 
-        assert_throws({
-            name: TYPE_MISMATCH_ERR
-        }, function () {
+        assert_throws(TYPE_MISMATCH_EXCEPTION, function () {
             services[0].messageStorage.findConversations(toFilter, invalidCallback, errorCallback);
         });
 
-        return this_test.done();
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected onError: " + err.message);
     });
 
index 5daf4fdb09f703bc6af9ff87dd3b23af45551c9a..6f1583466102bd4c16a6158da1e8323dce46ab15 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_with_limit</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_with_limit
-//==== LABEL check whether 'findConversations' method properly retrieves conversations limited to specified number
+//==== LABEL Check if MessageStorage.findConversations method works properly with limit (sms)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -42,7 +42,7 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findConversations_with_limit", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceError, serviceSuccess, service, onSuccess, filter, limit = 1, findError, findSuccess;
 
 t.step(function () {
index 13a146d446dc53e612a256bef9c2de48537387cc..2c99f42a85f6b781e5fbc2926aa6549e59eb4fb7 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_with_offset</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -33,20 +33,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findConversations_with_offset
-//==== LABEL check whether 'findConversations' method properly retrieves conversations matching the supplied to filter and offset param from MessageStorage
+//==== LABEL Check if MessageStorage.findConversations method works properly with offset (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
-setup({timeout:90000});
-var t = async_test("MessageStorage_sms_findConversations_with_offset", {timeout: 90000});
+setup({timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), service, typeFilter, sortById = new tizen.SortMode("id",
+    "DESC"), i, conversationIDs = [], offsetIDs = [], serviceSuccess, serviceError, addSuccess, addSuccessCounter = 0,
+    findAllConversationsSuccess, findAllConversationsError, findConversationsSuccess, findConversationsError;
 t.step(function () {
-    var service, typeFilter, sortById = new tizen.SortMode("id", "DESC"),
-        i, conversationIDs = [], offsetIDs = [],
-        serviceSuccess, serviceError, addSuccess, addSuccessCounter = 0,
-        findAllConversationsSuccess, findAllConversationsError,
-        findConversationsSuccess, findConversationsError;
 
     findConversationsSuccess = t.step_func(function (conversations) {
         for (i = 0; i < conversations.length; i++) {
index f33d53a0b854e156e982eb568d83212cfef253df..54ac04dbd99e76e92e21e3a5b89084abbe507836 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findConversations_with_sort_to</title>
 <meta charset="utf-8">
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script>
 
 //==== TEST: MessageStorage_sms_findConversations_with_sort_to
-//==== LABEL check whether 'findConversations' method properly retrieves conversations matching the supplied 'to' filter in specified order
+//==== LABEL Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findConversations M
@@ -42,15 +42,15 @@ Authors:
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var this_test = async_test("MessageStorage_sms_findConversations_with_sort_to", {timeout: 90000});
-this_test.step(function () {
-    var findConversationsCallback, onError, toFilter, sortMode, getMessagingServicesCallback;
+var t = async_test(document.title, {timeout: 90000}), findConversationsCallback, onError, toFilter, sortMode,
+    getMessagingServicesCallback;
+t.step(function () {
 
-    findConversationsCallback = this_test.step_func(function (conversations) {
-        return this_test.done();
+    findConversationsCallback = t.step_func(function (conversations) {
+        t.done();
     });
 
-    onError = this_test.step_func(function (err) {
+    onError = t.step_func(function (err) {
         assert_unreached("Unexpected errorCallback arrived: " + err.message);
     });
 
@@ -58,7 +58,7 @@ this_test.step(function () {
 
     sortMode = new tizen.SortMode("to", "ASC");
 
-    getMessagingServicesCallback = this_test.step_func(function (services) {
+    getMessagingServicesCallback = t.step_func(function (services) {
         assert_not_equals(services.length, 0, "Can't find MessageService");
 
         services[0].messageStorage.findConversations(toFilter, findConversationsCallback, onError, sortMode);
index 27be0b9704b0605c3d884d99bf2c00d408c1d114..8f8114cdb6707141c37717605c2dd988f6cce9e9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findFolders_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findFolders_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index fea3bbafa9ecf477a18d9168c1def68f2ad4abb3..dd770b59d7b6c111ece2428026cf5acfca57328a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback) id for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MMINA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, i, loadMessageSuccess,
+    loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, i, loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index b0fa8b85da63cc19f6f4c949d1d80c40a9a75733..e5eb7254f1e163597e76e917901003a1806c1d44 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_errorCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_errorCallback_TypeMismatch
-//==== LABEL Check findMessages argument errorCallback conversions exception for sms
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_errorCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
+    incorrectCallback, findSuccessCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName, incorrectCallback, findSuccessCB ;
 
     findSuccessCB = t.step_func(function () {
         assert_unreached("Shouldn't be here");
@@ -53,7 +53,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
                 }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
index e36e485fdb8b221095b680669b3a6a5e67835088..e9424e6a946d646d7f82b5cd04aebed2311da2d2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_errorCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_errorCallback_invalid_cb
-//==== LABEL Check findMessages argument errorCallback validation for sms
+//==== LABEL Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_errorCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
+    incorrectCallback, findSuccessCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError", incorrectCallback, findSuccessCB ;
 
     incorrectCallback = {
         onerror: t.step_func(function () {
@@ -55,7 +55,7 @@ t.step(function () {
 
     addDraftSuccessCB = t.step_func(function () {
         filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.findMessages(filter, findSuccessCB, incorrectCallback);
             }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index b50987920abd8b5b401b5ef2411032ef04bc1864..76e3e421d812b54c8c0f9944edb2b79714d10790 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 34623ebff2b52d1690b1b0b3b50ddb790134b7c4..938b322ead06ed28b994352299c5a0138fc77375 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_filter_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_filter_TypeMismatch
-//==== LABEL Check findMessages argument filter conversions exception for sms
+//==== LABEL Check type conversions for filter argument of MessageStorage.findMessages method (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_filter_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable,
+    i, exceptionName, findSuccessCB, findErrorCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, incorrectFilter, conversionTable, i, exceptionName, findSuccessCB, findErrorCB ;
 
     findSuccessCB = t.step_func(function () {
         assert_unreached("Shouldn't be here");
@@ -56,7 +56,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectFilter = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.findMessages(incorrectFilter, findSuccessCB, findErrorCB);
                 }, exceptionName + " should be thrown - given incorrect Message: " + incorrectFilter);
index 58e594070de2bc40d62ad2a4f0b6fe93935d314e..2637d271e6f8c5e38b9154544a2dd70cd901cdd2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_folderId_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_folderId_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) folderId for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by folderId (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_folderId_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i, j, loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i, j, loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index ecc34bf19bb98b4411fa34de9e08e16dbe9c8e0c..641ea7649455bf21cbc3a23f2a2b8a32cf5ea5be 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_from_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,14 +31,14 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_from_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) from for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by from (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA MR
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_from_with_errorCallback", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, service, returnedValue = null, filter, findSuccessCB, findErrorCB,
     fromFound, i;
 
index 939a1c2cde61a643c2e8a9cf8a534260b178bbe4..c9653fb89ce00abf773314629a9ff248a57d190e 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_id_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_id_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) id for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by id (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_id_with_errorCallback", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index f06106ff15a049bbc3fb0ae8252f1c4b477415c2..1f2006303089b86039991efb25c83ded2f86e088 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_isRead_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_isRead_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) isRead for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by isRead (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_isRead_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i;
 
     findSuccessCB = t.step_func(function (msg) {
         assert_true(msg.length >= 1, "No messages found");
index ad417fc4aac8d4c3c2b3e49bc2c21695dc2c6d08..930fea35ad6e7d138c4546d9060e8524719606b6 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,19 +31,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_missarg
-//==== LABEL Check findMessages with missing non-optional argument for sms
+//==== LABEL Check without arguments - MessageStorage.findMessages
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_missarg", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, exceptionName = "TypeMismatchError";
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, exceptionName = "TypeMismatchError";
 
     addDraftSuccessCB = t.step_func(function () {
-        assert_throws({name : exceptionName}, function () {
+        assert_throws({name: exceptionName}, function () {
             messageStorage.findMessages();
         }, exceptionName + " should be thrown - missing argument");
 
index 0ce5c7b1911f3b4a3333224767fcb1045036d6ee..59b6b79676b0c7ae42a1d3e0c76c99bcbff94819 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody and id for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter1,
+    filter2, composite, findSuccessCB, findErrorCB, loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, message_one, count = 0, addDraftSuccessCB, addDraftErrorCB, filter1, filter2, composite, findSuccessCB, findErrorCB,
-        loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
@@ -102,14 +101,14 @@ t.step(function () {
     getMessageServicesSuccessCB = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
 
-        message_one = new tizen.Message("messaging.sms", smsMessageInitDict);
-        message_one.body.plainBody = "new plainBody";
+        messageOne = new tizen.Message("messaging.sms", smsMessageInitDict);
+        messageOne.body.plainBody = "new plainBody";
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
 
         messageService = services[0];
         messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message_one, addDraftSuccessCB, addDraftErrorCB);
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
         messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
     });
 
index 3809a876758b1e8210728e7715d01406b27d8d86..27bbc493fe061a249e9947a72cc8ff662c6f15c9 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_plainBody_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_plainBody_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_plainBody_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i, loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i,
-        loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index ffca05611e16a335e5dd52c0b8d1a21ba10b222f..65772e849cf959c04b6e9723174b17965e9c6ed2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_sort_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_sort_TypeMismatch
-//==== LABEL Check findMessages argument sort conversions exception for sms
+//==== LABEL Check type conversions for sort argument of MessageStorage.findMessages method (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_sort_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
+    incorrect, findSuccessCB, findErrorCB;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName, incorrect, findSuccessCB, findErrorCB;
 
     findSuccessCB = t.step_func(function () {
         assert_unreached("Shouldn't be here");
@@ -57,7 +57,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrect = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrect);
                 }, exceptionName + " should be thrown - given incorrect sort mode: " + incorrect);
index a73123ce3f29fe99a1e15219c1af24ed49a32d62..0a18f08b2888a16220c2367d9f49158f7b5526c1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_sort_invalid_obj</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_sort_invalid_obj
-//==== LABEL Check findMessages argument sort validation - use simple objec
+//==== LABEL Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,10 +39,10 @@ Authors:
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_sort_invalid_obj", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
+    incorrectMode, findSuccessCB, findErrorCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError", incorrectMode, findSuccessCB, findErrorCB ;
 
     incorrectMode = {
         attributeName: "id",
@@ -59,7 +59,7 @@ t.step(function () {
 
     addDraftSuccessCB = t.step_func(function () {
         filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.findMessages(filter, findSuccessCB, findErrorCB, incorrectMode);
             }, exceptionName + " should be thrown - given incorrect mode - " + incorrectMode);
index 469c611f7b8aa177026ec5836a80263a1589388d..419e0f1cf4efce2df6c6d289afea3a6a9defd817 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_successCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_successCallback_TypeMismatch
-//==== LABEL Check findMessages argument successCallback conversions exception for sms
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_successCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName,
+    incorrectCallback, findErrorCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, conversionTable, i, exceptionName, incorrectCallback, findErrorCB ;
 
     findErrorCB = t.step_func(function (error) {
         assert_unreached("findErrorCB() error callback: name:" + error.name + ", msg:" + error.message);
@@ -53,7 +53,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
                 function () {
                     messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
                 }, exceptionName + " should be thrown - given incorrect Message: " + incorrectCallback);
index db2eb41dc8e7542de9f9c42d1647fcaca417f526..99c34f983bdfd4794547614eec0d48a5d80e00ca 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_successCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_successCallback_invalid_cb
-//==== LABEL Check findMessages argument successCallback validation for sms
+//==== LABEL Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_successCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError",
+    incorrectCallback, findErrorCB ;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, exceptionName = "TypeMismatchError", incorrectCallback, findErrorCB ;
 
     incorrectCallback = {
         onsuccess: t.step_func(function () {
@@ -55,7 +55,7 @@ t.step(function () {
 
     addDraftSuccessCB = t.step_func(function () {
         filter = new tizen.AttributeFilter("id", "EXACTLY", message.id);
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.findMessages(filter, incorrectCallback, findErrorCB);
             }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index 293b2f7c1d1a36e9f586370adaa6c65e5ae219c2..08063914e1d0d6a314bce1af8f7b1edbbd0e3b68 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_timestamp_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_timestamp_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) timestamp for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_timestamp_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i, loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index a1725f9aa70675e33a07d4ec49bb96ca7a9a53c9..c1d73ba4219cf40b15b31daa5d84af9a92fb2679 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_to_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,18 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_to_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) to for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by to (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_to_with_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i, j, loadMessageSuccess, loadMessageError, foundRecipient = false, addedMessage;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService,
-        messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter,
-        findSuccessCB, findErrorCB, i, j, loadMessageSuccess, loadMessageError,
-        foundRecipient = false, addedMessage;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index ac03e6b154aed928a1d95ac63e5a370bba622c02..00c37dee0bedec9c29e9348ae897dd35ce487239 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_type_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_type_with_errorCallback
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) type for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with filter by type
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_type_with_errorCallback", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB,
+    i, loadMessageSuccess, loadMessageError;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, addDraftSuccessCB, addDraftErrorCB, filter, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError;
 
     loadMessageSuccess = t.step_func(function (msg) {
         assert_own_property(msg, "id", "Name id doesn't exist in provided object.");
index 743b4dbf1e08a36758d84a1e3e3e91dfa5bd2827..ab18fff182a33f55cf6922ad81cfdfc77c80fbe4 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_with_limit</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_with_limit
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit) for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with limit (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_with_limit", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
+    sortMode, findSuccessCB, findErrorCB, removeAllSuccess;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, message_one, count = 0, addDraftSuccessCB, addDraftErrorCB, filter, sortMode, findSuccessCB, findErrorCB, removeAllSuccess;
 
     removeAllSuccess = t.step_func(function () {
         t.done();
@@ -69,7 +69,7 @@ t.step(function () {
     });
 
     getMessageServicesSuccessCB = t.step_func(function (services) {
-        message_one = new tizen.Message("messaging.sms", smsMessageInitDict);
+        messageOne = new tizen.Message("messaging.sms", smsMessageInitDict);
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
 
@@ -77,7 +77,7 @@ t.step(function () {
 
         messageService = services[0];
         messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message_one, addDraftSuccessCB, addDraftErrorCB);
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
         messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
     });
 
index a2e0182aa4b06489e37254db697b3ea08c5b2dba..b88c1f561d1001fce41605ea685f8e8c67235d23 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_with_offset</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,17 +31,17 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_with_offset
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit, valid_offse) for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with offset (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
-var t = async_test("MessageStorage_sms_findMessages_with_offset", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,
+    removeAllSuccess;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, message_one, count = 0, addDraftSuccessCB, addDraftErrorCB, filter, sortMode, findSuccessCB, findErrorCB, i,
-        loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0, removeAllSuccess;
 
     removeAllSuccess = t.step_func(function () {
         t.done();
@@ -91,14 +91,14 @@ t.step(function () {
     getMessageServicesSuccessCB = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
 
-        message_one = new tizen.Message("messaging.sms", smsMessageInitDict);
+        messageOne = new tizen.Message("messaging.sms", smsMessageInitDict);
 
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
 
         messageService = services[0];
         messageStorage = messageService.messageStorage;
         messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
-        messageStorage.addDraftMessage(message_one, addDraftSuccessCB, addDraftErrorCB);
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
     });
 
     getMessageServicesErrorCB = t.step_func(function (error) {
index bdedfd2ef7948ac910c5b0d448b7e7ace45f7be0..b349845e24599a57da2c440f18d6686d457cb8fe 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_findMessages_with_sort</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,19 +31,18 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_findMessages_with_sort
-//==== LABEL Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort) for sms
+//==== LABEL Check if MessageStorage.findMessages method works properly with sort (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:findMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_findMessages_with_sort", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), getMessageServicesErrorCB, getMessageServicesSuccessCB,
+    messageService, messageStorage, message, messageOne, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
+    sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError, findCounter = 0, loadCounter = 0,
+    returnedValue = null;
 t.step(function () {
-    var getMessageServicesErrorCB, getMessageServicesSuccessCB, messageService, messageStorage,
-        message, message_one, count = 0, addDraftSuccessCB, addDraftErrorCB, filter,
-        sortMode, findSuccessCB, findErrorCB, i, loadMessageSuccess, loadMessageError,
-        findCounter = 0, loadCounter = 0, returnedValue = null;
 
     loadMessageSuccess = t.step_func(function (msg) {
         loadCounter++;
@@ -95,12 +94,12 @@ t.step(function () {
     getMessageServicesSuccessCB = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
 
-        message_one = new tizen.Message("messaging.sms", smsMessageInitDict);
+        messageOne = new tizen.Message("messaging.sms", smsMessageInitDict);
         message = new tizen.Message("messaging.sms", smsMessageInitDict);
 
         messageService = services[0];
         messageStorage = messageService.messageStorage;
-        messageStorage.addDraftMessage(message_one, addDraftSuccessCB, addDraftErrorCB);
+        messageStorage.addDraftMessage(messageOne, addDraftSuccessCB, addDraftErrorCB);
         messageStorage.addDraftMessage(message, addDraftSuccessCB, addDraftErrorCB);
     });
 
index 80860699e0faea31801d0040573f527b11467af8..41bcbcda66edd4e374d16b1da8709eab6a489ed1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_removeChangeListener_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_removeChangeListener_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index e136e5593e47b80e2ed4130f4de0ee552654b602..32dd68bac4fd7b6167bd88adb4117f0def3a850b 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_removeConversations_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_removeConversations_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index ad832b85fc6c83b516ff503708cda69579fdec38..aa540e8fba940b23e734313a2785abd25875f9f3 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_removeMessages_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_removeMessages_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index c7e9e443265e04a3dcd5f606940601e729372758..3069c2fabd38745257c3f41c02b16cf0aa7d9b3f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,28 +31,24 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages
-//==== LABEL Check if method updateMessages of MessageStorage (SMS) works properly.
+//==== LABEL Check if MessageStorage.updateMessages method works properly (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
+    returnedValue = null, updateSuccess, updateError, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,
+    testMessage, testMessageCounter = 0;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        mutableMessage, constMessage,
-        initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
-        plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-
-        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-        updateSuccess, updateError, mutableMessagefilter, constMessagefilter,
-        findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-        findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-        loadMutableSuccess, loadMutableError,
-        loadConstSuccess, loadConstError,
-        testMessage, testMessageCounter = 0;
 
 
 
index 701a3c68ca86bfac6c8b79f0cb3aeb36357db3d4..e3cb101b3697aac091b3ba8af26ed8c2b7afc834 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_errorCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_errorCallback_TypeMismatch
-//==== LABEL Check argument errorCallback conversions exception - updateMessages (sms)
+//==== LABEL Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,12 +39,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_errorCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, addDraftSuccess, addDraftError, exceptionName, updateSuccess, incorrectCallback, conversionTable, i;
 t.step(function () {
-    var serviceSuccess, serviceError,
-        messageService, messageStorage, message,
-        addDraftSuccess, addDraftError, exceptionName,
-        updateSuccess, incorrectCallback, conversionTable, i;
 
     updateSuccess = t.step_func(function () {
         assert_unreached("updateMessages() success callback invoked.");
@@ -56,7 +53,7 @@ t.step(function () {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
             function () {
                 messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
             }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index 0b3848db98a55142f7f83300e48c8e8238c6b738..06c08c265fc1966ca9ca51a1f40a5a85a9270ab0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_errorCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_errorCallback_invalid_cb
-//==== LABEL Check argument errorCallback validation - updateMessages (sms)
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,12 +39,9 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_errorCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateSuccess, incorrectCallback;
 t.step(function () {
-    var serviceSuccess, serviceError,
-        messageService, messageStorage, message,
-        addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError",
-        updateSuccess, incorrectCallback;
 
     updateSuccess = t.step_func(function () {
         assert_unreached("updateMessages() success callback invoked.");
@@ -56,7 +53,7 @@ t.step(function () {
                 assert_unreached("addDraftMessage() incorrect error callback invoked: name:" + error.name + ", msg:" + error.message);
             })
         };
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.updateMessages([message], updateSuccess, incorrectCallback);
             }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index c13df81194995e264bfc4c84d307e9ca6ffde84a..b6644f11242c693a396060f86755a346a55a464f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_exist</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,10 +38,8 @@ Authors:
 //==== TEST_CRITERIA ME
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_exist", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), messageService, messageStorage, serviceSuccess, serviceError;
 t.step(function () {
-    var messageService, messageStorage,
-        serviceSuccess, serviceError;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
index 7058675eae360b3044f8d63a70a4769551452757..47d2a781d5f7b6567263f95d7f265b03ac4e228f 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_messages_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_messages_TypeMismatch
-//==== LABEL Check argument messages conversions exception - updateMessages (sms)
+//==== LABEL Check type conversions for messages argument of MessageStorage.updateMessages method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -38,10 +38,9 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_messages_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    exceptionName, updateSuccess, updateError, conversionTable, incorrectMessages, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, exceptionName,
-    updateSuccess, updateError, conversionTable, incorrectMessages, i;
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
@@ -60,7 +59,7 @@ t.step(function () {
         for(i = 0; i < conversionTable.length; i++) {
             incorrectMessages = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
-            assert_throws({name : exceptionName}, function () {
+            assert_throws({name: exceptionName}, function () {
                 messageStorage.updateMessages(incorrectMessages, updateSuccess, updateError);
             }, exceptionName + " should be thrown - given incorrect Message: " + incorrectMessages);
         }
index 99898e307a8ee8c6381239ad26cd903becb195cf..06b4479883d369f6597c7f6e9070927e499f27c9 100644 (file)
@@ -23,30 +23,30 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_missarg</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_missarg
-//==== LABEL Check with missing non-optional argument - updateMessages (sms)
+//==== LABEL Check with missing non-optional argument - MessageStorage.updateMessages (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MMA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_missarg", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    exceptionName = "TypeMismatchError";
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, exceptionName = "TypeMismatchError";
 
     serviceSuccess = t.step_func(function (services) {
         assert_greater_than(services.length, 0, "Received empty services array");
         messageService = services[0];
         messageStorage = messageService.messageStorage;
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             messageStorage.updateMessages();
         }, exceptionName + " should be thrown - missing argument.");
index 482392c8c77f8e68c047b26f6f69c021ddafeda9..34edc7c8d1564075a362f1298940ea1cc8e1cdf7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_successCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_successCallback_TypeMismatch
-//==== LABEL Check argument successCallback conversions exception - updateMessages (sms)
+//==== LABEL Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,7 +39,7 @@ Authors:
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_successCallback_TypeMismatch", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, messageService, messageStorage, message,
     addDraftSuccess, addDraftError, exceptionName,
     updateError, incorrectCallback, conversionTable, i;
@@ -57,7 +57,7 @@ t.step(function () {
             incorrectCallback = conversionTable[i][0];
             exceptionName = conversionTable[i][1];
 
-            assert_throws({name : exceptionName},
+            assert_throws({name: exceptionName},
             function () {
                 messageStorage.updateMessages([message], incorrectCallback, updateError);
             }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index fe4d8ea890f180ea093b747a4de77b4f1f04f87a..ca243d2450512943ea231f82ed13cfa22075e5fb 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_successCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_successCallback_invalid_cb
-//==== LABEL Check argument successCallback validation - updateMessages (sms)
+//==== LABEL Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
@@ -39,12 +39,9 @@ Authors:
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_successCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    message, addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError", updateError, incorrectCallback;
 t.step(function () {
-    var serviceSuccess, serviceError,
-        messageService, messageStorage, message,
-        addDraftSuccess, addDraftError, exceptionName = "TypeMismatchError",
-        updateError, incorrectCallback;
 
     updateError = t.step_func(function (error) {
         assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
@@ -56,7 +53,7 @@ t.step(function () {
                 assert_unreached("addDraftMessage() incorrect success callback invoked");
             })
         };
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
             function () {
                 messageStorage.updateMessages([message], incorrectCallback, updateError);
             }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index 7e7f87ced02d07a11a1d00c6fa7b2bf7b2a5a5ae..a7a82556389db166ce8c37c9e84a23751b9169d0 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_without_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,28 +31,23 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_without_errorCallback
-//==== LABEL Check if method updateMessages of MessageStorage (SMS) works properly - without errorCallback.
+//==== LABEL Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MOA MAST
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_without_errorCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
+    returnedValue = null, updateSuccess, mutableMessagefilter, constMessagefilter, findMutableMessagesSuccess,
+    findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE", findConstMessagesSuccess, findConstMessagesError,
+    foundConstMessage, consts = "CONST", loadMutableSuccess, loadMutableError, loadConstSuccess, loadConstError,
+    testMessage, testMessageCounter = 0;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        mutableMessage, constMessage,
-        initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
-        plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-
-        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null,
-        updateSuccess, mutableMessagefilter, constMessagefilter,
-        findMutableMessagesSuccess, findMutableMessagesError, foundMutableMessage, mutable = "MUTABLE",
-        findConstMessagesSuccess, findConstMessagesError, foundConstMessage, consts = "CONST",
-        loadMutableSuccess, loadMutableError,
-        loadConstSuccess, loadConstError,
-        testMessage, testMessageCounter = 0;
 
 
 
index 73a3aa2c86e094d7a3fe85fb9b4ca7109e0cc9c2..a7eb9d34e1c3c00b6b47b02ad1278ef84c2a2226 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessageStorage_sms_updateMessages_without_successCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,22 +31,21 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: MessageStorage_sms_updateMessages_without_successCallback
-//==== LABEL Check if method updateMessages of MessageStorage (SMS) works properly - without successCallback.
+//==== LABEL Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_sms_updateMessages_without_successCallback", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), mutableMessage, constMessage,
+    initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
+    plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable",
+    plainBodyToSetForConstMessage = plainBodyToSet + "_const",
+    addDraftSuccess, addDraftError, addDraftSuccessCounter = 0,
+    returnedValue = null;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        mutableMessage, constMessage,
-        initDictForMutableMessage = smsMessageInitDict, initDictForConstMessage = smsMessageInitDict,
-        plainBodyToSetForMutableMessage = plainBodyToSet + "_mutable", plainBodyToSetForConstMessage = plainBodyToSet + "_const",
-
-        addDraftSuccess, addDraftError, addDraftSuccessCounter = 0, returnedValue = null;
 
     addDraftSuccess = t.step_func(function () {
         addDraftSuccessCounter++;
index a0ffcfd84d27ce93efbdf1b6a101b0aa17fabbca..830b5918e69e9f830e683a1564a101c9ccacb9ae 100644 (file)
@@ -28,28 +28,28 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessageStorage_updateMessages</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessageStorage_updateMessages
-//==== LABEL Check the functionupdateMessages in MessageStorage
+//==== LABEL Check if MessageStorage.updateMessages method works correctly wihtout error callback
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:updateMessages M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MOA
 setup({timeout: 90000});
 
-var t = async_test("MessageStorage_updateMessages", {timeout: 90000}),
+var t = async_test(document.title, {timeout: 90000}),
     service, messageSentSuccess, messageSentError, updateSuccess,
     serviceSuccess, serviceError, message;
 
index 59c09f407ecff8224bbe38ac5d6307afe1e180af..feebfc7e2ab52453aff5ab42f576a2e4fbb77d80 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_body_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -68,7 +68,7 @@ test(function () {
         assert_equals(message.body.loaded, false, "'loaded' modified after setting the object to " + invalidArgs[i]);
         assert_equals(message.body.plainBody, samplePlainBody, "'plainBody' modified after setting the object to " + invalidArgs[i]);
     }
-});
+}, document.title);
 
 </script>
 </body>
index 52f4b90ebba50434bfa368924170253ce4fe2d53..9fd418b9390276222a4214cd0b345f4d2889eda2 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Message_sms_constructor</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -31,7 +31,7 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Message_sms_constructor
-//==== LABEL check new tizen.Message(MessageServiceTag type, MessageInit messageInitDict?) works for sms (is supported)
+//==== LABEL Check if Message's constructor works properly (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CONSTRA CONSTRM
@@ -54,7 +54,7 @@ test(function () {
     assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
     assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should be ["+TEST_SMS_RECIPIENT+"] ");
     assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
-}, "Message_sms_constructor");
+}, document.title);
 
 </script>
 </body>
index f2992c2077fd82ddbd42f571d95b05b0608c19fe..671164a66fa2dfd4da49914a34f303342d4d0631 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>Message_sms_constructor_messageInitDict_function</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: Message_sms_constructor_messageInitDict_function
-//==== LABEL check if Message_sms_constructor_messageInitDict_function
+//==== LABEL Check if Message's constructor works properly with function (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CONSTRM
@@ -41,7 +41,7 @@ test(function () {
 
     assert_true(message instanceof tizen.Message, "InstanceOf.");
 
-}, "Message_sms_constructor_messageInitDict_function");
+}, document.title);
 
 </script>
 </body>
index cfadba3b40d3337300e862b25c607746572d20fb..45bc942f45d267b345e6dc321c8d4bf73de979c3 100644 (file)
@@ -23,14 +23,14 @@ Authors:
 <head>
 <title>Message_sms_constructor_messageInitDict_object</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
 <div id="log"></div>
 <script>
 //==== TEST: Message_sms_constructor_messageInitDict_object
-//==== LABEL check if Message_sms_constructor_messageInitDict_object
+//==== LABEL Check if Message's constructor works properly with empty object (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CONSTRM
@@ -41,7 +41,7 @@ test(function () {
 
     assert_true(message instanceof tizen.Message, "InstanceOf.");
 
-}, "Message_sms_constructor_messageInitDict_object");
+}, document.title);
 
 </script>
 </body>
index 82d06b6267806b60610276b911b87858c20a2ccf..209bcad984cdc9e04336fa56084549da6426282c 100644 (file)
@@ -25,7 +25,7 @@ Authors:
 
 <head>
 <title>Message_sms_constructor_minargs</title>
-<script src="../resources/unitcommon.js"></script>
+<script src="support/unitcommon.js"></script>
 <script src="support/messaging_common.js"></script>
 </head>
 
@@ -34,7 +34,7 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: Message_sms_constructor_minargs
-//==== LABEL check if Message_sms_constructor_minargs
+//==== LABEL Check if Message's constructor works properly with minimum arguments (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
@@ -43,7 +43,7 @@ test(function () {
 
     assert_true(message instanceof tizen.Message, "InstanceOf.");
 
-    assert_equals(message.type,"messaging.sms", "message.type should be: 'messaging.sms'");
+    assert_equals(message.type, "messaging.sms", "message.type should be: 'messaging.sms'");
 
     assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
     assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");
@@ -58,7 +58,7 @@ test(function () {
     assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
     assert_type(message.to, "array", "'to' should be an array");
     assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
-}, "Message_sms_constructor_minargs");
+}, document.title);
 
 </script>
 </body>
index ab3ab204a487b4e6e790a11d387d8060f018dd3a..dcb6033cd56e672cd2eb20646d9305b981da7f7b 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_conversationId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -39,7 +39,7 @@ Authors:
 //==== TEST_CRITERIA AE ADV ARO AT
 setup({timeout: 90000});
 
-var t = async_test("Message_sms_conversationId_attribute", {timeout: 90000}), message,
+var t = async_test(document.title, {timeout: 90000}), message,
     serviceError, serviceSuccess, service, sendError, sendSuccess, filterForMessage,
     findMessagesError, findMessagesSuccess, foundMessage;
 t.step(function () {
index f18463f88f20e6232fdc64f1f13145349741b970..f955c1e829050c43f58d7faf378590ddeb755e3a 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Message_sms_extend</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 </head>
 
 <body>
@@ -40,7 +40,7 @@ test(function () {
     var message = new tizen.Message("messaging.sms");
 
     check_extensibility(message);
-}, "Message_sms_extend");
+}, document.title);
 
 </script>
 </body>
index 7ee688b95571f6ccc3b338d63f63b1faadfd4445..997a2fe806817f65e4d6e6750137296cdcfbcdd7 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_folderId_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -39,7 +39,7 @@ Authors:
 //==== TEST_CRITERIA AE ADV ARO AT
 setup({timeout: 90000});
 
-var t = async_test("Message_sms_folderId_attribute", {timeout: 90000}), message,
+var t = async_test(document.title, {timeout: 90000}), message,
     serviceError, serviceSuccess, messageService, sendError,
     sendSuccess;
 t.step(function () {
index 149909c512d46d62f2dad29fb429d36fbbb676b7..e876430dddb0175c4dde5a2d13f1d166471038df 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_from_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,7 +44,7 @@ test(function () {
     assert_true("from" in message, "No 'from' attribute in message");
     assert_equals(message.from, null, "'from' should be null by default");
     check_readonly(message, "from", null, "object", message.from + "dummyValue");
-}, "Message_sms_from_attribute");
+}, document.title);
 
 </script>
 </body>
index d7eed0db404cb8be2c8ac1570c6fb7298492ba6d..1cb9a0c8893056fd1c9ab4dc119f55435288fad1 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_id_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -39,7 +39,7 @@ Authors:
 //==== TEST_CRITERIA AE ADV ARO AT
 setup({timeout: 90000});
 
-var t = async_test("Message_sms_id_attribute", {timeout: 90000}), message,
+var t = async_test(document.title, {timeout: 90000}), message,
     serviceError, serviceSuccess, messageService, sendError,
     sendSuccess;
 t.step(function () {
index 2fc7f17c417a40f9f2a8065348709d8b29cf1888..4c68aa7a6a7ff2bb92ae55c201d88e7b3ac68871 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_inResponseTo_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -44,7 +44,7 @@ test(function () {
     assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
 
     check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");
-}, "Message_sms_inResponseTo_attribute");
+}, document.title);
 
 </script>
 </body>
index 8282318872f3c581eaecb5a9463caef269d2f179..2f1d0c4dde0232aef405f4e4014a573d54fc592f 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_isRead_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -49,7 +49,7 @@ test(function () {
 
     message.isRead = null;
     assert_equals(message.isRead, false, "'isRead' should not accept null as value");
-}, "Message_sms_isRead_attribute");
+}, document.title);
 
 </script>
 </body>
index 6947030820f85cad4ecc6280d1ef194d778521d7..e05ba6f4fae21b58a7fa49ba12b22709bb4e71e3 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_messageStatus_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ test(function () {
     assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");
     check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");
     assert_equals(message.messageStatus, "", "Default value should be \"\"");
-}, "Message_sms_messageStatus_attribute");
+}, document.title);
 
 </script>
 </body>
index 8160b7efbc21870d1e3e33064b55fd6cb85a2ac8..50d26aaef38ea366f7d73c04e2ad544d97c2e909 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_timestamp_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -39,7 +39,7 @@ Authors:
 //==== TEST_CRITERIA AE ADV ARO AT
 setup({timeout: 90000});
 
-var t = async_test("Message_sms_timestamp_attribute", {timeout: 90000}), message, serviceError,
+var t = async_test(document.title, {timeout: 90000}), message, serviceError,
     serviceSuccess, messageService, sendError, sendSuccess, oldDate;
 t.step(function () {
     message = new tizen.Message("messaging.sms");
index 1444d7500c2e3f000039102917398ca90e04054b..37a2cd7724c977509ebd3673534e1b3643d24c11 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_to_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -55,7 +55,7 @@ test(function () {
     assert_array_equals(message.to, [TEST_SMS_RECIPIENT], "'to' should not accept null as value");
 
     check_invalid_array_assignments(message, "to", false);
-}, "Message_sms_to_attribute");
+}, document.title);
 
 </script>
 </body>
index f4673f026e448f22ed9c57066d6e114682c0e24a..ba76efc0a29fcd17817b075ac64d4e4f1652be29 100644 (file)
@@ -24,7 +24,7 @@ Authors:
 <head>
 <title>Message_sms_type_attribute</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -43,7 +43,7 @@ test(function () {
     assert_true("type" in message, "No 'type' attribute in message");
     assert_equals(message.type, "messaging.sms", "'type' should be 'messaging.sms'");
     check_readonly(message, "type", message.type, "string", message.type + "dummyValue");
-}, "Message_sms_type_attribute");
+}, document.title);
 
 </script>
 </body>
index 93f1ac9cb7b26a5dfc6ea6c3594b2fabfe9da5cc..95e7fc03ad18704543ee3b42f883dd3cb0807a55 100644 (file)
@@ -28,44 +28,45 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessagesChangeCallback_messagesadded_withfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessagesChangeCallback_messagesadded_withfilter
-//==== LABEL check the function of messagesadded in MessagesChangeCallback by withfilter
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
-setup({timeout:90000});
+setup({timeout: 90000});
 
-var t = async_test("MessagesChangeCallback_messagesadded_withfilter", {timeout:90000}),
-    serviceError, serviceSuccess, sendSuccess, sendError, filterForTo, msg, messageChangeCB, service, watcherId;
+var t = async_test(document.title, {timeout: 90000}),
+    serviceError, serviceSuccess, sendError, filterForTo, msg, listener, service, listenerId;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    messageChangeCB = {
+    listener = {
         messagesadded: t.step_func(function (msgs) {
-            assert_true(msgs.length > 0, "messages added!");
+            assert_greater_than(msgs.length, 0, "Received empty msgs array");
+
             t.done();
         }),
         messagesupdated: t.step_func(function (msgs) {
@@ -76,23 +77,19 @@ t.step(function () {
         })
     };
 
-    sendSuccess = t.step_func(function () { });
-
     sendError = t.step_func(function (error) {
         assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "No message service found");
+        assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         filterForTo = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        // registers to be notified when the storage changes
-        watcherId = service.messageStorage.addMessagesChangeListener(messageChangeCB, filterForTo);
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, filterForTo);
 
         msg = new tizen.Message("messaging.sms",
-                {plainBody : "test.",to : [ TEST_SMS_RECIPIENT_2 ] });
-        // Send request
-        service.sendMessage(msg, sendSuccess, sendError);
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });
+        service.sendMessage(msg, null, sendError);
     });
 
     serviceError = t.step_func(function (error) {
old mode 100755 (executable)
new mode 100644 (file)
index 18e5d5b..398bfe4
@@ -28,46 +28,46 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessagesChangeCallback_messagesadded_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessagesChangeCallback_messagesadded_withoutfilter
-//==== LABEL check the function of messagesadded in MessagesChangeCallback by withoutfilter
+//==== LABEL Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesadded M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
-setup({timeout:90000});
+setup({timeout: 90000});
 
-var t = async_test("MessagesChangeCallback_messagesadded_withoutfilter", {timeout:90000}),
-    serviceError, serviceSuccess, sendSuccess, sendError, message, messageChangeCB, service, watcherId;
+var t = async_test(document.title, {timeout: 90000}), i,
+    serviceError, serviceSuccess, sendError, message, listener, service, listenerId;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    messageChangeCB = {
+    listener = {
         messagesadded: t.step_func(function (addedMessages) {
             assert_type(addedMessages, "array", "Not an array.");
             assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-            for (var i in addedMessages) {
+            for (i = 0; i < addedMessages.length; i++) {
                 assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
                 if (addedMessages[i].id === message.id) {
                     t.done();
@@ -77,19 +77,17 @@ t.step(function () {
         })
     };
 
-    sendSuccess = t.step_func(function () { });
-
     sendError = t.step_func(function (error) {
         assert_unreached("sendMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     serviceSuccess = t.step_func(function (services) {
-        // registers to be notified when the storage changes
+        assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
-        watcherId = service.messageStorage.addMessagesChangeListener(messageChangeCB);
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);
         message = new tizen.Message("messaging.sms",
-                {plainBody : "test.",to : [ TEST_SMS_RECIPIENT_2 ]});
-        service.sendMessage(message, sendSuccess, sendError);
+                {plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ]});
+        service.sendMessage(message, null, sendError);
     });
 
     serviceError = t.step_func(function (error) {
index d5fcfb30edb9f7b0ed9e104603bdd55fedf41f5e..236380b7c801a81091d70d87ca9a2b0e9508dc66 100644 (file)
@@ -28,48 +28,49 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessagesChangeCallback_messagesupdated_withfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessagesChangeCallback_messagesupdated_withfilter
-//==== LABEL check the function of messagesupdated in MessagesChangeCallback by withfilter
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)
 //==== PRIORITY P2
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CBOA
-setup({timeout:90000});
+setup({timeout: 90000});
 
-var t = async_test("MessagesChangeCallback_messagesupdated_withfilter", {timeout:90000}),
-        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, messageChangeCB, updateSuccess, updateError,
-        messageSuccess, messageError, service, listenerfilter, watcherId;
+var t = async_test(document.title, {timeout: 90000}),
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,
+        findSuccess, findError, service, listenerfilter, listenerId;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    messageChangeCB = {
+    listener = {
         messagesadded: t.step_func(function (messages) {
             assert_unreached("Should not enter messagesadded: " + messages.length);
         }),
         messagesupdated: t.step_func(function (messages) {
-            assert_true(messages.length > 0, "No messages updated!");
+            assert_greater_than(messages.length, 0, "Received empty messages array in messagesupdated");
+
             t.done();
         }),
         messagesremoved: t.step_func(function (messages) {
@@ -77,28 +78,25 @@ t.step(function () {
         })
     };
 
-    updateSuccess = t.step_func(function () { });
-
     updateError = t.step_func(function (error) {
         assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    messageSuccess = t.step_func(function (messages) {
-        assert_true(messages.length > 0, "No messages found.");
+    findSuccess = t.step_func(function (messages) {
+        assert_greater_than(messages.length, 0, "Received empty messages array after findMessages()");
         messages[0].isRead = !messages[0].isRead;
-        service.messageStorage.updateMessages(messages, updateSuccess, updateError);
+        service.messageStorage.updateMessages(messages, null, updateError);
     });
 
-    messageError = t.step_func(function (error) {
+    findError = t.step_func(function (error) {
         assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     sendSuccess = t.step_func(function () {
         listenerfilter = new tizen.AttributeFilter("type", "EXACTLY", "messaging.sms");
-        // registers to be notified when the storage changes
-        watcherId = service.messageStorage.addMessagesChangeListener(messageChangeCB, listenerfilter);
+        listenerId = service.messageStorage.addMessagesChangeListener(listener, listenerfilter);
         findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        service.messageStorage.findMessages(findfilter, messageSuccess, messageError);
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);
     });
 
     sendError = t.step_func(function (error) {
@@ -106,11 +104,11 @@ t.step(function () {
     });
 
     serviceSuccess = t.step_func(function (services) {
-        assert_true(services.length > 0, "No MessageService found");
+        assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         msg = new tizen.Message("messaging.sms",
-                { plainBody : "test.", to : [ TEST_SMS_RECIPIENT_2 ] });
-        // Send message
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2 ] });
+
         service.sendMessage(msg, sendSuccess, sendError);
     });
 
old mode 100755 (executable)
new mode 100644 (file)
index 3b8cf25..fbea28c
@@ -28,47 +28,47 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 Authors:
         Li, Li <li.l.li@intel.com>
         Zoe, Zou <zoex.zou@intel.com>
-        Ma,YueX <yuex.ma@intel.com>
+        Ma, YueX <yuex.ma@intel.com>
 
 -->
 
 <html>
 <head>
 <title>MessagesChangeCallback_messagesupdated_withoutfilter</title>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 <body>
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: MessagesChangeCallback_messagesupdated_withoutfilter
-//==== LABEL check the function of messagesupdated in MessagesChangeCallback by withoutfilter
+//==== LABEL Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessagesChangeCallback:messagesupdated M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBOA
-setup({timeout:90000});
+setup({timeout: 90000});
 
-var t = async_test("MessagesChangeCallback_messagesupdated_withoutfilter", {timeout:90000}),
-        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, messageChangeCB, updateSuccess, updateError,
-        messageSuccess, messageError, service, watcherId;
+var t = async_test(document.title, {timeout: 90000}), i,
+        serviceError, serviceSuccess, sendSuccess, sendError, findfilter, msg, listener, updateError,
+        findSuccess, findError, service, listenerId;
 
 t.step(function () {
 
     add_result_callback(function (res) {
         try {
-            service.messageStorage.removeChangeListener(watcherId);
+            service.messageStorage.removeChangeListener(listenerId);
         } catch (err) {
             // do nothing in case removeChangeListener throw an exception
         }
     });
 
-    messageChangeCB = {
+    listener = {
         messagesupdated: t.step_func(function (updatedMessages) {
             assert_type(updatedMessages, "array", "Not an array.");
             assert_greater_than(updatedMessages.length, 0, "Received empty messages array");
-            for (var i in updatedMessages) {
+            for (i = 0; i < updatedMessages.length; i++) {
                 assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
                 if (updatedMessages[i].id === msg.id) {
                     t.done();
@@ -78,26 +78,24 @@ t.step(function () {
         })
     };
 
-    updateSuccess = t.step_func(function () { });
-
     updateError = t.step_func(function (error) {
         assert_unreached("updateMessages() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    messageSuccess = t.step_func(function (messages) {
+    findSuccess = t.step_func(function (messages) {
         assert_greater_than(messages.length, 0, "No messages found.");
         messages[0].isRead = !messages[0].isRead;
-        service.messageStorage.updateMessages(messages, updateSuccess, updateError);
+        service.messageStorage.updateMessages(messages, null, updateError);
     });
 
-    messageError = t.step_func(function (error) {
+    findError = t.step_func(function (error) {
         assert_unreached("findMessages() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
     sendSuccess = t.step_func(function () {
-        watcherId = service.messageStorage.addMessagesChangeListener(messageChangeCB);
+        listenerId = service.messageStorage.addMessagesChangeListener(listener);
         findfilter = new tizen.AttributeFilter("to", "CONTAINS", TEST_SMS_RECIPIENT_2);
-        service.messageStorage.findMessages(findfilter, messageSuccess, messageError);
+        service.messageStorage.findMessages(findfilter, findSuccess, findError);
     });
 
     sendError = t.step_func(function (error) {
@@ -108,8 +106,8 @@ t.step(function () {
         assert_greater_than(services.length, 0, "Received empty services array");
         service = services[0];
         msg = new tizen.Message("messaging.sms",
-                { plainBody : "test.", to : [ TEST_SMS_RECIPIENT_2] });
-        // Send message
+                { plainBody: "test.", to: [ TEST_SMS_RECIPIENT_2] });
+
         service.sendMessage(msg, sendSuccess, sendError);
     });
 
index 7ba9edd719cd648eb2a39d794b9c69ab375fa9b2..8739b315fab87970227978d45da28ee47cdd02a7 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesadded_with_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,15 +37,13 @@ Authors:
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessagesChangeCallback_sms_messagesadded_with_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
+    matchMessage, mismatchMessage, changeCallback, addDraftError, loadSuccess, loadError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,
-        endText = "ending", currentDate = new Date(),
-        matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-        mismatchPlainBodyToSet = currentDate.getTime().toString(),
-        matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
-        matchMessage, mismatchMessage,
-        changeCallback, addDraftError, loadSuccess, loadError;
 
     add_result_callback(function () {
         try {
old mode 100755 (executable)
new mode 100644 (file)
index ca2379b..174d005
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesadded_without_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,12 +37,10 @@ Authors:
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessagesChangeCallback_sms_messagesadded_without_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,
+    changeCallback, initDict = smsMessageInitDict, addDraftError, loadSuccess, loadError, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        message, changeCallback, initDict = smsMessageInitDict, addDraftError,
-        loadSuccess, loadError;
 
     add_result_callback(function () {
         try {
@@ -66,7 +64,7 @@ t.step(function () {
         messagesadded: t.step_func(function (addedMessages) {
             assert_type(addedMessages, "array", "Not an array.");
             assert_greater_than(addedMessages.length, 0, "Received empty messages array");
-            for (var i in addedMessages) {
+            for (i = 0; i < addedMessages.length; i++) {
                 assert_true(addedMessages[i] instanceof tizen.Message, "Not a message.");
                 if (addedMessages[i].id === message.id) {
                     messageService.loadMessageBody(addedMessages[i], loadSuccess, loadError);
index f2dd76abeceef1603b82b9e24f841ea65b5453ab..69950dfebb63efbb8cf3d9d64648d4fd0a4aa766 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesremoved_with_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -38,7 +38,7 @@ Authors:
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
 
-var t = async_test("MessagesChangeCallback_sms_messagesremoved_with_filter", {timeout:90000}),
+var t = async_test(document.title, {timeout: 90000}),
     serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,
     endText = "ending", currentDate = new Date(),
     matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
old mode 100755 (executable)
new mode 100644 (file)
index 26a4140..68e607d
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesremoved_without_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,12 +37,10 @@ Authors:
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessagesChangeCallback_sms_messagesremoved_without_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message,
+    changeCallback, initDict = smsMessageInitDict, addDraftSuccess, addDraftError, removeError, i;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        message, changeCallback, initDict = smsMessageInitDict, addDraftSuccess, addDraftError,
-        removeError;
 
     add_result_callback(function () {
         try {
@@ -57,7 +55,7 @@ t.step(function () {
             assert_type(removedMessages, "array", "Not an array.");
             assert_greater_than(removedMessages.length, 0, "Received empty messages array");
 
-            for (var i in removedMessages) {
+            for (i = 0; i < removedMessages.length; i++) {
                 assert_true(removedMessages[i] instanceof tizen.Message, "Not a message.");
                 if (removedMessages[i].id === message.id) {
                     t.done();
index 8198423815f275da740bc6a5ab4ff620bd38c178..f04395cf7df0a3fe7c54f63a7b1cb8b948fde472 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesupdated_with_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,16 +37,14 @@ Authors:
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessagesChangeCallback_sms_messagesupdated_with_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, filter, endText = "ending", currentDate = new Date(),
+    matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
+    mismatchPlainBodyToSet = currentDate.getTime().toString(),
+    matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
+    matchMessage, mismatchMessage, changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0,
+    updateError, loadSuccess, loadError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier, filter,
-        endText = "ending", currentDate = new Date(),
-        matchPlainBodyToSet = currentDate.getTime().toString() + endText.toUpperCase(),
-        mismatchPlainBodyToSet = currentDate.getTime().toString(),
-        matchInitDict = smsMessageInitDict, mismatchInitDict = smsMessageInitDict,
-        matchMessage, mismatchMessage,
-        changeCallback, addDraftError, addDraftSuccess, addDraftSuccessCounter = 0, updateError,
-        loadSuccess, loadError;
 
     add_result_callback(function () {
         try {
old mode 100755 (executable)
new mode 100644 (file)
index 176e1b9..c84b9a9
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>MessagesChangeCallback_sms_messagesupdated_without_filter</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -37,12 +37,10 @@ Authors:
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA CBT CBOA
 setup({timeout: 90000});
-var t = async_test("MessagesChangeCallback_sms_messagesupdated_without_filter", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+    subscriptionIdentifier, currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(), message, i,
+    changeCallback, initDict = smsMessageInitDict, addDraftSuccess, addDraftError, updateError, loadSuccess, loadError;
 t.step(function () {
-    var serviceSuccess, serviceError, messageService, messageStorage, subscriptionIdentifier,
-        currentDate = new Date(), plainBodyToSet = currentDate.getTime().toString(),
-        message, changeCallback, initDict = smsMessageInitDict, addDraftSuccess, addDraftError,
-        updateError, loadSuccess, loadError;
 
     add_result_callback(function () {
         try {
@@ -67,7 +65,7 @@ t.step(function () {
             assert_type(updatedMessages, "array", "Not an array.");
             assert_greater_than(updatedMessages.length, 0, "Received empty messages array");
 
-            for (var i in updatedMessages) {
+            for (i = 0; i < updatedMessages.length; i++) {
                 assert_true(updatedMessages[i] instanceof tizen.Message, "Not a message.");
                 if (updatedMessages[i].id === message.id) {
                     messageService.loadMessageBody(updatedMessages[i], loadSuccess, loadError);
@@ -104,6 +102,7 @@ t.step(function () {
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
+
     tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, serviceError);
 });
 
index a72294f20abb70b3136612a35724bd62c441fe66..f0f3a5b95491c92039ec8826b00a6e8f67a9dff3 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices
-//==== LABEL Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback) for sms
+//==== LABEL Check if MessageService.getMessageServices method works properly (sms)
 //==== ONLOAD_DELAY 90
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MR MMINA
 setup({timeout: 90000});
 
-var t = async_test("Messaging_sms_getMessageServices", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, i, returnedValue = null;
 t.step(function () {
-    var serviceSuccess, i, returnedValue = null;
 
     serviceSuccess = t.step_func(function (services) {
         assert_equals(returnedValue, undefined, "Incorrect returned value.");
index 5cceab4b9421f9c7d7a1700a0990bfdde4719620..7623845a36a967c4c476addda654d4fd33eab81f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices_errorCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices_errorCallback_TypeMismatch
-//==== LABEL Check getMessageServices argument errorCallback conversions exception for sms
+//==== LABEL Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("Messaging_sms_getMessageServices_errorCallback_TypeMismatch", {timeout:90000}), conversionTable;
+var t = async_test(document.title, {timeout: 90000}), conversionTable, exceptionName, serviceSuccess, i, incorrectCallback;
 t.step(function () {
-    var exceptionName, serviceSuccess, i, incorrectCallback;
 
     serviceSuccess = t.step_func(function () {
         assert_unreached("Shouldn't be here");
@@ -51,7 +50,7 @@ t.step(function () {
         incorrectCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);
         }, exceptionName + " should be thrown - given incorrect error callback - " + incorrectCallback);
index 138926b93a1de7d7db2d0bfebf198d2b762eaa5e..4b102e42b8fa251c9e42134d5fe2884e6f182a39 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices_errorCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,16 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices_errorCallback_invalid_cb
-//==== LABEL Check if getMessageServices (sms) throws exception when errorCallback is invalid
+//==== LABEL Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
-var t = async_test("Messaging_sms_getMessageServices_errorCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceSuccess,
+    incorrectCallback;
 t.step(function () {
-    var exceptionName = "TypeMismatchError", serviceSuccess, incorrectCallback;
 
     incorrectCallback = {
         onerror: t.step_func(function () {
@@ -52,7 +52,7 @@ t.step(function () {
         assert_unreached("Shouldn't be here");
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.messaging.getMessageServices("messaging.sms", serviceSuccess, incorrectCallback);
         }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index 04197ed7dd78572857f57f8cac3dd527212ba3b3..150cb2d0ee84b7f748b8d93e2fd7d5c92c31fda1 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices_successCallback_TypeMismatch</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices_successCallback_TypeMismatch
-//==== LABEL Check getMessageServices argument successCallback conversions exception for sms
+//==== LABEL Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MC
 setup({timeout: 90000});
-var t = async_test("Messaging_sms_getMessageServices_successCallback_TypeMismatch", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), exceptionName, serviceError, i, incorrectCallback, conversionTable;
 t.step(function () {
-    var exceptionName, serviceError, i, incorrectCallback, conversionTable;
 
     serviceError = t.step_func(function (error) {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
@@ -51,7 +50,7 @@ t.step(function () {
         incorrectCallback = conversionTable[i][0];
         exceptionName = conversionTable[i][1];
 
-        assert_throws({name : exceptionName},
+        assert_throws({name: exceptionName},
         function () {
             tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);
         }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index ac6caedb658cd0692526d2b48282caeb5eab6efe..13c78b66972a155f106789090c2e5ec1220f8569 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices_successCallback_invalid_cb</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices_successCallback_invalid_cb
-//==== LABEL Check if getMessageServices (sms) throws exception when successCallback is invalid
+//==== LABEL Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== ONLOAD_DELAY 90
 //==== TEST_CRITERIA MTCB
 setup({timeout: 90000});
-var t = async_test("Messaging_sms_getMessageServices_successCallback_invalid_cb", {timeout:90000});
+var t = async_test(document.title, {timeout: 90000}), exceptionName = "TypeMismatchError", serviceError, incorrectCallback;
 t.step(function () {
-    var exceptionName = "TypeMismatchError", serviceError, incorrectCallback;
 
     incorrectCallback = {
         onsuccess: t.step_func(function () {
@@ -52,7 +51,7 @@ t.step(function () {
         assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    assert_throws({name : exceptionName},
+    assert_throws({name: exceptionName},
         function () {
             tizen.messaging.getMessageServices("messaging.sms", incorrectCallback, serviceError);
         }, exceptionName + " should be thrown - given incorrect success callback - " + incorrectCallback);
index 12f29e9d51456c95b1d4e963b514e892dca9d7ca..4c47cf6090e9b19e2e2de93f77b15f67e440747f 100644 (file)
@@ -23,7 +23,7 @@ Authors:
 <head>
 <title>Messaging_sms_getMessageServices_with_errorCallback</title>
 <meta charset="utf-8"/>
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/unitcommon.js"></script>
 <script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
@@ -31,16 +31,15 @@ Authors:
 <div id="log"></div>
 <script>
 //==== TEST: Messaging_sms_getMessageServices_with_errorCallback
-//==== LABEL Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback, valid_errorCallback) for sms
+//==== LABEL Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)
 //==== SPEC Tizen Web API:Communication:Messaging:Messaging:getMessageServices M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA MR MOA
 //==== ONLOAD_DELAY 90
 setup({timeout: 90000});
 
-var t = async_test("Messaging_sms_getMessageServices_with_errorCallback", {timeout: 90000});
+var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, i, returnedValue = null;
 t.step(function () {
-    var serviceSuccess, serviceError, i, returnedValue = null;
 
     serviceSuccess = t.step_func(function (services) {
         assert_equals(returnedValue, undefined, "Incorrect returned value.");
diff --git a/tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js b/tct-messaging-sms-tizen-tests/messaging/support/unitcommon.js
new file mode 100644 (file)
index 0000000..9f972c1
--- /dev/null
@@ -0,0 +1,559 @@
+/*
+
+Copyright (c) 2013 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:
+
+ */
+
+
+MIN_BYTE = -128;
+MAX_BYTE = 127;
+MIN_OCTET = 0;
+MAX_OCTET = 255;
+MIN_SHORT = -32768;
+MAX_SHORT = 32767;
+MIN_UNSIGNED_SHORT = 0;
+MAX_UNSIGNED_SHORT = 65535;
+MIN_LONG = -2147483648;
+MAX_LONG = 2147483647;
+MIN_UNSIGNED_LONG = 0;
+MAX_UNSIGNED_LONG = 4294967295;
+MIN_LONG_LONG = -9223372036854775808;
+MAX_LONG_LONG = 9223372036854775807;
+MIN_UNSIGNED_LONG_LONG = 0;
+MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
+
+TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
+NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
+INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
+IO_EXCEPTION = {name: 'IOError'};
+SECURITY_EXCEPTION = {name: 'SecurityError'};
+
+
+(function () {
+   var head_src = document.head.innerHTML;
+   if (head_src.search(/\/testharness.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
+   }
+   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
+       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
+   }
+})();
+
+var _registered_types = {};
+
+function _resolve_registered_type(type) {
+    while (type in _registered_types) {
+        type = _registered_types[type];
+    }
+    return type;
+}
+
+/**
+ * Method checks extra argument for none argument method.
+ * The only check is that method will not throw an exception.
+ * Example usage:
+ * checkExtraArgument(tizen.notification, "removeAll");
+ *
+ * @param object object
+ * @param methodName string - name of the method
+ */
+function checkExtraArgument(object, methodName) {
+    var extraArgument = [
+        null,
+        undefined,
+        "Tizen",
+        1,
+        false,
+        ["one", "two"],
+        {argument: 1},
+        function () {}
+    ], i;
+
+    for (i = 0; i < extraArgument.length; i++) {
+        object[methodName](extraArgument[i]);
+    }
+}
+
+/**
+ * Method to validate conversion.
+ * Example usage:
+ *   conversionTable = getTypeConversionExceptions("functionObject", true);
+ *   for(i = 0; i < conversionTable.length; i++) {
+ *       errorCallback = conversionTable[i][0];
+ *       exceptionName = conversionTable[i][1];
+ *
+ *       assert_throws({name : exceptionName},
+ *       function () {
+ *           tizen.systemsetting.setProperty("HOME_SCREEN",
+ *               propertyValue, successCallback, errorCallback);
+ *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
+ *   }
+ *
+ * @param conversionType
+ * @param isOptional
+ * @returns table of tables which contain value (index 0) and exceptionName (index 1)
+ *
+ */
+function getTypeConversionExceptions(conversionType, isOptional) {
+    var exceptionName = "TypeMismatchError",
+        conversionTable;
+    switch (conversionType) {
+        case "enum":
+            conversionTable = [
+                [undefined, exceptionName],
+                [null, exceptionName],
+                [0, exceptionName],
+                [true, exceptionName],
+                ["dummyInvalidEnumValue", exceptionName],
+                [{ }, exceptionName]
+            ];
+            break;
+        case "double":
+            conversionTable = [
+                [undefined, exceptionName],
+                [NaN, exceptionName],
+                [Number.POSITIVE_INFINITY, exceptionName],
+                [Number.NEGATIVE_INFINITY, exceptionName],
+                ["TIZEN", exceptionName],
+                [{ name : "TIZEN" }, exceptionName],
+                [function () { }, exceptionName]
+            ];
+            break;
+        case "object":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "functionObject":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [[], exceptionName],
+                [{ }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "array":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [{ }, exceptionName],
+                [function () { }, exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        case "dictionary":
+            conversionTable = [
+                [true, exceptionName],
+                [false, exceptionName],
+                [NaN, exceptionName],
+                [0, exceptionName],
+                ["", exceptionName],
+                ["TIZEN", exceptionName],
+                [undefined, exceptionName]
+            ];
+            if (!isOptional) {
+                conversionTable.push([null, exceptionName]);
+            }
+            break;
+        default:
+            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
+    };
+
+    return conversionTable;
+}
+
+
+function assert_type(obj, type, description) {
+    var org_type = type, prop_name, prop_type, prop_value;
+
+    type = _resolve_registered_type(type);
+
+    if (typeof (type) === 'string') {
+        type = type.toLowerCase();
+        switch (type) {
+            case 'object':
+            case 'string':
+            case 'number':
+            case 'function':
+            case 'boolean':
+            case 'undefined':
+            case 'xml':
+                assert_equals(typeof (obj), type, description);
+                break;
+            case 'null':
+                assert_true(obj === null, description);
+                break;
+            case 'array':
+                assert_true(Array.isArray(obj), description);
+                break;
+            case 'date':
+                assert_true(obj instanceof Date, description);
+                break;
+            case 'byte':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'octet':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned short':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            case 'long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
+                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
+                break;
+            case 'unsigned long long':
+                assert_equals(typeof (obj), 'number', description);
+                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
+                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
+                assert_equals(obj % 1, 0, description + " - value is not an integer.");
+                break;
+            default:
+                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
+        }
+    } else if (typeof (type) === 'function') {
+        assert_true(obj instanceof type, description);
+    } else if (typeof (type) === 'object') {
+        for (prop_name in type) {
+            prop_type = type[prop_name];
+            if (prop_type === 'function') {
+                assert_inherits(obj, prop_name);
+                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
+            } else {
+                assert_own_property(obj, prop_name);
+            }
+        }
+    } else {
+        assert_unreached('Fix your test. Wrong type ' + org_type);
+    }
+}
+
+function register_type(alias, type_spec) {
+    _registered_types[alias] = type_spec;
+}
+
+/**
+ * Method to check if attribute is const.
+ * Example usage:
+ * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
+ *
+ * @param obj  object to test which  has const attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    var tmp;
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        tmp = obj[attributeName];
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if attribute is readonly.
+ * Example usage:
+ * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
+ *
+ * @param obj  object to test which  has readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
+}
+
+/**
+ * Method to check if attribute can be set to null.
+ * Example usage:
+ * check_not_nullable(syncInfo, "mode");
+ *
+ * @param obj object to test which has not nullable attribute
+ * @param attributeName attribute name.
+ */
+function check_not_nullable(obj, attributeName)
+{   var old_value = obj[attributeName];
+    obj[attributeName] = null;
+    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
+    obj[attributeName] = old_value;
+}
+
+/**
+ * Method to check NoInterfaceObject
+ * Example usage:
+ * check_no_interface_object("BluetoothAdapter")
+ *
+ * @param interfaceName interface name
+ */
+function check_no_interface_object(interfaceName) {
+    assert_throws({name: "TypeError"}, function () {
+        tizen[interfaceName]();
+    },"Wrong call as a function");
+    assert_throws({name: "TypeError"}, function () {
+        new tizen[interfaceName]();
+    },"Wrong call as a new function");
+    assert_throws({name: "TypeError"}, function () {
+        ({}) instanceof tizen[interfaceName];
+    },"instanceof exception");
+    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
+}
+
+
+/**
+ * Method to check Constructors
+ * Example usage:
+ * check_constructor("BluetoothAdapter")
+ *
+ * @param constructorName constructor name
+ */
+
+function check_constructor(constructorName) {
+    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
+    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
+    assert_throws({
+        name: "TypeError"
+    }, function () {
+        tizen[constructorName]();
+    }, "Constructor called as function.");
+}
+
+/**
+ * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
+ * That method also checks if given method exists in a given object.
+ * Example usage:
+ * check_method_exists(tizen.notification, "get");
+ *
+ * @param obj object with method
+ * @param methodName name of the method to check.
+ */
+function check_method_exists(obj, methodName) {
+    assert_type(obj[methodName], 'function', "Method does not exist.");
+}
+
+/**
+ * Method to check extensibility of given object.
+ * Method checks if new attribute and method can be added.
+ * Example usage:
+ * check_extensibility(tizen.notification);
+ *
+ * @param obj object to check
+ */
+function check_extensibility(obj) {
+    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
+    obj.newDummyMethod = function() {
+        return dummyMethodResult;
+    }
+    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
+
+    obj.newDummyAttribute = dummyAttribute;
+    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
+}
+
+/**
+ * Method to check if attribute can be modify.
+ * Example usage:
+ * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
+ *
+ * @param obj  object to test which has not readonly attribute
+ * @param attributeName attribute name.
+ * @param expectedValue expected value of provided attribute name
+ * @param expectedType expected type of provided attribute name
+ * @param valueToAssign value to assign in order to check if attribute value can be modified
+ */
+function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
+    if (expectedValue === valueToAssign) {
+        assert_unreached("Fix your test. The same values given for "  + attributeName +
+            " in 'value' and 'valueToSet' arguments.");
+    }
+    if (typeof (attributeName) === "string") {
+        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
+        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
+        if (typeof (expectedType) !== "undefined") {
+            if (expectedValue === null) {
+                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
+            } else {
+                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
+            }
+        } else {
+            assert_unreached("Fix your test. Wrong type " + expectedType);
+        }
+        obj[attributeName] = valueToAssign;
+        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
+    } else {
+        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
+    }
+}
+
+/**
+ * Method to check if whole array can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_array_assignments(message, "to", false);
+ *
+ * @param obj object which has the array as its property
+ * @param array name of the array to check
+ * @param isNullable indicates if the array can be null
+ */
+function check_invalid_array_assignments(obj, array, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
+        val = obj[array], i;
+
+    if (!isNullable) {
+        obj[array] = null;
+        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
+        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
+        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        obj[array] = args[i];
+        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
+        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
+    }
+}
+
+/**
+ * Method to check if an object can be overwritten with an invalid value.
+ * Sample usage:
+ * check_invalid_object_assignments(message, "body", false);
+ *
+ * @param parentObj object which has the 'obj' object as its property
+ * @param obj name of the object to check
+ * @param isNullable indicates if the object can be null
+ */
+function check_invalid_obj_assignments(parentObj, obj, isNullable) {
+    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
+        val = parentObj[obj], i;
+
+    if (!isNullable) {
+        parentObj[obj] = null;
+        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
+    }
+
+    for (i = 0 ; i < args.length ; i++) {
+        parentObj[obj] = args[i];
+        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
+    }
+}
+
+/**
+ * Method to validate conversion for listeners.
+ * Example usage:
+ * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
+ * for(i = 0; i < incorrectListeners.length; i++) {
+ *     packageInformationEventCallback  = incorrectListeners[i][0];
+ *     exceptionName = incorrectListeners[i][1];
+ *     assert_throws({name : exceptionName},
+ *        function () {
+ *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
+ *         }, exceptionName + " should be thrown - given incorrect successCallback.");
+ * }
+ *
+ *
+ * @param callbackNames Array with names
+ * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
+ *
+ */
+function getListenerConversionExceptions(callbackNames) {
+    var result = [], conversionTable, i, j, listenerName;
+    conversionTable = getTypeConversionExceptions("functionObject", false);
+
+    for (i = 0; i < callbackNames.length; i++) {
+        for (j = 0; j < conversionTable.length; j++) {
+            listenerName = {};
+            listenerName[callbackNames[i]] = conversionTable[j][0];
+            result.push([listenerName, conversionTable[j][1]]);
+        }
+    }
+
+    return result;
+}
diff --git a/tct-messaging-sms-tizen-tests/resources/unitcommon.js b/tct-messaging-sms-tizen-tests/resources/unitcommon.js
deleted file mode 100644 (file)
index 9f972c1..0000000
+++ /dev/null
@@ -1,559 +0,0 @@
-/*
-
-Copyright (c) 2013 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:
-
- */
-
-
-MIN_BYTE = -128;
-MAX_BYTE = 127;
-MIN_OCTET = 0;
-MAX_OCTET = 255;
-MIN_SHORT = -32768;
-MAX_SHORT = 32767;
-MIN_UNSIGNED_SHORT = 0;
-MAX_UNSIGNED_SHORT = 65535;
-MIN_LONG = -2147483648;
-MAX_LONG = 2147483647;
-MIN_UNSIGNED_LONG = 0;
-MAX_UNSIGNED_LONG = 4294967295;
-MIN_LONG_LONG = -9223372036854775808;
-MAX_LONG_LONG = 9223372036854775807;
-MIN_UNSIGNED_LONG_LONG = 0;
-MAX_UNSIGNED_LONG_LONG = 18446744073709551615;
-
-TYPE_MISMATCH_EXCEPTION = {name: 'TypeMismatchError'};
-NOT_FOUND_EXCEPTION = {name: 'NotFoundError'};
-INVALID_VALUES_EXCEPTION = {name: 'InvalidValuesError'};
-IO_EXCEPTION = {name: 'IOError'};
-SECURITY_EXCEPTION = {name: 'SecurityError'};
-
-
-(function () {
-   var head_src = document.head.innerHTML;
-   if (head_src.search(/\/testharness.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharness.js"></script>\n');
-   }
-   if (head_src.search(/\/testharnessreport.js\W/) === -1) {
-       document.write('<script language="javascript" src="../resources/testharnessreport.js"></script>\n');
-   }
-})();
-
-var _registered_types = {};
-
-function _resolve_registered_type(type) {
-    while (type in _registered_types) {
-        type = _registered_types[type];
-    }
-    return type;
-}
-
-/**
- * Method checks extra argument for none argument method.
- * The only check is that method will not throw an exception.
- * Example usage:
- * checkExtraArgument(tizen.notification, "removeAll");
- *
- * @param object object
- * @param methodName string - name of the method
- */
-function checkExtraArgument(object, methodName) {
-    var extraArgument = [
-        null,
-        undefined,
-        "Tizen",
-        1,
-        false,
-        ["one", "two"],
-        {argument: 1},
-        function () {}
-    ], i;
-
-    for (i = 0; i < extraArgument.length; i++) {
-        object[methodName](extraArgument[i]);
-    }
-}
-
-/**
- * Method to validate conversion.
- * Example usage:
- *   conversionTable = getTypeConversionExceptions("functionObject", true);
- *   for(i = 0; i < conversionTable.length; i++) {
- *       errorCallback = conversionTable[i][0];
- *       exceptionName = conversionTable[i][1];
- *
- *       assert_throws({name : exceptionName},
- *       function () {
- *           tizen.systemsetting.setProperty("HOME_SCREEN",
- *               propertyValue, successCallback, errorCallback);
- *       }, exceptionName + " should be thrown - given incorrect errorCallback.");
- *   }
- *
- * @param conversionType
- * @param isOptional
- * @returns table of tables which contain value (index 0) and exceptionName (index 1)
- *
- */
-function getTypeConversionExceptions(conversionType, isOptional) {
-    var exceptionName = "TypeMismatchError",
-        conversionTable;
-    switch (conversionType) {
-        case "enum":
-            conversionTable = [
-                [undefined, exceptionName],
-                [null, exceptionName],
-                [0, exceptionName],
-                [true, exceptionName],
-                ["dummyInvalidEnumValue", exceptionName],
-                [{ }, exceptionName]
-            ];
-            break;
-        case "double":
-            conversionTable = [
-                [undefined, exceptionName],
-                [NaN, exceptionName],
-                [Number.POSITIVE_INFINITY, exceptionName],
-                [Number.NEGATIVE_INFINITY, exceptionName],
-                ["TIZEN", exceptionName],
-                [{ name : "TIZEN" }, exceptionName],
-                [function () { }, exceptionName]
-            ];
-            break;
-        case "object":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "functionObject":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [[], exceptionName],
-                [{ }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "array":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [{ }, exceptionName],
-                [function () { }, exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        case "dictionary":
-            conversionTable = [
-                [true, exceptionName],
-                [false, exceptionName],
-                [NaN, exceptionName],
-                [0, exceptionName],
-                ["", exceptionName],
-                ["TIZEN", exceptionName],
-                [undefined, exceptionName]
-            ];
-            if (!isOptional) {
-                conversionTable.push([null, exceptionName]);
-            }
-            break;
-        default:
-            assert_unreached("Fix your test. Wrong conversionType '" + conversionType + "'.");
-    };
-
-    return conversionTable;
-}
-
-
-function assert_type(obj, type, description) {
-    var org_type = type, prop_name, prop_type, prop_value;
-
-    type = _resolve_registered_type(type);
-
-    if (typeof (type) === 'string') {
-        type = type.toLowerCase();
-        switch (type) {
-            case 'object':
-            case 'string':
-            case 'number':
-            case 'function':
-            case 'boolean':
-            case 'undefined':
-            case 'xml':
-                assert_equals(typeof (obj), type, description);
-                break;
-            case 'null':
-                assert_true(obj === null, description);
-                break;
-            case 'array':
-                assert_true(Array.isArray(obj), description);
-                break;
-            case 'date':
-                assert_true(obj instanceof Date, description);
-                break;
-            case 'byte':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_BYTE, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_BYTE, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'octet':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_OCTET, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_OCTET, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_SHORT, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned short':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_SHORT, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_SHORT, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            case 'long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_LONG_LONG, description + " - value too high.");
-                assert_equals(Math.abs(obj % 1), 0, description + " - value is not an integer.");
-                break;
-            case 'unsigned long long':
-                assert_equals(typeof (obj), 'number', description);
-                assert_greater_than_equal(obj, MIN_UNSIGNED_LONG_LONG, description + " - value too low.");
-                assert_less_than_equal(obj, MAX_UNSIGNED_LONG_LONG, description + " - value too high.");
-                assert_equals(obj % 1, 0, description + " - value is not an integer.");
-                break;
-            default:
-                assert_unreached('Fix your test. Wrong type \'' + org_type + '\'');
-        }
-    } else if (typeof (type) === 'function') {
-        assert_true(obj instanceof type, description);
-    } else if (typeof (type) === 'object') {
-        for (prop_name in type) {
-            prop_type = type[prop_name];
-            if (prop_type === 'function') {
-                assert_inherits(obj, prop_name);
-                assert_equals(typeof obj[prop_name], prop_type, 'Object should have method ' + prop_name);
-            } else {
-                assert_own_property(obj, prop_name);
-            }
-        }
-    } else {
-        assert_unreached('Fix your test. Wrong type ' + org_type);
-    }
-}
-
-function register_type(alias, type_spec) {
-    _registered_types[alias] = type_spec;
-}
-
-/**
- * Method to check if attribute is const.
- * Example usage:
- * check_const(tizen.bluetooth.deviceMinor, 'TOY_DOLL', 0x03, 'number', 0x29B);
- *
- * @param obj  object to test which  has const attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_const(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    var tmp;
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        tmp = obj[attributeName];
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], tmp, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if attribute is readonly.
- * Example usage:
- * check_readonly(statusNotification, "postedTime", null, 'object', new Date());
- *
- * @param obj  object to test which  has readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_readonly(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    check_const(obj, attributeName, expectedValue, expectedType, valueToAssign);
-}
-
-/**
- * Method to check if attribute can be set to null.
- * Example usage:
- * check_not_nullable(syncInfo, "mode");
- *
- * @param obj object to test which has not nullable attribute
- * @param attributeName attribute name.
- */
-function check_not_nullable(obj, attributeName)
-{   var old_value = obj[attributeName];
-    obj[attributeName] = null;
-    assert_not_equals(obj[attributeName], null, "Attribute " + attributeName + " can be set to null.");
-    obj[attributeName] = old_value;
-}
-
-/**
- * Method to check NoInterfaceObject
- * Example usage:
- * check_no_interface_object("BluetoothAdapter")
- *
- * @param interfaceName interface name
- */
-function check_no_interface_object(interfaceName) {
-    assert_throws({name: "TypeError"}, function () {
-        tizen[interfaceName]();
-    },"Wrong call as a function");
-    assert_throws({name: "TypeError"}, function () {
-        new tizen[interfaceName]();
-    },"Wrong call as a new function");
-    assert_throws({name: "TypeError"}, function () {
-        ({}) instanceof tizen[interfaceName];
-    },"instanceof exception");
-    assert_equals(tizen[interfaceName], undefined, interfaceName + " is not undefined.");
-}
-
-
-/**
- * Method to check Constructors
- * Example usage:
- * check_constructor("BluetoothAdapter")
- *
- * @param constructorName constructor name
- */
-
-function check_constructor(constructorName) {
-    assert_true(constructorName in tizen, "No " + constructorName + " in tizen.");
-    assert_false({} instanceof tizen[constructorName],"Custom object is not instance of " + constructorName);
-    assert_throws({
-        name: "TypeError"
-    }, function () {
-        tizen[constructorName]();
-    }, "Constructor called as function.");
-}
-
-/**
- * Method to check if given method can be overridden in a given object - (TEMPORARY REMOVED).
- * That method also checks if given method exists in a given object.
- * Example usage:
- * check_method_exists(tizen.notification, "get");
- *
- * @param obj object with method
- * @param methodName name of the method to check.
- */
-function check_method_exists(obj, methodName) {
-    assert_type(obj[methodName], 'function', "Method does not exist.");
-}
-
-/**
- * Method to check extensibility of given object.
- * Method checks if new attribute and method can be added.
- * Example usage:
- * check_extensibility(tizen.notification);
- *
- * @param obj object to check
- */
-function check_extensibility(obj) {
-    var dummyAttribute = "dummyAttributeValue", dummyMethodResult = "dummyMethodResultValue";
-    obj.newDummyMethod = function() {
-        return dummyMethodResult;
-    }
-    assert_equals(obj.newDummyMethod(), dummyMethodResult, "Incorrect result from added method.");
-
-    obj.newDummyAttribute = dummyAttribute;
-    assert_equals(obj.newDummyAttribute, dummyAttribute, "Incorrect result from added attribute.");
-}
-
-/**
- * Method to check if attribute can be modify.
- * Example usage:
- * check_attr(downloadRequest, "fileName", default_val, "string", "file_name.html");
- *
- * @param obj  object to test which has not readonly attribute
- * @param attributeName attribute name.
- * @param expectedValue expected value of provided attribute name
- * @param expectedType expected type of provided attribute name
- * @param valueToAssign value to assign in order to check if attribute value can be modified
- */
-function check_attribute(obj, attributeName, expectedValue, expectedType, valueToAssign) {
-    if (expectedValue === valueToAssign) {
-        assert_unreached("Fix your test. The same values given for "  + attributeName +
-            " in 'value' and 'valueToSet' arguments.");
-    }
-    if (typeof (attributeName) === "string") {
-        assert_true(attributeName in obj, "Name " + attributeName + " doesn't exist in provided object.");
-        assert_equals(obj[attributeName], expectedValue, "Value of " + attributeName + " is diffrent.");
-        if (typeof (expectedType) !== "undefined") {
-            if (expectedValue === null) {
-                assert_type(obj[attributeName], "object", "Type of " + attributeName + " is different.");
-            } else {
-                assert_type(obj[attributeName], expectedType, "Type of " + attributeName + " is different.");
-            }
-        } else {
-            assert_unreached("Fix your test. Wrong type " + expectedType);
-        }
-        obj[attributeName] = valueToAssign;
-        assert_equals(obj[attributeName], valueToAssign, attributeName + " can be modified.");
-    } else {
-        assert_unreached("Fix your test. Wrong type of name " + typeof (attributeName));
-    }
-}
-
-/**
- * Method to check if whole array can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_array_assignments(message, "to", false);
- *
- * @param obj object which has the array as its property
- * @param array name of the array to check
- * @param isNullable indicates if the array can be null
- */
-function check_invalid_array_assignments(obj, array, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", {}, function () {}],
-        val = obj[array], i;
-
-    if (!isNullable) {
-        obj[array] = null;
-        assert_not_equals(obj[array], null, "Non-nullable array was set to null");
-        assert_type(obj[array], "array", "Non-nullable array type changed after assigning null");
-        assert_equals(obj[array].toString(), val.toString(), "Non-nullable array contents changed after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        obj[array] = args[i];
-        assert_type(obj[array], "array", "Array type changed after assigning an invalid value");
-        assert_equals(obj[array].toString(), val.toString(), "Array contents changed after assigning an invalid value");
-    }
-}
-
-/**
- * Method to check if an object can be overwritten with an invalid value.
- * Sample usage:
- * check_invalid_object_assignments(message, "body", false);
- *
- * @param parentObj object which has the 'obj' object as its property
- * @param obj name of the object to check
- * @param isNullable indicates if the object can be null
- */
-function check_invalid_obj_assignments(parentObj, obj, isNullable) {
-    var args = [undefined, true, false, NaN, 0, "TIZEN", function () {}],
-        val = parentObj[obj], i;
-
-    if (!isNullable) {
-        parentObj[obj] = null;
-        assert_equals(parentObj[obj], val, "Non-nullable obj was modified after assigning null");
-    }
-
-    for (i = 0 ; i < args.length ; i++) {
-        parentObj[obj] = args[i];
-        assert_equals(parentObj[obj], val, "The object was set to " + args[i]);
-    }
-}
-
-/**
- * Method to validate conversion for listeners.
- * Example usage:
- * incorrectListeners = getListenerConversionExceptions(["oninstalled", "onupdated", "onuninstalled"]);
- * for(i = 0; i < incorrectListeners.length; i++) {
- *     packageInformationEventCallback  = incorrectListeners[i][0];
- *     exceptionName = incorrectListeners[i][1];
- *     assert_throws({name : exceptionName},
- *        function () {
- *             tizen.package.setPackageInfoEventListener(packageInformationEventCallback);
- *         }, exceptionName + " should be thrown - given incorrect successCallback.");
- * }
- *
- *
- * @param callbackNames Array with names
- * @returns {Array} table of tables which contain incorrect listener (index 0) and exceptionName (index 1)
- *
- */
-function getListenerConversionExceptions(callbackNames) {
-    var result = [], conversionTable, i, j, listenerName;
-    conversionTable = getTypeConversionExceptions("functionObject", false);
-
-    for (i = 0; i < callbackNames.length; i++) {
-        for (j = 0; j < conversionTable.length; j++) {
-            listenerName = {};
-            listenerName[callbackNames[i]] = conversionTable[j][0];
-            result.push([listenerName, conversionTable[j][1]]);
-        }
-    }
-
-    return result;
-}
old mode 100755 (executable)
new mode 100644 (file)
index dbf66e6..15718cb
@@ -6,7 +6,7 @@
       <capabilities>
         <capability name="telephony"/>
       </capabilities>
-      <testcase purpose="check the function of findConversations with sms filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="ConversationArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
@@ -18,7 +18,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of onsuccess in MessageFolderArraySuccessCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="FolderArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
@@ -30,7 +30,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of onsuccess in MessageArraySuccessCallback by checking" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
@@ -90,7 +90,7 @@
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if method onsuccess in MessageConversationArraySuccessCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationArraySuccessCallback_onsuccess_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Send a message(sms) and find the relation conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversation_sendFindRemove">
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversation_sendFindRemove">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsadded in MessageConversationsChangeCallback by withfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsadded in MessageConversationsChangeCallback by withoutfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsupdated in MessageConversationsChangeCallback by withfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsupdated in MessageConversationsChangeCallback by withoutfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsremoved in MessageConversationsChangeCallback by withoutfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of conversationsremoved in MessageConversationsChangeCallback by withfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsupdated" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
+            <spec_assertion interface="MessageConversationsChangeCallback" element_type="method" element_name="conversationsremoved" specification="Messaging" section="Communication" category="Tizen Device API Specifications"/>
             <spec_url>https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_id_exist">
+      <testcase purpose="Check if attribute id in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_id_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if loadMessageBody works for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_loadBodySMS">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if the attribute name in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_name_exist">
+      <testcase purpose="Check if name attribute exists in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_name_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if the attribute sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_exist">
+      <testcase purpose="Check if sendMessage exist in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether sendMessage method properly sends the specified message" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_valid_argument">
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_valid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check for loadMessageBody message conversions exception (SMS)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method loadMessageBody with invalid message attribute throws exception (SMS)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_loadMessageBody_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method loadMessageBody without message attribute throws exception (SMS)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_loadMessageBody_missarg_message">
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_loadMessageBody_missarg_message">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Proper invocation with arguments - check if sendMessage (SMS) does what it should." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument errorCallback (SMS) conversions exception" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument MessageService.sendMessage (SMS) errorCallback validation - use {onsuccess: function (){}}" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check message (SMS) argument conversions exception" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check MessageService.sendMessage (SMS) argument message validation - use simple object" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check MessageService.sendMessage (SMS) with missing non-optional argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument successCallback (SMS) conversions exception" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument MessageService.sendMessage (SMS) successCallback validation - use {onsuccess: function (){}}" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check without optional argument sendMessage(valid_message, valid_successCallback) (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_sms_sendMessage_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_type_exist">
+      <testcase purpose="Check if attribute type in MessageService" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageService_type_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Add conversationg listener and add a message, and then remove the conversation related with the adding message, at last remove the conversation listener" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check addConversationsChangeListener method without filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addConversationsChangeListener_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if addMessagesChangeListener for sms works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMCLaddM">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMCLaddM">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check the addMessagesChangeListener method with parmeter filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMessagesChangeListener_withfilter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMessagesChangeListener_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check the addMessagesChangeListener method without parmeter filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_addMessagesChangeListener_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - email" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check the function findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findMessages' method with invalid error callback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage with null errorCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_null">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_errorCallback_null">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_exist">
+      <testcase purpose="Check if method findMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_findMessages_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_filter_sms_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_filter_sms_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied filter limited to specified number" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_limit_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_limit_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.findMessages (filter) WRONG argument(s)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.findMessages () WRONG argument(s)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_noarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter and offset param" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_offset_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_offset_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied filter in specified order" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_sort_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_findMessages_sort_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - mms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_exist">
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by forconversations" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_forconversations">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_forconversations">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by forfolder" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_forfolder">
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_forfolder">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by formessages" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_formessages">
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_formessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function removeChangeListener in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_removeChangeListener_valid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.removeChangeListener (watchId)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_with_watchId">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeChangeListener_with_watchId">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with null MessageConversation param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_null">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with undefined MessageConversation param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_arg_undefined">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with invalid MessageConversation param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_conversations_number">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of removeConversations in MessageStorage by forsms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_forsms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.removeConversations ('sth') WRONG argument(s)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_invalid_arg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.removeConversations () WRONG argument(s)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_missarg_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if removeConversations works properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_sms">
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_sms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with invalid success callback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_removeConversations_successCallback_number">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback validation - addConversationsChangeListener, sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) works properly." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when errorCallback is incorrect" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument message conversions exception in addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument message validation in addDraftMessage method (sms) - invalid object" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check MessageStorage.addDraftMessage (sms) with missing non-optional argument" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when successCallback is incorrect" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when successCallback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (sms) works properly without errorCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (sms) works properly without successCallback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addDraftMessage_without_successCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument filter conversions exception - addMessagesChangeListener, filter, sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument messagesChangeCallback conversions exception - addMessagesChangeListener, sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument messagesChangeCallback validation - invalid, sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with missing non-optional argument - addMessagesChangeListener, sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments addMessagesChangeListener (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (sms) works properly without filter." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid error callback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as error callback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check whether method MessageStorage::findConversations() method with invalid filter param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (with conversationId)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_id">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check whether method MessageStorage::findConversations() method generic object as filter param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_filter_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by to)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_to">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by type)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findConversations_filter_type">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="MessageStorage.findConversations (filter) WRONG argument(s)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid SortMode param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as SortMode param throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_sort_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid success calback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as success calback throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations limited to specified number" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_limit">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_limit">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations matching the supplied to filter and offset param from MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_offset">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_offset">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations matching the supplied 'to' filter in specified order" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_sort_to">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findConversations_with_sort_to">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback) id for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument errorCallback conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument errorCallback validation for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument filter conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) folderId for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) from for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_from_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) id for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_id_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) isRead for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages with missing non-optional argument for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_missarg">
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody and id for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument sort conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument sort validation - use simple objec" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_sort_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument successCallback conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check findMessages argument successCallback validation for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) timestamp for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) to for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_to_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) type for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_type_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit) for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_limit">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit, valid_offse) for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_offset">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort) for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_findMessages_with_sort">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument errorCallback conversions exception - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument errorCallback validation - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument messages conversions exception - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with missing non-optional argument - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument successCallback conversions exception - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check argument successCallback validation - updateMessages (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly - without errorCallback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly - without successCallback." type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_sms_updateMessages_without_successCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check the functionupdateMessages in MessageStorage" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageStorage_updateMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check new tizen.Message(MessageServiceTag type, MessageInit messageInitDict?) works for sms (is supported)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
+      <testcase purpose="Check if Message's constructor works properly (sms)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_messageInitDict_function" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_function">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_messageInitDict_object" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_messageInitDict_object">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_minargs" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_sms_constructor_minargs">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of messagesadded in MessagesChangeCallback by withfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesadded_withfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesadded_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of messagesadded in MessagesChangeCallback by withoutfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesadded_withoutfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesadded_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of messagesupdated in MessagesChangeCallback by withfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesupdated_withfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesupdated_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check the function of messagesupdated in MessagesChangeCallback by withoutfilter" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessagesChangeCallback_messagesupdated_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback) for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check getMessageServices argument errorCallback conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getMessageServices (sms) throws exception when errorCallback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check getMessageServices argument successCallback conversions exception for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if getMessageServices (sms) throws exception when successCallback is invalid" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback, valid_errorCallback) for sms" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Messaging_sms_getMessageServices_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
+      <testcase purpose="Checks various message attributes upon message (sms) creation" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageInit_MessageInit_valid_argument_sms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageService_sendMessage_invalid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
         </description>
old mode 100755 (executable)
new mode 100644 (file)
index 99c3a41..5a191cd
@@ -6,17 +6,17 @@
       <capabilities>
         <capability name="telephony"/>
       </capabilities>
-      <testcase purpose="check the function of findConversations with sms filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="ConversationArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check ConversationArraySuccessCallback callback for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="ConversationArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/ConversationArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of onsuccess in MessageFolderArraySuccessCallback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="FolderArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check if FolderArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="FolderArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/FolderArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of onsuccess in MessageArraySuccessCallback by checking" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageArraySuccessCallback_onsuccess_checking">
+      <testcase purpose="Check if MessageArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageArraySuccessCallback_onsuccess_checking">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageArraySuccessCallback_onsuccess_checking.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageBody_sms_plainBody_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if method onsuccess in MessageConversationArraySuccessCallback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationArraySuccessCallback_onsuccess_exist">
+      <testcase purpose="Check if MessageConversationArraySuccessCallback.onsuccess callback works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationArraySuccessCallback_onsuccess_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationArraySuccessCallback_onsuccess_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Send a message(sms) and find the relation conversation and then remove it" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversation_sendFindRemove">
+      <testcase purpose="Check scenario: send a message(sms), find conversation and then remove it" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversation_sendFindRemove">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversation_sendFindRemove.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsadded in MessageConversationsChangeCallback by withfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added with filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsadded_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsadded in MessageConversationsChangeCallback by withoutfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsadded callback works properly (listener added without filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsadded_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsadded_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsupdated in MessageConversationsChangeCallback by withfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added with filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsupdated_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsupdated in MessageConversationsChangeCallback by withoutfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
+      <testcase purpose="Check if MessageConversationsChangeCallback's conversationsupdated callback works properly (listener added without filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsupdated_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsupdated_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsremoved in MessageConversationsChangeCallback by withoutfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, no filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsremoved_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of conversationsremoved in MessageConversationsChangeCallback by withfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
+      <testcase purpose="Check if callback is called and if its arguments have proper type - MessageConversationsChangeCallback.conversationsremoved, with filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageConversationsChangeCallback_conversationsremoved_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageConversationsChangeCallback_conversationsremoved_withfilter.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageServiceArraySuccessCallback_sms_onsuccess.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if attribute id in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_id_exist">
+      <testcase purpose="Check if attribute id in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_id_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_id_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if loadMessageBody works for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_loadBodySMS">
+      <testcase purpose="Check if MessageService.loadMessageBody method works for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_loadBodySMS">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_loadBodySMS.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if the attribute name in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_name_exist">
+      <testcase purpose="Check if name attribute exists in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_name_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_name_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if the attribute sendMessage exist in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_exist">
+      <testcase purpose="Check if sendMessage exist in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether sendMessage method properly sends the specified message" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_valid_argument">
+      <testcase purpose="Check if MessageService.sendMessage method works properly with valid argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_valid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_valid_argument.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check for loadMessageBody message conversions exception (SMS)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageService.loadMessageBody method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method loadMessageBody with invalid message attribute throws exception (SMS)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_message_invalid_obj">
+      <testcase purpose="Check if MessageService.loadMessageBody method throws exception when message is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_message_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method loadMessageBody without message attribute throws exception (SMS)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_missarg_message">
+      <testcase purpose="Check with missing non-optional argument - MessageService.loadMessageBody (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_loadMessageBody_missarg_message">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_loadMessageBody_missarg_message.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_messageStorage_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Proper invocation with arguments - check if sendMessage (SMS) does what it should." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage">
+      <testcase purpose="Check if MessageService.sendMessage method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument errorCallback (SMS) conversions exception" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument MessageService.sendMessage (SMS) errorCallback validation - use {onsuccess: function (){}}" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check message (SMS) argument conversions exception" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageService.sendMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check MessageService.sendMessage (SMS) argument message validation - use simple object" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_message_invalid_obj">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when message is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_message_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check MessageService.sendMessage (SMS) with missing non-optional argument" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageService.sendMessage (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument successCallback (SMS) conversions exception" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.sendMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument MessageService.sendMessage (SMS) successCallback validation - use {onsuccess: function (){}}" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.sendMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check without optional argument sendMessage(valid_message, valid_successCallback) (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_without_errorCallback">
+      <testcase purpose="Check if MessageService.sendMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sms_sendMessage_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sms_sendMessage_without_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if attribute type in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_type_exist">
+      <testcase purpose="Check if attribute type in MessageService" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_type_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_type_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Add conversationg listener and add a message, and then remove the conversation related with the adding message, at last remove the conversation listener" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
+      <testcase purpose="Check scenario: add a conversation listener, add a message, remove the conversation related with the added message, remove the listener" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addCCLAddMRemoveCRemoveCCL">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addCCLAddMRemoveCRemoveCCL.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check addConversationsChangeListener method without filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addConversationsChangeListener_withoutfilter">
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method works properly without filter (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addConversationsChangeListener_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addConversationsChangeListener_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if addMessagesChangeListener for sms works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMCLaddM">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMCLaddM">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMCLaddM.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check the addMessagesChangeListener method with parmeter filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMessagesChangeListener_withfilter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMessagesChangeListener_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check the addMessagesChangeListener method without parmeter filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMessagesChangeListener_withoutfilter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_addMessagesChangeListener_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_addMessagesChangeListener_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - email" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check the function findMessages in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findMessages' method with invalid error callback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
+      <testcase purpose="Check MessageStorage.findMessages method when errorCallback is a number (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_errorCallback_TypeMismatch_1">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_TypeMismatch_1.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage with null errorCallback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_errorCallback_null">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with null as errorCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_errorCallback_null">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_errorCallback_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if method findMessages in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_exist">
+      <testcase purpose="Check if method findMessages in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter from MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_filter_sms_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_filter_sms_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_filter_sms_valid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied filter limited to specified number" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_limit_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_limit_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_limit_valid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.findMessages (filter) WRONG argument(s)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.findMessages () WRONG argument(s)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_noarg">
+      <testcase purpose="Check without arguments - MessageStorage.findMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_noarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_noarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied SMS type filter and offset param" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_offset_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with valid offset" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_offset_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_offset_valid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findMessages' method properly retrieves messages matching the supplied filter in specified order" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_sort_valid">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_findMessages_sort_valid">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_findMessages_sort_valid.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - mms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (mms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_mms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if method removeChangeListener in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_exist">
+      <testcase purpose="Check if method removeChangeListener in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_exist">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by forconversations" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_forconversations">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly - for conversation listener (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_forconversations">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forconversations.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by forfolder" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_forfolder">
+      <testcase purpose="Check if removeChangeListener method removes listener added by addFoldersChangeListener method" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_forfolder">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_forfolder.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of removeChangeListener in MessageStorage by formessages" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_formessages">
+      <testcase purpose="Check if removeChangeListener method removes listener added by addMessagesChangeListener method" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_formessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_formessages.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function removeChangeListener in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_valid_argument">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method works properly with valid arguments - for folder listener (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_valid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_valid_argument.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.removeChangeListener (watchId)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_with_watchId">
+      <testcase purpose="Check if MessageStorage.removeChangeListener method remove listener added by addFoldersChangeListener for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeChangeListener_with_watchId">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeChangeListener_with_watchId.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with null MessageConversation param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_arg_null">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is null (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_arg_null">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with undefined MessageConversation param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_arg_undefined">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is undefined (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_arg_undefined">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_arg_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with invalid MessageConversation param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_conversations_number">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is a number (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_conversations_number">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_conversations_number.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of removeConversations in MessageStorage by forsms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_forsms">
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly with all callbacks (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_forsms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_forsms.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.removeConversations ('sth') WRONG argument(s)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_invalid_arg">
+      <testcase purpose="Check MessageStorage.removeConversations method when conversations argument is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_invalid_arg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_invalid_arg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.removeConversations () WRONG argument(s)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_missarg_TypeMismatch">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.removeConversations (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_missarg_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_missarg_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if removeConversations works properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_sms">
+      <testcase purpose="Check if MessageStorage.removeConversations method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_sms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_sms.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'removeConversations' method with invalid success callback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_successCallback_number">
+      <testcase purpose="Check MessageStorage.removeConversations method when successCallback is a number (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_removeConversations_successCallback_number">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_removeConversations_successCallback_number.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback conversions exception - sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument conversationsChangeCallback validation - addConversationsChangeListener, sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addConversationsChangeListener method throws exception when conversationsChangeCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_conversationsChangeCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addConversationsChangeListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (SMS) works properly." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when errorCallback is incorrect" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when errorCallback is invalid" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument message conversions exception in addDraftMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
+      <testcase purpose="Check type conversions for message argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_message_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument message validation in addDraftMessage method (sms) - invalid object" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when message is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_message_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_message_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check MessageStorage.addDraftMessage (sms) with missing non-optional argument" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addDraftMessage (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when successCallback is incorrect" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.addDraftMessage method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if addDraftMessage (sms) throws exception when successCallback is invalid" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (sms) works properly without errorCallback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without errorCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method addDraftMessage of MessageStorage (sms) works properly without successCallback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_without_successCallback">
+      <testcase purpose="Check if MessageStorage.addDraftMessage method works properly without successCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addDraftMessage_without_successCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addDraftMessage_without_successCallback.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument filter conversions exception - addMessagesChangeListener, filter, sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_filter_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument messagesChangeCallback conversions exception - addMessagesChangeListener, sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for messagesChangeCallback argument of MessageStorage.addMessagesChangeListener method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument messagesChangeCallback validation - invalid, sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method throws exception when messagesChangeCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_messagesChangeCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with missing non-optional argument - addMessagesChangeListener, sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.addMessagesChangeListener (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments addMessagesChangeListener (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly with filter (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_with_filter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_with_filter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method addMessagesChangeListener of MessageStorage (sms) works properly without filter." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
+      <testcase purpose="Check if MessageStorage.addMessagesChangeListener method works properly without filter (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_addMessagesChangeListener_without_filter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_addMessagesChangeListener_without_filter.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid error callback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as error callback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether method MessageStorage::findConversations() method with invalid filter param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (with conversationId)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_id">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by id (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_id">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_id.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether method MessageStorage::findConversations() method generic object as filter param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when filter is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by to)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_to">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by to (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_to">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_to.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method MessageStorage::findConversations() can be successfully called for sms message (filter by type)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_type">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter by type (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_filter_type">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_filter_type.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="MessageStorage.findConversations (filter) WRONG argument(s)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.findConversations (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid SortMode param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_sort_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as SortMode param throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_sort_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when sort is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_sort_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_sort_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with invalid success calback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findConversations method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking 'findConversations' method with object as success calback throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findConversations method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations limited to specified number" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_limit">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with limit (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_limit">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_limit.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations matching the supplied to filter and offset param from MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_offset">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with offset (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_offset">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_offset.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'findConversations' method properly retrieves conversations matching the supplied 'to' filter in specified order" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_sort_to">
+      <testcase purpose="Check if MessageStorage.findConversations method works properly with filter and sort by to (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findConversations_with_sort_to">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findConversations_with_sort_to.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findFolders_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback) id for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument errorCallback conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument errorCallback validation for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument filter conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
+      <testcase purpose="Check type conversions for filter argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_filter_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_filter_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) folderId for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by folderId (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_folderId_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_folderId_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) from for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_from_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by from (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_from_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_from_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) id for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_id_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by id (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_id_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_id_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) isRead for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by isRead (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_isRead_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_isRead_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages with missing non-optional argument for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_missarg">
+      <testcase purpose="Check without arguments - MessageStorage.findMessages" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody and id for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody and to (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_and_id_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) plainBody for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by plainBody (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_plainBody_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_plainBody_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument sort conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
+      <testcase purpose="Check type conversions for sort argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_sort_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument sort validation - use simple objec" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_sort_invalid_obj">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when sort is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_sort_invalid_obj">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_sort_invalid_obj.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument successCallback conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.findMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check findMessages argument successCallback validation for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.findMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) timestamp for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by timestamp (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_timestamp_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_timestamp_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) to for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_to_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by to (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_to_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_to_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback) type for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_type_with_errorCallback">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with filter by type" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_type_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_type_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit) for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_limit">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with limit (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_limit">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_limit.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort, valid_limit, valid_offse) for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_offset">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with offset (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_offset">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_offset.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with optional arguments findMessages(valid_filter, valid_successCallback, valid_errorCallback, valid_sort) for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_sort">
+      <testcase purpose="Check if MessageStorage.findMessages method works properly with sort (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_findMessages_with_sort">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_findMessages_with_sort.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_removeMessages_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument errorCallback conversions exception - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument errorCallback validation - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_errorCallback_invalid_cb.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument messages conversions exception - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
+      <testcase purpose="Check type conversions for messages argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_messages_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_messages_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with missing non-optional argument - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_missarg">
+      <testcase purpose="Check with missing non-optional argument - MessageStorage.updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_missarg">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_missarg.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument successCallback conversions exception - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageStorage.updateMessages method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check argument successCallback validation - updateMessages (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageStorage.updateMessages method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly - without errorCallback." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_without_errorCallback">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without errorCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_without_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if method updateMessages of MessageStorage (SMS) works properly - without successCallback." onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_without_successCallback">
+      <testcase purpose="Check if MessageStorage.updateMessages method works properly without successCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_sms_updateMessages_without_successCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_sms_updateMessages_without_successCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check the functionupdateMessages in MessageStorage" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_updateMessages">
+      <testcase purpose="Check if MessageStorage.updateMessages method works correctly wihtout error callback" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_updateMessages">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageStorage_updateMessages.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_body_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check new tizen.Message(MessageServiceTag type, MessageInit messageInitDict?) works for sms (is supported)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor">
+      <testcase purpose="Check if Message's constructor works properly (sms)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_messageInitDict_function" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_messageInitDict_function">
+      <testcase purpose="Check if Message's constructor works properly with function (sms)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_messageInitDict_function">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_function.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_messageInitDict_object" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_messageInitDict_object">
+      <testcase purpose="Check if Message's constructor works properly with empty object (sms)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_messageInitDict_object">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_messageInitDict_object.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if Message_sms_constructor_minargs" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_minargs">
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (sms)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_sms_constructor_minargs">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_constructor_minargs.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Message_sms_type_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of messagesadded in MessagesChangeCallback by withfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesadded_withfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added with filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesadded_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of messagesadded in MessagesChangeCallback by withoutfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesadded_withoutfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesadded callback works properly (listener added without filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesadded_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesadded_withoutfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of messagesupdated in MessagesChangeCallback by withfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesupdated_withfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added with filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesupdated_withfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withfilter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check the function of messagesupdated in MessagesChangeCallback by withoutfilter" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesupdated_withoutfilter">
+      <testcase purpose="Check if MessagesChangeCallback's messagesupdated callback works properly (listener added without filter)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessagesChangeCallback_messagesupdated_withoutfilter">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_messagesupdated_withoutfilter.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessagesChangeCallback_sms_messagesupdated_without_filter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback) for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices">
+      <testcase purpose="Check if MessageService.getMessageServices method works properly (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check getMessageServices argument errorCallback conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for errorCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_errorCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getMessageServices (sms) throws exception when errorCallback is invalid" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when errorCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_errorCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check getMessageServices argument successCallback conversions exception for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for successCallback argument of MessageService.getMessageServices method (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_successCallback_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if getMessageServices (sms) throws exception when successCallback is invalid" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
+      <testcase purpose="Check if MessageService.getMessageServices method throws exception when successCallback is invalid (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_successCallback_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check with non-optional arguments getMessageServices(valid_messageServiceType, valid_successCallback, valid_errorCallback) for sms" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_with_errorCallback">
+      <testcase purpose="Check if MessageService.getMessageServices method works properly with errorCallback argument (sms)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Messaging_sms_getMessageServices_with_errorCallback">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/Messaging_sms_getMessageServices_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="checks various message attributes upon message (sms) creation" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageInit_MessageInit_valid_argument_sms">
+      <testcase purpose="Checks various message attributes upon message (sms) creation" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageInit_MessageInit_valid_argument_sms">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageInit_MessageInit_valid_argument_sms.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_invalid_argument">
+      <testcase purpose="Check whether invoking sendMessage method with improper argument throws exception properly" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageService_sendMessage_invalid_argument">
         <description>
           <test_script_entry>/opt/tct-messaging-sms-tizen-tests/messaging/MessageService_sendMessage_invalid_argument.html</test_script_entry>
         </description>