[Callhistory] Change callhistory tests to automated 75/183175/3
authorPawel Kaczmarczyk <p.kaczmarczy@samsung.com>
Tue, 3 Jul 2018 05:51:44 +0000 (07:51 +0200)
committerPawel Kaczmarczyk <p.kaczmarczy@samsung.com>
Tue, 11 Sep 2018 13:29:57 +0000 (15:29 +0200)
[Verification]
 tct-callhistory-tizen-tests 100% (104 tcs)
 testkit-stub built with:
 https://review.tizen.org/gerrit/183170/
Change-Id: Ic8db4161c5900e9d998119878004c98401742d09
Signed-off-by: Pawel Kaczmarczyk <p.kaczmarczy@samsung.com>
27 files changed:
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html
common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html
common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html
common/tct-callhistory-tizen-tests/callhistory/support/callcommon.js
common/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js
common/tct-callhistory-tizen-tests/tests.xml

index a398daad2b7e5837234da9713feea21a31c7a72e..c7f059d6a3b6c4b73ccce0f2e39e10ca50e7b630 100755 (executable)
@@ -58,6 +58,11 @@ Authors:
 //==== TEST_CRITERIA AT ARO AE
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== PRE: Make an existence call history
+
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index a86d4ae0af491325c9133e8f02a61783e74a369b..2f5c635a5dc35c7eaacacfa878051e102a1186a5 100755 (executable)
@@ -37,6 +37,9 @@ Authors:
 //==== TEST_CRITERIA CBT CBOA
 //==== PRE Make an existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index e56e65efa5eb7a8b898388a58b8db386d769c21f..1377526af533930f93a33950b8fdf0d00d1113f0 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make a call
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index dffc674a594616a08d5c50ea9e88770353ab6b32..40461d95ec56d7527162e1a06b9f3c4194b971f7 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make at least one MISSED call, which was seen
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index acbe5ba14d02c4682069acb8c7dd042d2441cad2..fb7fc49e83bff22d2c2e84982b46e70487e6ad41 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make at least one MISSED call which is NOT SEEN
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSEDNEW, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 67895286cf5ea416ec5ab972c33f19ce81471ff5..5e4c2a9576a6814d7db7b250ddbb5325cccb30ff 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make a RECEIVED call
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 1e5ec951b17db8cff911bdcc45d091c4227c15fe..cc48a9c19791ab17ebcb2f8a2245355031363484 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make a REJECTED call
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.REJECTED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 0037645cc982a49f582e2f1c1e881c52c4ad7191..76c05dba9ad524658d90da54ff639e74933c04ea 100755 (executable)
@@ -39,6 +39,8 @@ Authors:
 //==== TEST_CRITERIA AE AT AVL ASG AN
 //==== PRE: Make an existence call history with one new missed call which was not seen
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSEDNEW, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 08b0ccb561dddb20af1f9e63b965c1e1a23dae83..9dfee72dd522b17c2e15a2b75aafe2ccf916edcb 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA
 //==== PRE Make a VOICE ONLY call
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 5d0faaf45979b73211fe0449388b2c6fbf7aac9d..00572819ec79b4f641e6f7cc2bcce715c8bfbf70 100755 (executable)
@@ -52,6 +52,8 @@ Authors:
 //==== TEST_CRITERIA AT
 //==== PRE Make some existence PHONE NUMBER ADDRESSING call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}), onSuccess, onError, filter, expected = "TEL";
index 0728384573927c7c446d9fab21a92e389f235194..0d555cc98209a0fffc32159c9346bfb9597e14df 100755 (executable)
@@ -52,6 +52,8 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 //==== PRE Make an existence call history (at least one entry)
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}), returnedValue = null,
index 14ec075c1ab50a6b188e2c9625e98fea6682484b..9f9ee999203aa177db86ecdc12f275d36e0c6f52 100755 (executable)
@@ -50,6 +50,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 //==== PRE Make at least 3 existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 3aae67511cf92ea2758163854ca69a560241eaaf..9cee425b1f42867bc4808fc7bd3e023d89145941 100755 (executable)
@@ -52,6 +52,10 @@ Authors:
 //==== TEST_CRITERIA MMINA MAST MR
 //==== PRE Make an existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}), retVal = null,
index 6b228bf3da6587ce3e9eeb8abf1b368ddfd38cea..03b4ccc8aec9005878de63e2d369e8d6fe68b9aa 100755 (executable)
@@ -41,6 +41,10 @@ Authors:
 //==== TEST_CRITERIA MOA MAST MR
 //==== PRE Make some existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index f35cf8715b1e1d48bcbb3c2556235f0e240a6595..ca0186ee467cf9aa357bee69f488b82b9969bb7f 100755 (executable)
@@ -51,6 +51,10 @@ Authors:
 //==== TEST_CRITERIA MMINA MAST
 //==== PRE Make some existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 4192aad2e87c30c9c0b6b773f95eadb5bec569e7..9afe8b526b280638362c36e002a61df955588188 100755 (executable)
