[CallHistory] TCT Code and description conditions update
authorTomasz Kusmierz <t.kusmierz@samsung.com>
Wed, 4 Sep 2013 13:36:40 +0000 (15:36 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Fri, 6 Sep 2013 12:49:40 +0000 (12:49 +0000)
Change-Id: I50fb59d406dd4127996c9ab526d745ca6c7201e4

30 files changed:
tct-callhistory-tizen-tests/README
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onadded.html
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onchanged.html
tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_MISSEDNEW.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_RECEIVED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_REJECTED.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_attribute.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html
tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_type_TEL.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find.html
tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByDirection.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_findByType.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html
tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html
tct-callhistory-tizen-tests/tests.full.xml
tct-callhistory-tizen-tests/tests.xml

index 7647e858ac53cc50d104ff224fb637a2edd45347..7bc2c75e2ab55f443b09e9d41a3b57b2c892529b 100644 (file)
@@ -45,61 +45,79 @@ Test Environment
 ----------------------------------------------
 Pre-condition
 ----------------------------------------------
-1 case below need dialed a call:
-   CallHistoryEntry_direction_DIALED.html
-
-1 case below need a rejected call (at least one):
-   CallHistory_removeBatch_findByDirection.html
-
-3 case below need at least 3 existence call history:
-   CallHistory_find_limit_2.html
-   CallHistory_removeBatch_successCallback_undefined
-   CallHistory_removeBatch_errorCallback_undefined
-
-1 case below need at least one missed call:
-   CallHistoryEntry_direction_MISSED.html
-
-1 case below need at least one missed call which is not seen:
-   CallHistoryEntry_direction_MISSEDNEW.html
-
-4 cases below need an existence call history:
-   CallHistory_find.html
-   CallHistoryEntry_direction_attribute.html
-   CallHistoryEntry_type_TEL.html
-   CallHistoryEntryArraySuccessCallback_onsuccess.html
-
-1 case below need make an voice-only call:
-   CallHistoryEntry_features_VOICECALL.html
-
-12 cases below need make some existence call history, after each test below call history will be removed:
-   CallHistory_remove.html
-   CallHistory_remove_findBySortMode.html
-   CallHistory_removeBatch.html
-   CallHistory_removeBatch_findByType.html
-   CallHistory_removeBatch_findByDirection.html
-   CallHistory_removeBatch_errorCallback_null.html
-   CallHistory_removeBatch_successCallback_null.html
-   CallHistory_removeBatch_with_errorCallback.html
-   CallHistory_removeBatch_with_successCallback.html
-   CallHistory_removeAll.html
-   CallHistory_removeAll_with_errorCallback.html
-   CallHistory_removeAll_with_successCallback.html
-
-1 case below need received a call:
-   CallHistoryEntry_direction_RECEIVED.html
-
-1 case below need rejected a call:
-   CallHistoryEntry_direction_REJECTED.html
+11 cases below need an existence call history:
+    CallHistoryEntryArraySuccessCallback_onsuccess.html
+    CallHistoryEntry.html
+    CallHistory_find.html
+    CallHistoryChangeCallback_onremoved.html
+    CallHistory_remove.html
+    CallHistory_remove_findBySortMode.html
+    CallHistory_removeBatch.html
+    CallHistory_removeBatch_with_errorCallback.html
+    CallHistory_removeBatch_with_successCallback.html
+    CallHistory_removeAll_with_successCallback.html
+
+5 cases below need at least 3 existence call history:
+    CallHistory_find_limit_2.html
+    CallHistory_removeBatch_errorCallback_null.html
+    CallHistory_removeBatch_errorCallback_undefined
+    CallHistory_removeBatch_successCallback_null.html
+    CallHistory_removeBatch_successCallback_undefined
+
+2 cases below need a PHONE NUMBER ADDRESSING call history
+    CallHistory_removeBatch_findByType.html
+    CallHistoryEntry_type_TEL.html
+
+1 case below need at least one MISSED call which was seen:
+    CallHistoryEntry_direction_MISSED.html
+
+3 cases below need at least one MISSED call which is not seen:
+    CallHistoryEntry_direction_MISSEDNEW.html
+    CallHistoryEntry_direction_attribute.html
+    CallHistoryChangeCallback_onchanged.html
+
+1 case below need make an VOICE ONLY CALL call:
+    CallHistoryEntry_features_VOICECALL.html
+
+1 case below need RECEIVED call:
+    CallHistoryEntry_direction_RECEIVED.html
+
+2 cases below need REJECTED call:
+    CallHistoryEntry_direction_REJECTED.html
+    CallHistory_removeBatch_findByDirection.html
+
+1 case below need DIALED call:
+    CallHistoryEntry_direction_DIALED.html
 
-Some test cases remove all of call history after the performing. You need
-to check the call history before testing each manual test cases which
-requires some call history.
 
 ----------------------------------------------
 Post-condition
 ----------------------------------------------
-Some test Cases remove all of call history after execution,
-you need to check the call history before testing each manual test cases which requires some call history.
+Some test cases remove all of call history after the performing. You need
+to check the call history before testing each manual test case which
+requires some call history.
+
+2 cases below deletes one entry from call history after execution
+    CallHistory_remove.html
+    CallHistory_remove_findBySortMode.html
+
+2 cases below deletes two entries from call history after execution
+    CallHistory_removeBatch_errorCallback_null.html
+    CallHistory_removeBatch_successCallback_null.html
+
+1 case below delete all REJECTED entries from call history after execution:
+    CallHistory_removeBatch_findByDirection.html
+
+1 case below delete all PHONE NUMBER ADDRESSING entries from call history after execution:
+    CallHistory_removeBatch_findByType.html
+
+6 cases below delete all entries from call history after execution:
+    CallHistory_removeBatch.html
+    CallHistory_removeBatch_with_errorCallback.html
+    CallHistory_removeBatch_with_successCallback.html
+    CallHistory_removeAll.html
+    CallHistory_removeAll_with_errorCallback.html
+    CallHistory_removeAll_with_successCallback.html
 
 ----------------------------------------------
 Build and Run
index 4948a990810d4cf56d2dd7201cc4a583e6ee5dc8..9766eb809cd9045e14d32a92a51a4c14a6d7339a 100644 (file)
@@ -31,8 +31,6 @@ Authors:
 //==== TEST: CallHistoryChangeCallback_onadded
 //==== LABEL: Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type
 //==== EXECUTION_TYPE manual
-//==== STEP: Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type
-//==== EXPECT: Pass
 //==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onadded M
 //==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA CBT CBOA
@@ -44,7 +42,6 @@ var t = async_test("CallHistoryChangeCallback_onadded", { timeout: 90000 }),
 t.step(function () {
     listener = {
         onadded: t.step_func(function (newItems) {
-            assert_false(newItems === null, "non-nullable argument is null");
             assert_type(newItems, "array", "newItems should be an array");
 
             assert_true(newItems.length > 0, "add a new call history");
index c34770a5f9038374cf51d04521b9e0bd50a0e24f..74b87ca8d143a0796a90ea5b2cab31127e08cbe8 100644 (file)
@@ -30,15 +30,13 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_onchanged
-//==== LABEL: Check if CallHistoryChangeCallback onchanged is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
+//==== LABEL: Check if CallHistoryChangeCallback onchanged is called properly
 //==== EXECUTION_TYPE: manual
-//==== STEP: Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
-//==== EXPECT: Pass
 //==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onchanged M
 //==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA CBT CBOA
-//==== PRE Make an untouched missed call
-//  Check if callback is called and if its arguments have proper type
+//==== PRE Make an untouched MISSED call
+
 setup({timeout: 90000});
 
 var t = async_test("CallHistoryChangeCallback_onchanged", { timeout: 90000 }), onListenerCB, handle;
index 38237f4bc1359c02ac274ef3692b8cf7c926858b..4d07da697187fe8048dd92d247712b3419d83d8b 100644 (file)
@@ -30,15 +30,13 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryChangeCallback_onremoved
-//==== LABEL: Check if CallHistoryChangeCallback onremoved is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
+//==== LABEL: Check if CallHistoryChangeCallback onremoved is called properly
 //==== EXECUTION_TYPE: manual
-//==== STEP: Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
-//==== EXPECT: Pass
 //==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryChangeCallback:onremoved M
 //==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA CBT CBOA
 //==== PRE Make a call
-//==== POST Delete existing call history
+
 setup({timeout:90000});
 var t = async_test("CallHistoryChangeCallback_onremoved", { timeout: 90000 }), onListenerCB, handle;
 
index 6d00d253d29a36c1e98146102860b954abcbee07..e560bd4de5ec08b62fd2b7be6397a91eb6134a1e 100644 (file)
@@ -58,7 +58,6 @@ 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
-//==== POST: Delete existing call history
 setup({timeout: 90000});
 
 var t = async_test("CallHistoryEntry", { timeout: 90000 }),
@@ -70,6 +69,7 @@ t.step(function () {
     });
 
     onSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
 
         result = results[0];
index 6e12d36f17d5b69709f86b4f66ef014264e93b7b..5c3b9b5411dc36ab82aeb802a35aa47675331e3e 100644 (file)
@@ -31,29 +31,25 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistoryEntryArraySuccessCallback_onsuccess
-//==== LABEL: Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
-//==== STEP Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null
-//==== EXPECT Pass
+//==== LABEL: Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly
 //==== EXECUTION_TYPE: manual
 //==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntryArraySuccessCallback:onsuccess M
 //==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA CBT CBOA
 //==== PRE Make an existence call history
-//  Check if callback is called and if its arguments have proper type
+
 setup({timeout: 90000});
 
-var t = async_test("CallHistoryEntryArraySuccessCallback_onsuccess", { timeout: 90000 });
+var t = async_test("CallHistoryEntryArraySuccessCallback_onsuccess", { timeout: 90000 }),
+    onSuccess, onError;
 
 t.step(function () {
-    var onSuccess, onError;
-
     onError = t.step_func(function (error) {
         assert_unreached("find has an error:" + error.message);
     });
 
     onSuccess = t.step_func(function (results) {
-        assert_false(results === null, "non-nullable argument is null");
-        assert_type(results, "array", "newItems should be an array");
+        assert_type(results, "array", "results should be an array");
 
         assert_true(results.length > 0, "add a new call history");
         assert_type(results[0].uid, "string", "uid type not valid");
index 2834d6f43326950f2ff0ca29a44fd58bf10c2103..8574752d6bb9da19cca2cb6b2b1c45173bd17938 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_DIALED
 //==== LABEL Check if direction value is DIALED when user dialed a call
 //==== EXECUTION_TYPE manual
-//==== STEP Check if direction value is DIALED when user dialed a call
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Dialed a call
+//==== PRE Make a call
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_direction_DIALED", { timeout: 90000 }),
     findSuccess, findError, expected = "DIALED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, expected + " call is not found in history");
         assert_equals(results[0].direction, expected, "direction value is not " + expected);
         t.done();
index b1693db664e97b42e6f7687988ec3f6ab901a5a1..6e07f13756b2e51a7f92f809564e8697683ea3a0 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_MISSED
 //==== LABEL Check if direction value is MISSED when user missed calls
 //==== EXECUTION_TYPE manual
-//==== STEP Check if direction value is MISSED when user missed calls
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Make at least one missed call
+//==== PRE Make at least one MISSED call, which was seen
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_direction_MISSED", { timeout: 90000 }),
     findSuccess, findError, expected = "MISSED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, expected + " call is not found in history");
         assert_equals(results[0].direction, expected, "direction value is not " + expected);
         t.done();
index c6d15673b07418d998bbba4ba88eac53d0c97903..3f081235bd2f408965a55b85fcd565d3734fc33a 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_MISSEDNEW
 //==== LABEL Check if direction value is MISSEDNEW when user missed call which is not seen
 //==== EXECUTION_TYPE manual
-//==== STEP Check if direction value is MISSEDNEW when user missed call which is not seen
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Make at least one missed call which is not seen
+//==== PRE Make at least one MISSED call which is NOT SEEN
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_direction_MISSEDNEW", { timeout: 90000 }),
     findSuccess, findError, expected = "MISSEDNEW",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, expected + " call is not found in history");
         assert_equals(results[0].direction, expected, "direction value is not " + expected);
         t.done();
index f0471709bce023a89447ad8cc6e4e1d7a7af7af9..e8646cf99f37fa2a668f434b73dd008bd73ef4c3 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_RECEIVED
 //==== LABEL Check if direction value is RECEIVED when user received a call
 //==== EXECUTION_TYPE manual
-//==== STEP Check if direction value is RECEIVED when user received a call
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Received a call
+//==== PRE Make a RECEIVED call
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_direction_RECEIVED", { timeout: 90000 }),
     findSuccess, findError, expected = "RECEIVED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, expected + " call is not found in history");
         assert_equals(results[0].direction, expected, "direction value is not " + expected);
         t.done();
index 3507565160d39a6ae7817f334d6c4bf59aa9efbd..3a0c992c5e0504280524115c975aa0b007dd3b8a 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_REJECTED
 //==== LABEL Check if direction value is REJECTED when user rejected a call
 //==== EXECUTION_TYPE manual
-//==== STEP Check if direction value is REJECTED when user rejected a call
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Rejected a call
+//==== PRE Make a REJECTED call
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_direction_REJECTED", { timeout: 90000 }),
     findSuccess, findError, expected = "REJECTED",
     filter = new tizen.AttributeFilter("direction", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, expected + " call is not found in history");
         assert_equals(results[0].direction, expected, "direction value is not " + expected);
         t.done();
index 09bbc420851a770c995cf67b771e8a2b9a00c5d8..35c2310958f6b4291757513957d6a521208ba2af 100644 (file)
@@ -33,17 +33,15 @@ Authors:
 //==== TEST: CallHistoryEntry_direction_attribute
 //==== LABEL: Check if CallHistoryEntry have direction attribute with proper type, not null
 //==== EXECUTION_TYPE: manual
-//==== STEP: Check if CallHistoryEntry have direction attribute with proper type, not null
-//==== EXPECT: Pass
 //==== SPEC: Tizen Web API:Social:Callhistory:CallHistoryEntry:direction A
 //==== SPEC_URL: https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AE AT AVL ASG AN
-//==== PRE: Make an existence call history with one new missed call and one other
+//==== PRE: Make an existence call history with one new missed call which was not seen
 
 setup({timeout: 90000});
 
 var t = async_test("CallHistoryEntry_direction_attribute", { timeout: 90000 }),
-    onSuccess, onError, result, wasMissedNew = false, i, tmp;
+    onSuccess, onError, result, i, tmp;
 
 t.step(function () {
     onError = t.step_func(function (error) {
@@ -51,6 +49,7 @@ t.step(function () {
     });
 
     onSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
 
         for(i = 0; i < results.length; i++) {
@@ -65,15 +64,12 @@ t.step(function () {
             assert_equals(result.direction, tmp ,"possible assign null to direction");
 
             if(result.direction === "MISSEDNEW") {
-                wasMissedNew = true;
                 result.direction = "MISSED";
                 assert_equals(result.direction, "MISSED", "direction should not be readonly");
+                t.done();
             }
         }
-
-        assert_true(wasMissedNew, "there are no MISSEDNEW calls in history");
-
-        t.done();
+        assert_unreached("There are no MISSEDNEW calls in history");
     });
 
     tizen.callhistory.find(onSuccess, onError);
index fa3bc1ad77dafa2314aabdfef3db10621d0eb57f..f51d21ca04bdd5d5615f87597083bfd27f8e657a 100644 (file)
@@ -44,12 +44,10 @@ Authors:
 //==== TEST: CallHistoryEntry_features_VOICECALL
 //==== LABEL Check if features value is VOICECALL for voice-only calls
 //==== EXECUTION_TYPE manual
-//==== STEP Check if features value is VOICECALL for voice-only calls
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:features A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA
-//==== PRE Make an voice-only call
+//==== PRE Make a VOICE ONLY call
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistoryEntry_features_VOICECALL", { timeout: 90000 }),
     findSuccess, findError, expected = "VOICECALL",
     filter = new tizen.AttributeFilter("features", "EXACTLY", expected);
 
-t.step(function() {
+t.step(function () {
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
         assert_true(results[0].features.length > 0, "Attribute features is empty");
         assert_equals(results[0].features[0], expected, "features value is not " + expected);
index 5c4ad0c89514c51a468ef04ce795e23edabffe1d..76a0141483e87736505141dbfe8dc283cdcdf2c9 100644 (file)
@@ -31,51 +31,48 @@ Authors:
 -->
 
 <html>
-  <head>
-    <title>Callhistory Test: CallHistoryEntry_type_TEL</title>
-    <link rel="author" title="Intel" href="http://www.intel.com" />
-    <link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html" />
-    <meta name="flags" content="" />
-    <meta name="assert" content="Check if attribute type value is TEL" />
-    <script src="../resources/testharness.js"></script>
-    <script src="../resources/testharnessreport.js"></script>
-    <script src="support/callcommon.js"></script>
-  </head>
-  <body>
-    <div id="log"></div>
-    <script type="text/javascript">
+<head>
+<title>Callhistory Test: CallHistoryEntry_type_TEL</title>
+<link rel="author" title="Intel" href="http://www.intel.com" />
+<link rel="help" href="https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html" />
+<meta name="flags" content="" />
+<meta name="assert" content="Check if attribute type value is TEL" />
+<script src="../resources/unitcommon.js"></script>
+<script src="support/callcommon.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script type="text/javascript">
 //==== TEST: CallHistoryEntry_type_TEL
 //==== LABEL Check if attribute type value is TEL
 //==== EXECUTION_TYPE manual
-//==== STEP Check if attribute type value is TEL
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistoryEntry:type A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA AT
-//==== PRE Make an existence call history
+//==== PRE Make some existence PHONE NUMBER ADDRESSING call history
 
-//  Check if attribute type value is TEL
 setup({timeout: 90000});
 
 var t = async_test("CallHistoryEntry_type_TEL", { timeout: 90000 });
 
-t.step(function() {
+t.step(function () {
     var onSuccess, onError, filter, expected = "TEL";
 
     filter = new tizen.AttributeFilter("type", "EXACTLY", expected);
 
     onSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
         assert_equals(results[0].type, expected, "type value is " + expected);
         t.done();
     });
 
     onError = t.step_func(function (error) {
-        assert_unreached("find has an error: " + error.message);
+        assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
     tizen.callhistory.find(onSuccess, onError, filter);
 });
-    </script>
-  </body>
+</script>
+</body>
 </html>
index f0a227d612860cbca21ed7d2494a3f101720fee9..94273174aa3ab3df18de33a36abf4201c7837b3d 100644 (file)
@@ -46,8 +46,6 @@ Authors:
 //==== TEST: CallHistory_find
 //==== LABEL Check if fetch call history items
 //==== EXECUTION_TYPE manual
-//==== STEP Check if fetch call history items
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MR
@@ -55,7 +53,7 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_find", { timeout: 90000 }), returnedValue,
+var t = async_test("CallHistory_find", { timeout: 90000 }), returnedValue = null,
     findSuccess, findError;
 
 t.step(function () {
@@ -64,6 +62,7 @@ t.step(function () {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_equals(returnedValue, undefined, "Incorrect returned value");
         assert_type(results, "array", "checking type of result");
         assert_true(results.length > 0, "call is not found in history");
         assert_true("uid" in results[0], "returned value should have uid property");
@@ -83,7 +82,6 @@ t.step(function () {
     });
 
     returnedValue = tizen.callhistory.find(findSuccess, findError);
-    assert_equals(returnedValue, undefined, "Incorrect returned value");
 });
 </script>
 </body>
index f1447b95548cb2b8fcbed573dd5983cf6c71ed62..b7647d500942ffafb7bef6dd330d88b38a0a6e65 100644 (file)
@@ -44,8 +44,6 @@ Authors:
 //==== TEST: CallHistory_find_limit_2
 //==== LABEL Check if limit the query result
 //==== EXECUTION_TYPE manual
-//==== STEP Check if limit the query result
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:find M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MR
@@ -54,10 +52,12 @@ Authors:
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_find_limit_2", { timeout: 90000 }),
-    findSuccess, findError, findAfterSuccess, findAfterError, len = 2, returnedValue;
+    findSuccess, findError, findAfterSuccess, findAfterError, len = 2,
+    returnedValue = null;
 
-t.step(function() {
+t.step(function () {
     findAfterSuccess = t.step_func(function (results) {
+        assert_equals(returnedValue, undefined, "Incorrect returned value");
         assert_type(results, "array", "Checking type of result");
         assert_equals(results.length, len, "expect limit the query result");
         t.done();
@@ -68,9 +68,9 @@ t.step(function() {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > len, len + "call(s) in history is not enough");
         returnedValue = tizen.callhistory.find(findAfterSuccess, findAfterError, null, null, len);
-        assert_equals(returnedValue, undefined, "Incorrect returned value");
     });
 
     findError = t.step_func(function (error) {
index ab9084142f63751a15de76aa97fe583fb8defdc0..9bf11d074e9ce46f526245b502d13ab114e29d75 100644 (file)
@@ -46,8 +46,6 @@ Authors:
 //==== TEST: CallHistory_remove
 //==== LABEL Check if delete a call history entry synchronously
 //==== EXECUTION_TYPE manual
-//==== STEP Check if delete a call history entry synchronously
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MMINA MAST MR
@@ -55,8 +53,8 @@ Authors:
 
 setup({timeout: 90000});
 
-var t = async_test("CallHistory_remove", { timeout: 90000 }), retVal,
-    count = 0, i, findSuccess, findError, findAfterSuccess, findAfterError, deletedCallHistoryEntry;
+var t = async_test("CallHistory_remove", { timeout: 90000 }), retVal = null,
+    removedUid, findSuccess, findError, findAfterSuccess, findAfterError, i =0;
 
 t.step(function () {
     findAfterError = t.step_func(function (error) {
@@ -64,9 +62,9 @@ t.step(function () {
     });
 
     findAfterSuccess =  t.step_func(function (results) {
-        assert_equals(results.length, count, "Call history entry is not deleted");
+        assert_type(results, "array", "Results should be an array");
         for (i = 0; i < results.length; i++) {
-            assert_not_equals(deletedCallHistoryEntry.uid, results[i].uid, "Call history entry still exists");
+            assert_not_equals(results[i].uid, removedUid, "Call history entry is not deleted");
         }
         t.done();
     });
@@ -76,9 +74,9 @@ t.step(function () {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
-        count = results.length - 1;
-        deletedCallHistoryEntry = results[0];
+        removedUid = results[0].uid;
         retVal = tizen.callhistory.remove(results[0]);
         assert_equals(retVal, undefined, "wrong value returned by remove method");
         tizen.callhistory.find(findAfterSuccess, findAfterError);
index 33898e6463566a9cfb632599679ebbf6b66b1c31..c33cba91cfc07501d84f6f9b140519930300aeaa 100644 (file)
@@ -33,20 +33,18 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: CallHistory_removeAll_with_successCallback
-//==== LABEL Check if removeAll called with optional successCallback works as expected - if delete all call history
+//==== LABEL Check if removeAll called with optional successCallback works as expected - delete all call history
 //==== EXECUTION_TYPE manual
-//==== STEP Check if delete all call history
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeAll M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MAST MR
 //==== PRE Make some existence call history
-//==== POST Delete existing call history
 
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeAll", { timeout: 90000 }),
-    findSuccess, findError, removeAllSuccess, removeAllError, findAfterSuccess, findAfterError, retVal;
+    findSuccess, findError, removeAllSuccess, removeAllError, findAfterSuccess,
+    findAfterError, retVal = null;
 
 t.step(function () {
     findAfterError = t.step_func(function (error) {
@@ -54,6 +52,7 @@ t.step(function () {
     });
 
     findAfterSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_equals(results.length, 0, "delete all call history is failed");
         t.done();
     });
@@ -72,6 +71,7 @@ t.step(function () {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
         retVal = tizen.callhistory.removeAll(removeAllSuccess, removeAllError);
     });
index 44ac9c50c9c97a28f84dbb67a65172838b9d717c..3885dcedc1852c4223730fe46adaecffcbdf90fe 100644 (file)
@@ -45,8 +45,6 @@ Authors:
 //==== TEST: CallHistory_removeBatch
 //==== LABEL Check if delete a list of call history entries asynchronously
 //==== EXECUTION_TYPE manual
-//==== STEP Check if delete a list of call history entries asynchronously
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MMINA MAST
@@ -56,7 +54,7 @@ setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeBatch", { timeout: 90000 }),
     onListenerCB, findSuccess, findError, findAfterSuccess, findAfterError,
-    returnedValue, handle;
+    returnedValue = null, handle, i = 0;
 
 t.step(function () {
 
@@ -72,10 +70,11 @@ t.step(function () {
         onremoved: t.step_func(function (removedItems) {
             assert_equals(returnedValue, undefined, "Incorrect returned value");
 
-            assert_false(removedItems === null, "non-nullable argument is null");
             assert_type(removedItems, "array", "removedItems should be an array");
-            assert_not_equals(removedItems.length, 0, "add a new call history");
-            assert_type(removedItems[0], "string", "removedItems elements type not valid");
+            assert_not_equals(removedItems.length, 0, "no remove items");
+            for (i = 0; i < removedItems.length; i++){
+                assert_type(removedItems[i], "string", "removedItems elements type not valid");
+            }
 
             tizen.callhistory.removeChangeListener(handle);
             tizen.callhistory.find(findAfterSuccess, findAfterError);
@@ -86,6 +85,7 @@ t.step(function () {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
         returnedValue = tizen.callhistory.removeBatch(results);
     });
index 3ace10700d605826e4a8656398e150b9cf5420eb..fedb905825513f09957099767ab59201487a9ee5 100644 (file)
@@ -30,18 +30,18 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_errorCallback_null
-//==== LABEL check whether removeBatch() method called with null errorCallback deletes several call history entries
+//==== LABEL check whether removeBatch() method called with null errorCallback deletes two entries from call history entries
 //==== EXECUTION_TYPE manual
-//==== STEP check whether removeBatch() method called with null errorCallback deletes several call history entries
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make at least 3 existence call history
+
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeBatch_errorCallback_null", { timeout: 90000 }),
-    findError, findSuccess, removeBatchSuccess, secondFindError, secondFindSuccess, list, count;
+    findError, findSuccess, removeBatchSuccess, secondFindError,
+    secondFindSuccess, list, filter;
 
 t.step(function () {
     secondFindError = t.step_func(function (error) {
@@ -49,12 +49,13 @@ t.step(function () {
     });
 
     secondFindSuccess = t.step_func(function (results) {
-        assert_equals(results.length, count, "delete a list of call history entries failed");
+        assert_type(results, "array", "Results should be an array");
+        assert_equals(results.length, 0, "delete a list of call history entries failed");
         t.done();
     });
 
     removeBatchSuccess = t.step_func(function () {
-        tizen.callhistory.find(secondFindSuccess, secondFindError);
+        tizen.callhistory.find(secondFindSuccess, secondFindError, filter);
     });
 
     findError = t.step_func(function (error) {
@@ -62,9 +63,13 @@ t.step(function () {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
-        count = results.length - list.length;
+        filter = new tizen.CompositeFilter("UNION", [
+            new tizen.AttributeFilter("uid", "EXCATLY", results[0].uid),
+            new tizen.AttributeFilter("uid", "EXCATLY", results[1].uid)
+        ]);
         tizen.callhistory.removeBatch(list, removeBatchSuccess, null);
     });
 
index 2bbc3caeca6726c8788abd0d35842883bda5b575..64d30536f312070eedb7ac06c43ace45c763e0fe 100644 (file)
@@ -31,10 +31,8 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_errorCallback_undefined
-//==== LABEL check whether removeBatch() method called with undefined errorCallback deletes several call history entries
+//==== LABEL check whether removeBatch() method called with undefined errorCallback throws exception
 //==== EXECUTION_TYPE manual
-//==== STEP check whether removeBatch() method called with undefined errorCallback deletes several call history entries
-//==== EXPECT Pass
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
@@ -43,7 +41,7 @@ Authors:
 setup({timeout: 90000});
 
 var this_test = async_test("CallHistory_removeBatch_errorCallback_undefined", { timeout: 90000 }),
-    onError, removeSuccessCB, successCB, list, count, exceptionName = "TypeMismatchError";
+    onError, removeSuccessCB, successCB, list, exceptionName = "TypeMismatchError";
 
 this_test.step(function () {
     successCB = this_test.step_func(function () {
@@ -55,9 +53,9 @@ this_test.step(function () {
     });
 
     removeSuccessCB = this_test.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
-        count = results.length - list.length;
 
         assert_throws({name: exceptionName},
             function () {
index 74482db7a8d860bcb107bdc7ee930fa95ee0c54c..ceed45faa8dff12bc9e86f7e6497c08a4e438b63 100644 (file)
@@ -42,14 +42,12 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_findByDirection
-//==== LABEL Check if find call history items by REJECTED and then delete the list of call history entries
+//==== LABEL Check if find call history items by REJECTED and then delete them from call history entries
 //==== EXECUTION_TYPE manual
-//==== STEP Check if find call history items by REJECTED and then delete the list of call history entries
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MAST
-//==== PRE dialed a call and rejected 3 calls
+//==== PRE Make at least 1 REJECTED call
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistory_removeBatch_findByDirection", { timeout: 90000 }
     findSuccess, findError, removeBatchSuccess, removeBatchError, findAfterSuccess, findAfterError,
     filter = new tizen.AttributeFilter("direction", "EXACTLY", "REJECTED");
 
-t.step(function() {
+t.step(function () {
     findAfterSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_equals(results.length, 0, "REJECTED call is not deleted");
         t.done();
     });
@@ -76,6 +75,7 @@ t.step(function() {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "REJECTED call is not found in history");
         tizen.callhistory.removeBatch(results, removeBatchSuccess, removeBatchError);
     });
index 46c91d4fb8b60708a9324888f2ea16c028c2e8f9..fdbfdf917308f98d06fb2148c41588594b57ae7f 100644 (file)
@@ -42,14 +42,12 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_findByType
-//==== LABEL Check if find call history items by TEL and then delete a list of call history entries
+//==== LABEL Check if find call history entries by TEL and then delete all of them from call history entries
 //==== EXECUTION_TYPE manual
-//==== STEP Check if find call history items by TEL and then delete a list of call history entries
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MAST
-//==== PRE Make some existence call history
+//==== PRE Make some existence PHONE NUMBER ADDRESSING call history
 
 setup({timeout: 90000});
 
@@ -57,8 +55,9 @@ var t = async_test("CallHistory_removeBatch_findByType", { timeout: 90000 }),
     findSuccess, findError, removeBatchSuccess, removeBatchError, findAfterSuccess, findAfterError,
     filter = new tizen.AttributeFilter("type", "EXACTLY", "TEL");
 
-t.step(function() {
-    findAfterSuccess = t.step_func(function(results) {
+t.step(function () {
+    findAfterSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_equals(results.length, 0, "delete a list of call history is failed");
         t.done();
     });
@@ -67,7 +66,7 @@ t.step(function() {
         assert_unreached("find() after error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
-    removeBatchSuccess = t.step_func(function() {
+    removeBatchSuccess = t.step_func(function () {
         tizen.callhistory.find(findAfterSuccess, findAfterError, filter);
     });
 
@@ -75,7 +74,8 @@ t.step(function() {
         assert_unreached("removeBatch() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
-    findSuccess = t.step_func(function(results) {
+    findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
         tizen.callhistory.removeBatch(results, removeBatchSuccess, removeBatchError);
     });
index b57fb87806a3f28a75cbac74303bdab97798bf76..61610e700f727f95acc64dff8cf9465572b13982 100644 (file)
@@ -30,18 +30,17 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_successCallback_null
-//==== LABEL check whether removeBatch() method called with null successCallback deletes several call history entries
+//==== LABEL check whether removeBatch() method called with null successCallback deletes two entries from call history
 //==== EXECUTION_TYPE manual
-//==== STEP check whether removeBatch() method called with null successCallback deletes several call history entries
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA
 //==== PRE Make at least 3 existence call history
+
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeBatch_successCallback_null", { timeout: 90000 }),
-    removeBatchError, removeBatchSuccess, findError, list;
+    removeBatchError, findSuccess, findError, list;
 
 t.step(function () {
     removeBatchError = t.step_func(function (error) {
@@ -51,15 +50,15 @@ t.step(function () {
     findError = t.step_func(function (error) {
         assert_unreached("find() error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
-
-    removeBatchSuccess = t.step_func(function (results) {
+    findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
         tizen.callhistory.removeBatch(list, null, removeBatchError);
         t.done();
     });
 
-    tizen.callhistory.find(removeBatchSuccess, findError);
+    tizen.callhistory.find(findSuccess, findError);
 });
 </script>
 </body>
index da8a63b759db52afcfaa5f365a108f2ade9923f2..f99945ef6437bd81f991a65edb7b5ea33b1283ab 100644 (file)
@@ -30,15 +30,14 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: CallHistory_removeBatch_successCallback_undefined
-//==== LABEL check whether removeBatch() method called with undefined successCallback deletes several call history entries
+//==== LABEL check whether removeBatch() method called with undefined successCallback throws exception
 //==== EXECUTION_TYPE manual
-//==== STEP check whether removeBatch() method called with undefined successCallback deletes several call history entries
-//==== EXPECT Pass
 //==== PRIORITY P2
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== 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
+
 setup({timeout: 90000});
 
 var this_test = async_test("CallHistory_removeBatch_successCallback_undefined", { timeout: 90000 }),
@@ -54,6 +53,7 @@ this_test.step(function () {
     });
 
     findSuccess = this_test.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 2, "Expected 3 calls in history at least, but found: " + results.length);
         list = [results[0], results[1]];
 
index 9a33ec65df1967abdc4bff0ff9b4c17c2843623f..c34f26ce911693646a335dbe11ae14dc363c79e8 100644 (file)
@@ -33,25 +33,24 @@ Authors:
 //==== TEST: CallHistory_removeBatch_with_errorCallback
 //==== LABEL Check if removeBatch called with optional errorCallback works as expected
 //==== EXECUTION_TYPE manual
-//==== STEP Check if removeBatch called with optional errorCallback works as expected
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MAST
 //==== PRE Make an existence call history
-//==== POST Delete existing call history
+
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeBatch_with_errorCallback", { timeout: 90000 }),
     findSuccess, findError, removeBatchSuccess, removeBatchError,
     findAfterSuccess, findAfterError;
 
-t.step(function() {
+t.step(function () {
     findAfterError = t.step_func(function (error) {
         assert_unreached("find() after error callback invoked: name: " + error.name + ", msg: " + error.message);
     });
 
     findAfterSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_equals(results.length, 0, "delete a list of call history entries failed");
         t.done();
     });
@@ -69,6 +68,7 @@ t.step(function() {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in the history.");
         tizen.callhistory.removeBatch(results, removeBatchSuccess, removeBatchError);
     });
index db704e9d86a122ab30f59acb38b6e0d8a343ae3a..2400604f2fa673f7a7b30e0b5c0c08bf6547a6de 100644 (file)
@@ -33,19 +33,17 @@ Authors:
 //==== TEST: CallHistory_removeBatch_with_successCallback
 //==== LABEL Check if removeBatch called with optional successCallback works as expected
 //==== EXECUTION_TYPE manual
-//==== STEP Check if removeBatch called with optional successCallback works as expected
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:removeBatch M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MOA MR
 //==== PRE Make an existence call history
-//==== POST Delete existing call history
+
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_removeBatch_with_successCallback", { timeout: 90000 }),
-    findSuccess, findError, removeBatchSuccess, retVal;
+    findSuccess, findError, removeBatchSuccess, retVal = null;
 
-t.step(function() {
+t.step(function () {
     removeBatchSuccess = t.step_func(function () {
         assert_equals(retVal, undefined, "wrong returned value");
         t.done();
@@ -56,6 +54,7 @@ t.step(function() {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in the history.");
         retVal = tizen.callhistory.removeBatch(results, removeBatchSuccess);
     });
index 45eb735eadcb5ba854b0290904910009d6e9fe6c..b32e4709230b3f4a897b5deda6b5a52e7a9bc903 100644 (file)
@@ -44,8 +44,6 @@ Authors:
 //==== TEST: CallHistory_remove_findBySortMode
 //==== LABEL Check if find call history items by startTime desc and then delete the first call history entry
 //==== EXECUTION_TYPE manual
-//==== STEP Check if find call history items by startTime desc and then delete the first call history entry
-//==== EXPECT Pass
 //==== SPEC Tizen Web API:Social:Callhistory:CallHistory:remove M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/callhistory.html
 //==== TEST_CRITERIA MMINA MAST
@@ -54,19 +52,18 @@ Authors:
 setup({timeout: 90000});
 
 var t = async_test("CallHistory_remove_findBySortMode", { timeout: 90000 }),
-    count = 0, i = 0, findSuccess, findError, findAfterSuccess, findAfterError,
-    deletedCallHistoryEntry, sortMode,
-    sortMode = new tizen.SortMode("startTime", "DESC");
+    findSuccess, findError, findAfterSuccess, findAfterError, sortMode, i = 0,
+    removedUid, sortMode = new tizen.SortMode("startTime", "DESC");
 
-t.step(function() {
+t.step(function () {
     findAfterError = t.step_func(function (error) {
         assert_unreached("find after errorCallback called: " + error.name + " with message: " + error.message);
     });
 
     findAfterSuccess =  t.step_func(function (results) {
-        assert_equals(results.length, count, "Call history entry is not deleted");
-        for (i=0; i<results.length; i++) {
-            assert_not_equals(deletedCallHistoryEntry.uid, results[i].uid, "Call history entry still exists");
+        assert_type(results, "array", "Results should be an array");
+        for (i = 0; i < results.length; i++) {
+            assert_not_equals(results[i].uid, removedUid, "Call history entry is not deleted");
         }
         t.done();
     });
@@ -76,9 +73,9 @@ t.step(function() {
     });
 
     findSuccess = t.step_func(function (results) {
+        assert_type(results, "array", "Results should be an array");
         assert_true(results.length > 0, "Call is not found in history");
-        count = results.length - 1;
-        deletedCallHistoryEntry = results[0];
+        removedUid = results[0].uid;
         tizen.callhistory.remove(results[0]);
         tizen.callhistory.find(findAfterSuccess, findAfterError);
     });
index ac6d6dc5fbae675ede15a1469d9bb5ef6d44ef14..2017f2c41fce02a13f499a5e6d7af6fbb94dbecc 100644 (file)
       <testcase purpose="Check if fetch call history items" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_find">
         <description>
           <pre_condition>Make an existence call history (at least one entry)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if fetch call history items</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="Check if delete a call history entry synchronously" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_remove">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete a call history entry synchronously</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="Check if delete a list of call history entries asynchronously" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete a list of call history entries asynchronously</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="Check if limit the query result" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_find_limit_2">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if limit the query result</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find call history items by REJECTED and then delete the list of call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_findByDirection">
+      <testcase purpose="Check if find call history items by REJECTED and then delete them from call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_findByDirection">
         <description>
-          <pre_condition>dialed a call and rejected 3 calls</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by REJECTED and then delete the list of call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
       <testcase purpose="Check if find call history items by startTime desc and then delete the first call history entry" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_remove_findBySortMode">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by startTime desc and then delete the first call history entry</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if find call history items by TEL and then delete a list of call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_findByType">
+      <testcase purpose="Check if find call history entries by TEL and then delete all of them from call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_findByType">
         <description>
-          <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by TEL and then delete a list of call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if attribute type value is TEL" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_type_TEL">
         <description>
-          <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if attribute type value is TEL</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if features value is VOICECALL for voice-only calls" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_features_VOICECALL">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if features value is VOICECALL for voice-only calls</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html</test_script_entry>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if direction value is DIALED when user dialed a call" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_DIALED">
         <description>
-          <pre_condition>Dialed a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is DIALED when user dialed a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <pre_condition>Make a call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_direction_DIALED.html</test_script_entry>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if direction value is MISSED when user missed calls" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_MISSED">
         <description>
-          <pre_condition>Make at least one missed call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is MISSED when user missed calls</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
       </testcase>
       <testcase purpose="Check if direction value is MISSEDNEW when user missed call which is not seen" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_MISSEDNEW">
         <description>
-          <pre_condition>Make at least one missed call which is not seen</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is MISSEDNEW when user missed call which is not seen</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
       </testcase>
       <testcase purpose="Check if direction value is RECEIVED when user received a call" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_RECEIVED">
         <description>
-          <pre_condition>Received a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is RECEIVED when user received a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
       </testcase>
       <testcase purpose="Check if direction value is REJECTED when user rejected a call" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_REJECTED">
         <description>
-          <pre_condition>Rejected a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is REJECTED when user rejected a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null successCallback deletes several call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_successCallback_null">
+      <testcase purpose="check whether removeBatch() method called with null successCallback deletes two entries from call history" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_successCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with null successCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_null.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null errorCallback deletes several call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_errorCallback_null">
+      <testcase purpose="check whether removeBatch() method called with null errorCallback deletes two entries from call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_errorCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with null errorCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="Check if removeBatch called with optional successCallback works as expected" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_with_successCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if removeBatch called with optional successCallback works as expected</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="Check if removeBatch called with optional errorCallback works as expected" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeBatch_with_errorCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if removeBatch called with optional errorCallback works as expected</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if removeAll called with optional successCallback works as expected - if delete all call history" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeAll_with_successCallback">
+      <testcase purpose="Check if removeAll called with optional successCallback works as expected - delete all call history" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistory_removeAll_with_successCallback">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete all call history</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html</test_script_entry>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryChangeCallback_onadded">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onadded.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if CallHistoryChangeCallback onchanged is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryChangeCallback_onchanged">
+      <testcase purpose="Check if CallHistoryChangeCallback onchanged is called properly" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryChangeCallback_onchanged">
         <description>
-          <pre_condition>Make an untouched missed call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <pre_condition>Make an untouched MISSED call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onchanged.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntryArraySuccessCallback_onsuccess">
+      <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntryArraySuccessCallback_onsuccess">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html</test_script_entry>
         </description>
         <specs>
       </testcase>
       <testcase purpose="Check if CallHistoryEntry have direction attribute with proper type, not null" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryEntry_direction_attribute">
         <description>
-          <pre_condition>Make an existence call history with one new missed call and one other</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryEntry have direction attribute with proper type, not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined successCallback deletes several call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_successCallback_undefined">
+      <testcase purpose="check whether removeBatch() method called with undefined successCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_successCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with undefined successCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined errorCallback deletes several call history entries" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_errorCallback_undefined">
+      <testcase purpose="check whether removeBatch() method called with undefined errorCallback throws exception" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P2" id="CallHistory_removeBatch_errorCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with undefined errorCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html</test_script_entry>
         </description>
         <specs>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if CallHistoryChangeCallback onremoved is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryChangeCallback_onremoved">
+      <testcase purpose="Check if CallHistoryChangeCallback onremoved is called properly" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P1" id="CallHistoryChangeCallback_onremoved">
         <description>
           <pre_condition>Make a call</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onremoved.html</test_script_entry>
         </description>
         <specs>
       <testcase purpose="check CallHistoryEntry attributes and functions" type="compliance" status="approved" component="TizenAPI/Social/Callhistory" execution_type="manual" priority="P3" id="CallHistoryEntry">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
           <steps>
             <step order="1">
               <step_desc>several tests executed from base test</step_desc>
index 934715106319aaf8bab407231c7a353a75a4adfe..c5eefb1cac481b3f062680fa0ded143595d97d12 100644 (file)
       <testcase purpose="Check if fetch call history items" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_find">
         <description>
           <pre_condition>Make an existence call history (at least one entry)</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if fetch call history items</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if delete a call history entry synchronously" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_remove">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete a call history entry synchronously</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if delete a list of call history entries asynchronously" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete a list of call history entries asynchronously</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if limit the query result" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_find_limit_2">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if limit the query result</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_limit_2.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find call history items by REJECTED and then delete the list of call history entries" component="TizenAPI/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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_findByDirection">
         <description>
-          <pre_condition>dialed a call and rejected 3 calls</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by REJECTED and then delete the list of call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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 items by startTime desc and then delete the first call history entry" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_remove_findBySortMode">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by startTime desc and then delete the first call history entry</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_remove_findBySortMode.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if find call history items by TEL and then delete a list of call history entries" component="TizenAPI/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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_findByType">
         <description>
-          <pre_condition>Make some existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if find call history items by TEL and then delete a list of call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         </description>
       </testcase>
       <testcase purpose="Check if attribute type value is TEL" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_type_TEL">
         <description>
-          <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if attribute type value is TEL</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
         </description>
       </testcase>
       <testcase purpose="Check if features value is VOICECALL for voice-only calls" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_features_VOICECALL">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if features value is VOICECALL for voice-only calls</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntry_features_VOICECALL.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if direction value is DIALED when user dialed a call" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_DIALED">
         <description>
-          <pre_condition>Dialed a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is DIALED when user dialed a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_MISSED">
         <description>
-          <pre_condition>Make at least one missed call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is MISSED when user missed calls</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_MISSEDNEW">
         <description>
-          <pre_condition>Make at least one missed call which is not seen</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is MISSEDNEW when user missed call which is not seen</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_RECEIVED">
         <description>
-          <pre_condition>Received a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is RECEIVED when user received a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_REJECTED">
         <description>
-          <pre_condition>Rejected a call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if direction value is REJECTED when user rejected a call</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_offset_null.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with null successCallback deletes several call history entries" component="TizenAPI/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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with null successCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <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 null errorCallback deletes several call history entries" component="TizenAPI/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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_null">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with null errorCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_null.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if removeBatch called with optional successCallback works as expected" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_with_successCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if removeBatch called with optional successCallback works as expected</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_successCallback.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if removeBatch called with optional errorCallback works as expected" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_with_errorCallback">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if removeBatch called with optional errorCallback works as expected</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_with_errorCallback.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if removeAll called with optional successCallback works as expected - if delete all call history" component="TizenAPI/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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeAll_with_successCallback">
         <description>
           <pre_condition>Make some existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if delete all call history</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeAll_with_successCallback.html</test_script_entry>
         </description>
       </testcase>
       </testcase>
       <testcase purpose="Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryChangeCallback_onadded">
         <description>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryChangeCallback onadded is called and if its arguments have proper type</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onadded.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if CallHistoryChangeCallback onchanged is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryChangeCallback_onchanged">
+      <testcase purpose="Check if CallHistoryChangeCallback onchanged is called properly" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryChangeCallback_onchanged">
         <description>
-          <pre_condition>Make an untouched missed call</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <pre_condition>Make an untouched MISSED call</pre_condition>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryChangeCallback_onchanged.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntryArraySuccessCallback_onsuccess">
+      <testcase purpose="Check if CallHistoryEntryArraySuccessCallback onsuccess is called properly" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntryArraySuccessCallback_onsuccess">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryEntryArraySuccessCallback onsuccess is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistoryEntryArraySuccessCallback_onsuccess.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if CallHistoryEntry have direction attribute with proper type, not null" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry_direction_attribute">
         <description>
-          <pre_condition>Make an existence call history with one new missed call and one other</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if CallHistoryEntry have direction attribute with proper type, not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
+          <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>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_errorCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined successCallback deletes several call history entries" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_undefined">
+      <testcase purpose="check whether removeBatch() method called with undefined successCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_successCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with undefined successCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_successCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether removeBatch() method called with undefined errorCallback deletes several call history entries" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_undefined">
+      <testcase purpose="check whether removeBatch() method called with undefined errorCallback throws exception" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistory_removeBatch_errorCallback_undefined">
         <description>
           <pre_condition>Make at least 3 existence call history</pre_condition>
-          <steps>
-            <step order="1">
-              <step_desc>check whether removeBatch() method called with undefined errorCallback deletes several call history entries</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_removeBatch_errorCallback_undefined.html</test_script_entry>
         </description>
       </testcase>
           <test_script_entry>/opt/tct-callhistory-tizen-tests/callhistory/CallHistory_find_filter_undefined.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if CallHistoryChangeCallback onremoved is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryChangeCallback_onremoved">
+      <testcase purpose="Check if CallHistoryChangeCallback onremoved is called properly" component="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryChangeCallback_onremoved">
         <description>
           <pre_condition>Make a call</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
-          <steps>
-            <step order="1">
-              <step_desc>Check if callback is called and if its arguments have proper type, all non-optional arguments were given, and non-nullable arguments were not null</step_desc>
-              <expected>Pass</expected>
-            </step>
-          </steps>
           <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="TizenAPI/Social/Callhistory" execution_type="manual" id="CallHistoryEntry">
         <description>
           <pre_condition>Make an existence call history</pre_condition>
-          <post_condition>Delete existing call history</post_condition>
           <steps>
             <step order="1">
               <step_desc>several tests executed from base test</step_desc>