----------------------------------------------
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
//==== 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
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");
<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;
<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;
//==== 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 }),
});
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];
<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");
//==== 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});
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();
//==== 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});
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();
//==== 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});
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();
//==== 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});
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();
//==== 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});
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();
//==== 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) {
});
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++) {
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);
//==== 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});
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);
-->
<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>
//==== 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
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 () {
});
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");
});
returnedValue = tizen.callhistory.find(findSuccess, findError);
- assert_equals(returnedValue, undefined, "Incorrect returned value");
});
</script>
</body>
//==== 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
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();
});
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) {
//==== 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
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) {
});
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();
});
});
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);
<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) {
});
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();
});
});
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);
});
//==== 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
var t = async_test("CallHistory_removeBatch", { timeout: 90000 }),
onListenerCB, findSuccess, findError, findAfterSuccess, findAfterError,
- returnedValue, handle;
+ returnedValue = null, handle, i = 0;
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);
});
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);
});
<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) {
});
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) {
});
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);
});
<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
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 () {
});
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 () {
<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});
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();
});
});
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);
});
<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});
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();
});
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);
});
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);
});
<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) {
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>
<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 }),
});
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]];
//==== 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();
});
});
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);
});
//==== 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();
});
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);
});
//==== 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
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();
});
});
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);
});
<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>
<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>