@@ -38,6 +38,10 @@ Authors:
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make at least 3 existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 0feb58af55f652a1df0e78a725e93b5b0e4ad6d7..4e45c02021e3ad58dac840d254e7e4cf4917e297 100755 (executable)
@@ -38,6 +38,11 @@ Authors:
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MC
 //==== PRE Make at least 3 existence call history
+
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index d2177ed658cb818afb0084f57efa0fec183770e5..3f031af5d347c756d68f5e98c4c431bbd00a52dc 100755 (executable)
@@ -50,6 +50,8 @@ Authors:
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make at least 1 REJECTED call
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.REJECTED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index decb3f5c37784ae3ba062284e896f6af8b78b70a..50cec39a9399251cf35f63155671c5b81336175f 100755 (executable)
@@ -50,6 +50,10 @@ Authors:
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make some existence PHONE NUMBER ADDRESSING call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 61d4ebf26d8ce485764f9d9e90e6423baa7bfe50..f23ab7b9b96abef6f8df9fa1c95be6349f884844 100755 (executable)
@@ -38,6 +38,10 @@ Authors:
 //==== TEST_CRITERIA MOA
 //==== PRE Make at least 3 existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 30e4881df3ed3f6d0a8d53f3a21c90a7ba4238a0..7a1255abe1516343a2bae5cf78088d1a3296650a 100755 (executable)
@@ -38,6 +38,10 @@ Authors:
 //==== TEST_CRITERIA MC
 //==== PRE Make at least 3 existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 182f12324a7192370e49544693b04525c7ea743a..96f7b19e7c4a479ee8d42cf22de88e8b235a10b9 100755 (executable)
@@ -39,6 +39,10 @@ Authors:
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make an existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index 48a9f5b4d3f2efe581577817990a950083e99b17..8151eeef279d383b2aae9b862f11816ebd2ba9de 100755 (executable)
@@ -39,6 +39,10 @@ Authors:
 //==== TEST_CRITERIA MOA MR
 //==== PRE Make an existence call history
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+
 setup({timeout: 90000});
 
 var t = async_test(document.title, {timeout: 90000}),
index ba3a193e3a170cc022fcf85ddbeb375cd2f5bbe9..429071baa645d44a149a6703da9988cd8ad6ed96 100755 (executable)
@@ -52,6 +52,11 @@ Authors:
 
 setup({timeout: 90000});
 
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.DIALED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.RECEIVED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.MISSED, new Date()));
+executeCommand(createCallHistoryInsertQuery(CallHistoryLogType.BLOCKED, new Date()));
+
 var t = async_test(document.title, {timeout: 90000}),
     findSuccess, findError, findAfterSuccess, findAfterError, sortMode, i = 0,
     removedUid, sortMode = new tizen.SortMode("startTime", "DESC");
index 635cea941985d9480cf95aad18b55d1f3121e9c9..043f63c49e4441bbd175b89cf9bfdd1bc1e5cac7 100755 (executable)
@@ -73,3 +73,25 @@ var SECURITY_ERR = 'SecurityError';
 var CALL_HISTORY_ENTRY_TYPE = ["TEL", "XMPP", "SIP"];
 var CALL_HISTORY_ENTRY_FEATURES = ["CALL", "VOICECALL", "VIDEOCALL", "EMERGENCYCALL"];
 var CALL_HISTORY_ENTRY_DIRECTION = ["DIALED", "RECEIVED", "MISSEDNEW", "MISSED", "BLOCKED", "REJECTED"];
+
+var CallHistoryLogType = {
+  RECEIVED: 1,
+  DIALED: 2,
+  MISSEDNEW: 5,
+  MISSED: 6,
+  BLOCKED: 11,
+  REJECTED: 9
+}
+
+function createCallHistoryInsertQuery(type, date) {
+  if (date == undefined) {
+    date = new Date();
+  }
+
+  var command_str = "sqlite3 /opt/usr/home/owner/.applications/dbspace/privacy/.contacts-svc.db <<< \'insert into phonelogs (number,number_type,normal_num,clean_num,minmatch,sim_id,person_id,log_type,log_time,data1,data2) values (123456789, null, 48123456789, 123456789, 123456789, 1, null, " +
+                     + type + ", " + Math.floor(date.valueOf()/1000) + ", 0, 0);\'";
+
+  return command_str;
+}
+
+document.write("<script src=\"../webrunner/jquery-1.10.2.min.js\"></script>");
\ No newline at end of file
index 31c63aeef992e2366cbb7cae874f10e5e18ec6ad..4a007f986eece1593a3e7e13ab83cff5cb61a0f6 100755 (executable)
@@ -560,3 +560,16 @@ function getListenerConversionExceptions(callbackNames) {
 
     return result;
 }
+
+function executeCommand(command) {
+    var toSend = {'cmd' : command};
+    var response =  $.ajax({
+        type: "POST",
+        url: 'http://127.0.0.1:8000/execute_command',
+        async: false,
+        dataType: 'json',
+        data: toSend
+    });
+    //This log provides console output after executing shell command.
+    console.log(JSON.stringify(response));
+}
\ No newline at end of file
index e14d05a6edf22cab053e0bc775e317ef33fa8f4c..de56e5795f8ecd24cbd3934c5d002aa83e6aff53 100755 (executable)
@@ -29,7 +29,7 @@
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html</test_script_entry>
         </description>
       </testcase>
