From: Pawel Kaczmarczyk Date: Tue, 3 Jul 2018 05:51:44 +0000 (+0200) Subject: [Callhistory] Change callhistory tests to automated X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F183175%2F3;p=test%2Ftct%2Fweb%2Fapi.git [Callhistory] Change callhistory tests to automated [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 --- diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html index a398daad2..c7f059d6a 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html index a86d4ae0a..2f5c635a5 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html index e56e65efa..1377526af 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html index dffc674a5..40461d95e 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html index acbe5ba14..fb7fc49e8 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html index 67895286c..5e4c2a957 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html index 1e5ec951b..cc48a9c19 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html index 0037645cc..76c05dba9 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html index 08b0ccb56..9dfee72dd 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html index 5d0faaf45..00572819e 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html @@ -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"; diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html index 072838457..0d555cc98 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html @@ -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, diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html index 14ec075c1..9f9ee9992 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html index 3aae67511..9cee425b1 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html @@ -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, diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html index 6b228bf3d..03b4ccc8a 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html index f35cf8715..ca0186ee4 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html index 4192aad2e..9afe8b526 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html index 0feb58af5..4e45c0202 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html index d2177ed65..3f031af5d 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html index decb3f5c3..50cec39a9 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html index 61d4ebf26..f23ab7b9b 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html index 30e4881df..7a1255abe 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html index 182f12324..96f7b19e7 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html index 48a9f5b4d..8151eeef2 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html @@ -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}), diff --git a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html index ba3a193e3..429071baa 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html +++ b/common/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html @@ -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"); diff --git a/common/tct-callhistory-tizen-tests/callhistory/support/callcommon.js b/common/tct-callhistory-tizen-tests/callhistory/support/callcommon.js index 635cea941..043f63c49 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/support/callcommon.js +++ b/common/tct-callhistory-tizen-tests/callhistory/support/callcommon.js @@ -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(""); \ No newline at end of file diff --git a/common/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js b/common/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js index 31c63aeef..4a007f986 100755 --- a/common/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js +++ b/common/tct-callhistory-tizen-tests/callhistory/support/unitcommon.js @@ -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 diff --git a/common/tct-callhistory-tizen-tests/tests.xml b/common/tct-callhistory-tizen-tests/tests.xml index e14d05a6e..de56e5795 100755 --- a/common/tct-callhistory-tizen-tests/tests.xml +++ b/common/tct-callhistory-tizen-tests/tests.xml @@ -29,7 +29,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html - + Make an existence call history @@ -46,49 +46,49 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_notexist.html - + Make an existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html - + Make a call /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html - + Make at least one MISSED call, which was seen /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html - + Make at least one MISSED call which is NOT SEEN /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html - + Make a RECEIVED call /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html - + Make a REJECTED call /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html - + Make an existence call history with one new missed call which was not seen /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html - + /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html @@ -98,7 +98,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_notexist.html - + Make some existence PHONE NUMBER ADDRESSING call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html @@ -179,7 +179,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_extend.html - + Make an existence call history (at least one entry) /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html @@ -285,7 +285,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_1.html - + Make at least 3 existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html @@ -396,7 +396,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_notexist.html - + Make an existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html @@ -437,13 +437,13 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_errorCallback.html - + Make some existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html - + Make some existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html @@ -464,13 +464,13 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_invalid_cb.html - + Make at least 3 existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html - + Make at least 3 existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html @@ -481,13 +481,13 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_exist.html - + Make at least 1 REJECTED call /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html - + Make some existence PHONE NUMBER ADDRESSING call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html @@ -508,25 +508,25 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_invalid_cb.html - + Make at least 3 existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html - + Make at least 3 existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html - + Make an existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html - + Make an existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html @@ -557,7 +557,7 @@ /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_exist.html - + Make some existence call history /opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html