-     <testcase purpose="Check CallHistoryEntry attributes and functions" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry">
+     <testcase purpose="Check CallHistoryEntry attributes and functions" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_notexist.html</test_script_entry>
         </description>
       </testcase>
-    <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntryArraySuccessCallback_onsuccess">
+    <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntryArraySuccessCallback_onsuccess">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if direction value is DIALED when user dialed a call" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_DIALED">
+      <testcase purpose="Check if direction value is DIALED when user dialed a call" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_DIALED">
         <description>
           <pre_condition>Make a call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if direction value is MISSED when user missed calls" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_MISSED">
+      <testcase purpose="Check if direction value is MISSED when user missed calls" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_MISSED">
         <description>
           <pre_condition>Make at least one MISSED call, which was seen</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if direction value is MISSEDNEW when user missed call which is not seen" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_MISSEDNEW">
+      <testcase purpose="Check if direction value is MISSEDNEW when user missed call which is not seen" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_MISSEDNEW">
         <description>
           <pre_condition>Make at least one MISSED call which is NOT SEEN</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if direction value is RECEIVED when user received a call" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_RECEIVED">
+      <testcase purpose="Check if direction value is RECEIVED when user received a call" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_RECEIVED">
         <description>
           <pre_condition>Make a RECEIVED call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if direction value is REJECTED when user rejected a call" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_REJECTED">
+      <testcase purpose="Check if direction value is REJECTED when user rejected a call" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_REJECTED">
         <description>
           <pre_condition>Make a REJECTED call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if CallHistoryEntry have direction attribute with proper type, not null" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_attribute">
+      <testcase purpose="Check if CallHistoryEntry have direction attribute with proper type, not null" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_direction_attribute">
         <description>
           <pre_condition>Make an existence call history with one new missed call which was not seen</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if features value is VOICECALL for voice-only calls" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_features_VOICECALL">
+      <testcase purpose="Check if features value is VOICECALL for voice-only calls" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_features_VOICECALL">
         <description>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html</test_script_entry>
         </description>
@@ -98,7 +98,7 @@
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute type value is TEL" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_type_TEL">
+      <testcase purpose="Check if attribute type value is TEL" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistoryEntry_type_TEL">
         <description>
           <pre_condition>Make some existence PHONE NUMBER ADDRESSING call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if fetch call history items" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_find">
+      <testcase purpose="Check if fetch call history items" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_find">
         <description>
           <pre_condition>Make an existence call history (at least one entry)</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_1.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if limit the query result" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_find_limit_2">
+      <testcase purpose="Check if limit the query result" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_find_limit_2">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_notexist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if delete a call history entry synchronously" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_remove">
+      <testcase purpose="Check if delete a call history entry synchronously" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_remove">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if removeAll called with optional successCallback works as expected - delete all call history" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeAll_with_successCallback">
+      <testcase purpose="Check if removeAll called with optional successCallback works as expected - delete all call history" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeAll_with_successCallback">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if delete a list of call history entries asynchronously" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch">
+      <testcase purpose="Check if delete a list of call history entries asynchronously" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_errorCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether removeBatch() method called with undefined errorCallback throws exception" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined errorCallback throws exception" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_errorCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find call history items by REJECTED and then delete them from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_findByDirection">
+      <testcase purpose="Check if find call history items by REJECTED and then delete them from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_findByDirection">
         <description>
           <pre_condition>Make at least 1 REJECTED call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find call history entries by TEL and then delete all of them from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_findByType">
+      <testcase purpose="Check if find call history entries by TEL and then delete all of them from call history entries" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_findByType">
         <description>
           <pre_condition>Make some existence PHONE NUMBER ADDRESSING call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether removeBatch() method called with null successCallback deletes two entries from call history" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_null">
+      <testcase purpose="Check whether removeBatch() method called with null successCallback deletes two entries from call history" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_successCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check whether removeBatch() method called with undefined successCallback throws exception" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_undefined">
+      <testcase purpose="Check whether removeBatch() method called with undefined successCallback throws exception" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_successCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if removeBatch called with optional errorCallback works as expected" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_with_errorCallback">
+      <testcase purpose="Check if removeBatch called with optional errorCallback works as expected" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_with_errorCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if removeBatch called with optional successCallback works as expected" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_with_successCallback">
+      <testcase purpose="Check if removeBatch called with optional successCallback works as expected" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_removeBatch_with_successCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html</test_script_entry>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_exist.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find call history items by startTime desc and then delete the first call history entry" component="Tizen Device APIs/Social/Callhistory" execution_type="manual" id="CallHistory_remove_findBySortMode">
+      <testcase purpose="Check if find call history items by startTime desc and then delete the first call history entry" component="Tizen Device APIs/Social/Callhistory" execution_type="auto" id="CallHistory_remove_findBySortMode">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html</test_script_entry>