[Filesystem] Fixed tests according to maintainer's remarks - part 2 + other amendments
authorMariusz Polasinski <m.polasinski@samsung.com>
Thu, 29 Aug 2013 13:35:58 +0000 (15:35 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Thu, 29 Aug 2013 14:12:23 +0000 (14:12 +0000)
Change-Id: Ib00c22d3095855d077b8da5981ddbe894aeec99f

17 files changed:
tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html
tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html
tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html
tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html [deleted file]
tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html
tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html
tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html
tct-filesystem-tizen-tests/filesystem/File_moveTo_with_file_handle.html
tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html [deleted file]
tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html [new file with mode: 0644]
tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html
tct-filesystem-tizen-tests/tests.full.xml
tct-filesystem-tizen-tests/tests.xml

index eda5667ee7ae09b418d8cb36e58b322909fbe54b..24a29f8c22ee9ab7bbc612df814e9af0846815b0 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 //==== LABEL check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.
 //==== PRIORITY P2
 //==== STEP check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.
-//==== EXPECT directory should be copied to another location with same name in overwrite is true.
+//==== EXPECT directory should be copied to another location where already exist the directory with the same name
 //==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
 //==== TEST_CRITERIA MOA
index 0cfb4744232fa2946a073eda5b5d64e0a2ed986c..34e620d21cc456cd1b56573ac22efbe035b14825 100644 (file)
@@ -45,28 +45,29 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: File_copyTo_dir_samedir_samename_overwrite_true
-//==== LABEL check if copy a directory to the same location with the same name (overwrite is true) was successyful.
+//==== LABEL check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).
 //==== PRIORITY P2
-//==== STEP check if copy a directory to the same location with the same name (overwrite is true) was successyful.
-//==== EXPECT directory should be copied to another location with same name in overwrite is true.
+//==== STEP check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).
+//==== EXPECT exception should be thrown.
 //==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
+//==== TEST_CRITERIA MERRCB
 
 
 var resolveSuccess, resolveError, copySuccess, fsTestDir1, fsTestDirName1, fsTestSubDir1, fsTestSubDirName1,
-    t = async_test("File_copyTo_dir_samedir_samename_overwrite_true"), copyError;
+    t = async_test("File_copyTo_dir_samedir_samename_overwrite_true"), copyError, expectedError = "IOError";
 
 t.step(function () {
     fsTestDirName1 = getDirName("filesystem1");
     fsTestSubDirName1 = getDirName("filesystem1sub");
 
     copySuccess = t.step_func(function () {
-        t.done();
+        assert_unreached("copySuccess callback shouldn't be invoked");
     });
 
     copyError = t.step_func(function (error) {
-        assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+        assert_equals(error.name, expectedError, "wrong error type");
+        t.done();
     });
 
     resolveSuccess = t.step_func(function (dir) {
index cfd0cfc46d53cfcf31f48600578188b39694e776..5e8c5c1bb9f81b04117162d984a5f031899ed356 100644 (file)
@@ -36,7 +36,7 @@ Authors:
 //==== LABEL check if copy a file to another location of the file with the same name (overwrite is true) was successfull.
 //==== PRIORITY P2
 //==== STEP check if copy a file to another location of the file with the same name (overwrite is true) was successfull.
-//==== EXPECT file should be copied to another location with same name.
+//==== EXPECT file should be copied to another location where already exist the file with the same name
 //==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
 //==== TEST_CRITERIA MOA
diff --git a/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html b/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html
new file mode 100644 (file)
index 0000000..b0ed01b
--- /dev/null
@@ -0,0 +1,87 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+*Redistributions of works must retain the original copyright notice, this list
+of conditions and the following disclaimer.
+*Redistributions in binary form must reproduce the original copyright notice,
+this list of conditions and the following disclaimer in the documentation
+and/or other materials provided with the distribution.
+*Neither the name of Intel Corporation nor the names of its contributors
+may be used to endorse or promote products derived from this work without
+specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Kaiyu <kaiyux.li@intel.com> 
+        Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_copyTo_file_samedir_samename_overwrite_true</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_copyTo_file_samedir_samename_overwrite_true
+//==== LABEL check if error callback invoked when copy a file to the same location with the same name (overwrite is true)
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when copy a file to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+var t = async_test("File_copyTo_file_samedir_samename_overwrite_true"), resolveSuccess, copyError,
+    resolveError, copySuccess, fsTestFile, fsTestFileName, fsTestDir, fsTestDirName, expectedError = "IOError";
+
+t.step(function () {
+    fsTestDirName = getFileName("filesystem");
+    fsTestFileName =  getFileName("filesystem.txt");
+
+    copySuccess = t.step_func(function () {
+        assert_unreached("copySuccess callback shouldn't be invoked");
+    });
+
+    copyError = t.step_func(function (error) {
+        assert_equals(error.name, expectedError, "wrong error type");
+        t.done();
+    });
+
+    resolveSuccess = t.step_func(function (dir) {
+        fsTestDir = dir.createDirectory(fsTestDirName);
+        fsTestFile = fsTestDir.createFile(fsTestFileName);
+        fsTestDir.copyTo(fsTestFile.fullPath, fsTestFile.path, true, copySuccess, copyError);
+    });
+
+    resolveError = t.step_func(function (error) {
+        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    prepareForTesting(t, function () {
+        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+    });
+});
+</script>
+</body>
+</html>
\ No newline at end of file
diff --git a/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html b/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html
deleted file mode 100644 (file)
index ff6c726..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification,
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice,
-  this list of conditions and the following disclaimer in the documentation
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors
-  may be used to endorse or promote products derived from this work without
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-Authors:
-        Kaiyu <kaiyux.li@intel.com>
-        Guan,JingX <jingx.guan@intel.com>
-        Mariusz Polasinski <m.polasinski@samsung.com>
-
--->
-
-<html lang="en">
-
-</head>
-<title>File_copyTo_writeFile_newDir</title>
-<script type="text/javascript" src="../resources/testharness.js"></script>
-<script type="text/javascript" src="../resources/testharnessreport.js"></script>
-<script type="text/javascript" src="support/filesystem_common.js"></script>
-</head>
-
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-//==== TEST: File_copyTo_writeFile_newDir
-//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with different file name
-//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with different file name
-//==== EXPECT PASS
-//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, copySuccess, copyError, openStreamSuccess, openStreamError,
-    fsTestFileName, fsTestFile, fsTestDirName, fsTestDir,
-    t = async_test("File_copyTo_writeFile_newDir");
-
-t.step(function () {
-    fsTestFileName = getFileName("filesystem.txt");
-    fsTestDirName = getDirName("filesystem");
-
-    copyError = t.step_func(function (error) {
-        assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    copySuccess = t.step_func(function () {
-        t.done();
-    });
-
-    openStreamError = t.step_func(function (error) {
-        assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    openStreamSuccess = t.step_func(function (fs) {
-        fs.write("test");
-        fs.close();
-        fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/new" + fsTestFile.name, true, copySuccess, copyError);
-    });
-
-    resolveSuccess = t.step_func(function (dir) {
-        fsTestDir = dir.createDirectory(fsTestDirName);
-        fsTestFile = fsTestDir.createFile(fsTestFileName);
-        fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
-    });
-
-    resolveError = t.step_func(function (error) {
-        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    prepareForTesting(t, function () {
-        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
-    });
-
-});
-
-</script>
-</body>
-</html>
diff --git a/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html b/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html
new file mode 100644 (file)
index 0000000..729e3f6
--- /dev/null
@@ -0,0 +1,101 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice,
+  this list of conditions and the following disclaimer in the documentation
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors
+  may be used to endorse or promote products derived from this work without
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Authors:
+        Kaiyu <kaiyux.li@intel.com>
+        Guan,JingX <jingx.guan@intel.com>
+        Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+</head>
+<title>File_copyTo_writeFile_newName</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_copyTo_writeFile_newName
+//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with different file name
+//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with different file name
+//==== EXPECT PASS
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MOA
+
+
+var resolveSuccess, resolveError, copySuccess, copyError, openStreamSuccess, openStreamError,
+    fsTestFileName, fsTestFileName2, fsTestFile, fsTestDirName, fsTestDir,
+    t = async_test("File_copyTo_writeFile_newName");
+
+t.step(function () {
+    fsTestFileName = getFileName("filesystem.txt");
+    fsTestFileName2 = getFileName("filesystem2.txt");
+    fsTestDirName = getDirName("filesystem");
+
+    copyError = t.step_func(function (error) {
+        assert_unreached("copyTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    copySuccess = t.step_func(function () {
+        t.done();
+    });
+
+    openStreamError = t.step_func(function (error) {
+        assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    openStreamSuccess = t.step_func(function (fs) {
+        fs.write("test");
+        fs.close();
+        fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFileName2, true, copySuccess, copyError);
+    });
+
+    resolveSuccess = t.step_func(function (dir) {
+        fsTestDir = dir.createDirectory(fsTestDirName);
+        fsTestFile = fsTestDir.createFile(fsTestFileName);
+        fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
+    });
+
+    resolveError = t.step_func(function (error) {
+        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    prepareForTesting(t, function () {
+        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+    });
+
+});
+
+</script>
+</body>
+</html>
index f99b8dcba07d3dc4c5744155104dd1aa33ea242a..e89b19d0fa70ea4f8d4a21cfe7ec7c1fbd33806c 100644 (file)
@@ -45,8 +45,8 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: File_copyTo_writeFile_overwrite_false
-//==== LABEL check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)
-//==== STEP check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)
+//==== LABEL check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)
+//==== STEP check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)
 //==== EXPECT PASS
 //==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
@@ -55,7 +55,7 @@ Authors:
 
 var t = async_test("File_copyTo_writeFile_overwirte_false"), resolveSuccess, resolveError,
     openStreamSuccess, openStreamError, copyToSuccess, copyToError, fsTestFileName,
-    fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError";
+    fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError", mainDir;
 
 t.step(function () {
     fsTestFileName = getFileName("filesystem.txt");
@@ -73,7 +73,7 @@ t.step(function () {
     openStreamSuccess = t.step_func(function (fs) {
         fs.write("test");
         fs.close();
-        fsTestDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name, false, copyToSuccess, copyToError);
+        mainDir.copyTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name, false, copyToSuccess, copyToError);
     });
 
     openStreamError = t.step_func(function (error) {
@@ -81,8 +81,10 @@ t.step(function () {
     });
 
     resolveSuccess = t.step_func(function (dir) {
+        mainDir = dir;
+        fsTestFile = dir.createFile(fsTestFileName);
         fsTestDir = dir.createDirectory(fsTestDirName);
-        fsTestFile = fsTestDir.createFile(fsTestFileName);
+        fsTestDir.createFile(fsTestFileName);
         fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
     });
 
diff --git a/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html b/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html
new file mode 100644 (file)
index 0000000..66a5f86
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+Authors:
+    Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_moveTo_dir_samedir_samename_overwrite_false</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_moveTo_dir_samedir_samename_overwrite_false
+//==== LABEL check if error callback invoked when move a directory to the same location with the same name (overwrite is false).
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when move a directory to the same location with the same name (overwrite is false)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
+    fsTestSubDirName1, expected = "IOError",
+    t = async_test("File_moveTo_dir_samedir_samename_overwrite_false");
+
+t.step(function () {
+    fsTestDirName1 = getDirName("filesystem1");
+    fsTestSubDirName1 = getDirName("filesystem1sub");
+
+    moveToSuccess = t.step_func(function () {
+        assert_unreached("copySuccess callback shouldn't be invoked");
+    });
+
+    moveToError = t.step_func(function (error) {
+        assert_equals(error.name, expected, "wrong error type");
+        t.done();
+    });
+
+    resolveSuccess = t.step_func(function (dir) {
+        fsTestDir1 = dir.createDirectory(fsTestDirName1);
+        fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
+        fsTestDir1.moveTo(fsTestSubDir1.fullPath, fsTestSubDir1.path, false, moveToSuccess, moveToError);
+    });
+
+    resolveError = t.step_func(function (error) {
+        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    prepareForTesting(t, function () {
+        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+    });
+});
+
+</script>
+</body>
+</html>
diff --git a/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html b/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html
new file mode 100644 (file)
index 0000000..148ca5f
--- /dev/null
@@ -0,0 +1,79 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2013 Samsung Electronics Co., Ltd.
+
+Licensed under the Apache License, Version 2.0 (the License);
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+
+Authors:
+    Mariusz Polasinski <m.polasinski@samsung.com>
+
+-->
+
+<html lang="en">
+
+<head>
+<title>File_moveTo_dir_samedir_samename_overwrite_true</title>
+<script type="text/javascript" src="../resources/testharness.js"></script>
+<script type="text/javascript" src="../resources/testharnessreport.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+//==== TEST: File_moveTo_dir_samedir_samename_overwrite_true
+//==== LABEL check if error callback invoked when move a directory to the same location with the same name (overwrite is true).
+//==== PRIORITY P2
+//==== STEP check if error callback invoked when move a directory to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
+//==== SPEC Tizen Web API:IO:Filesystem:File:copyTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MERRCB
+
+
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDir1, fsTestDirName1, fsTestSubDir1,
+    fsTestSubDirName1, expected = "IOError",
+    t = async_test("File_moveTo_dir_samedir_samename_overwrite_true");
+
+t.step(function () {
+    fsTestDirName1 = getDirName("filesystem1");
+    fsTestSubDirName1 = getDirName("filesystem1sub");
+
+    moveToSuccess = t.step_func(function () {
+        assert_unreached("copySuccess callback shouldn't be invoked");
+    });
+
+    moveToError = t.step_func(function (error) {
+        assert_equals(error.name, expected, "wrong error type");
+        t.done();
+    });
+
+    resolveSuccess = t.step_func(function (dir) {
+        fsTestDir1 = dir.createDirectory(fsTestDirName1);
+        fsTestSubDir1 = fsTestDir1.createDirectory(fsTestSubDirName1);
+        fsTestDir1.moveTo(fsTestSubDir1.fullPath, fsTestSubDir1.path, true, moveToSuccess, moveToError);
+    });
+
+    resolveError = t.step_func(function (error) {
+        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    prepareForTesting(t, function () {
+        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+    });
+});
+
+</script>
+</body>
+</html>
index ea9d8838865b9763cb898e66f2467164759a16f3..56c863ea8be2dd2330e74b717a723968c1914d44 100644 (file)
@@ -40,17 +40,17 @@ Authors:
 <div id="log"></div>
 <script type="text/javascript">
 //==== TEST: File_moveTo_file_samedir_samename_overwrite_true
-//==== LABEL check if move a file to same location with the same name (overwrite is true) was successyful.
+//==== LABEL check if error callback invoked when move a file to the same location with the same name (overwrite is true)
 //==== PRIORITY P2
-//==== STEP check if move a file to same location with the same name (overwrite is true) was successyful.
-//==== EXPECT file should be moved to same location with same name.
+//==== STEP check if error callback invoked when move a file to the same location with the same name (overwrite is true)
+//==== EXPECT exception should be thrown.
 //==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MAST
+//==== TEST_CRITERIA MERRCB
 
 
 var t = async_test("File_moveTo_file_samedir_samename_overwrite_true"), resolveSuccess,
-    resolveError, moveToSuccess, moveToError,
+    resolveError, moveToSuccess, moveToError, expectedError = "IOError",
     fsTestDirName1, fsTestDirName2, fsTestFileName, fsTestDir1,
     fsTestDir2, fsTestFile;
 
@@ -60,10 +60,12 @@ t.step(function () {
     fsTestFileName = getFileName("filesystem.txt");
 
     moveToSuccess = t.step_func(function () {
-        t.done();
+        assert_unreached("moveToSuccess callback should not be invoked");
     });
+
     moveToError = t.step_func(function (error) {
-        assert_unreached("moveTo() error callback invoked: name: " + error.name + ", msg: " + error.message);
+        assert_equals(error.name, expectedError, "wrong error type");
+        t.done();
     });
 
     resolveSuccess = t.step_func(function (dir) {
index cd35c85d92ea8d64a23401367638e032014a6c41..93d0cbe602e80b01a512d87e84a5e63af7b31d60 100644 (file)
@@ -29,15 +29,16 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: File_moveTo_with_additional_null_parameter
-//==== LABEL check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file
+//==== LABEL check whether 'moveTo' method invoked with additional null parameter properly transfers a file
 //==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/filesystem.html#moveToid2592799
 //==== TEST_CRITERIA MOA
 
-var this_test = async_test("File_moveTo_with_additional_null_parameter"),
+var this_test = async_test("File_moveTo_with_additional_null_parameter"), fsTestFileName2,
     resolveSuccess, resolveError, file, movedPath, fsTestFileName, moveToSuccess;
 this_test.step(function () {
     fsTestFileName = getFileName("filesystem.txt");
+    fsTestFileName2 = getFileName("filesystem2.txt");
 
     moveToSuccess = this_test.step_func(function () {
         this_test.done();
@@ -46,7 +47,7 @@ this_test.step(function () {
     resolveSuccess = this_test.step_func(function (dir) {
         file = dir.createFile(fsTestFileName);
         assert_true(isFileObject(file), "isFileObject(createdFile)");
-        movedPath = dir.fullPath + "/" + fsTestFileName;
+        movedPath = dir.fullPath + "/" + fsTestFileName2;
         dir.moveTo(file.fullPath, movedPath, true, moveToSuccess, null, null);
     });
 
index 7e5eda54f61c2985607518d5b7c574783b29b48c..3faeb1d80716fce8acee4d3d48543f28cd214aa8 100644 (file)
@@ -43,22 +43,22 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: File_moveTo_with_file_handle
-//==== LABEL check if throw an exception when moveTo with file handle.
+//==== LABEL check if errorCallback will be invoked when moveTo will be used with file handle.
 //==== PRIORITY P2
-//==== STEP check if throw an exception when moveTo with file handle.
+//==== STEP check if errorCallback will be invoked when moveTo will be used with file handle.
 //==== EXPECT exception should be thrown.
 //==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
 //==== TEST_CRITERIA MERRCB
 
 
-var resolveSuccess, resolveError, moveToSuccess, moveToError, documentsDir, fsTestDirName1,
+var resolveSuccess, resolveError, moveToSuccess, moveToError, fsTestDirName1,
     fsTestDirName2, fsTestDir1, fsTestDir2, fsTestFileName, fsTestFile,
     expectedError = "IOError", t = async_test("File_moveTo_with_file_handle");
 
 t.step(function () {
     fsTestDirName1 = getFileName("filesystem");
-    fsTestDirName2 = getFileName("destination");
+    fsTestDirName2 = getFileName("filesystem2");
     fsTestFileName = getFileName("filesystem.txt");
 
     moveToSuccess = t.step_func(function () {
@@ -71,11 +71,10 @@ t.step(function () {
     });
 
     resolveSuccess = t.step_func(function (dir) {
-        documentsDir = dir;
         fsTestDir1 = dir.createDirectory(fsTestDirName1);
         fsTestDir2 = fsTestDir1.createDirectory(fsTestDirName2);
         fsTestFile = fsTestDir2.createFile(fsTestFileName);
-        fsTestFile.moveTo(fsTestFile.name, "documents/filesystem02/filesystem01/", true, moveToSuccess, moveToError);
+        fsTestFile.moveTo(fsTestFile.fullPath, fsTestDir1.path, true, moveToSuccess, moveToError);
     });
 
     resolveError = t.step_func(function (error) {
diff --git a/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html b/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html
deleted file mode 100644 (file)
index c55d930..0000000
+++ /dev/null
@@ -1,97 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2012 Intel Corporation.
-
-Redistribution and use in source and binary forms, with or without modification, 
-are permitted provided that the following conditions are met:
-
-* Redistributions of works must retain the original copyright notice, this list 
-  of conditions and the following disclaimer.
-* Redistributions in binary form must reproduce the original copyright notice, 
-  this list of conditions and the following disclaimer in the documentation 
-  and/or other materials provided with the distribution.
-* Neither the name of Intel Corporation nor the names of its contributors 
-  may be used to endorse or promote products derived from this work without 
-  specific prior written permission.
-
-THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
-AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
-ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
-INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
-BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
-DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
-OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
-NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
-EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
-
-Authors:
-    Kaiyu <kaiyux.li@intel.com>
-    Guan,JingX <jingx.guan@intel.com>
-
--->
-
-<html lang="en">
-<head>
-<title> File_moveTo_writeFile_newDir </title>
-<meta charset="utf-8" />
-<script type="text/javascript" src="../resources/unitcommon.js"></script>
-<script type="text/javascript" src="support/filesystem_common.js"></script>
-</head>
-<body>
-<div id="log"></div>
-<script type="text/javascript">
-
-//==== TEST: File_moveTo_writeFile_newDir
-//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with different file name
-//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with different file name
-//==== EXPECT PASS
-//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
-//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
-//==== TEST_CRITERIA MOA
-
-
-var resolveSuccess, resolveError, fsTestDirName, fsTestFileName, fsTestDir,
-    fsTestFile, moveToSuccess, moveToError, t = async_test("File_moveTo_writeFile_newDir"),
-    openStreamSuccess, openStreamError;
-
-t.step(function () {
-    fsTestDirName = getFileName("filesystem");
-    fsTestFileName = getFileName("filesystem.txt");
-
-    moveToSuccess = t.step_func(function () {
-        t.done();
-    });
-
-    moveToError = t.step_func(function (error) {
-        assert_unreached("moveTo() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    openStreamSuccess = t.step_func(function (fs) {
-        fs.write("test");
-        fs.close();
-        fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/new" + fsTestFile.name,
-            true, moveToSuccess, moveToError);
-    });
-
-    openStreamError = t.step_func(function (error) {
-        assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    resolveSuccess = t.step_func(function (dir) {
-        fsTestDir = dir.createDirectory(fsTestDirName);
-        fsTestFile = fsTestDir.createFile(fsTestFileName);
-        fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
-    });
-
-    resolveError = t.step_func(function (error) {
-        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
-    });
-
-    prepareForTesting(t, function () {
-        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
-    });
-});
-</script>
-</body>
-</html>
diff --git a/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html b/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html
new file mode 100644 (file)
index 0000000..b537d41
--- /dev/null
@@ -0,0 +1,98 @@
+<!DOCTYPE html>
+<!--
+Copyright (c) 2012 Intel Corporation.
+
+Redistribution and use in source and binary forms, with or without modification, 
+are permitted provided that the following conditions are met:
+
+* Redistributions of works must retain the original copyright notice, this list 
+  of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the original copyright notice, 
+  this list of conditions and the following disclaimer in the documentation 
+  and/or other materials provided with the distribution.
+* Neither the name of Intel Corporation nor the names of its contributors 
+  may be used to endorse or promote products derived from this work without 
+  specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY INTEL CORPORATION "AS IS" 
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
+ARE DISCLAIMED. IN NO EVENT SHALL INTEL CORPORATION BE LIABLE FOR ANY DIRECT, 
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
+BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
+DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 
+OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, 
+EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
+
+Authors:
+    Kaiyu <kaiyux.li@intel.com>
+    Guan,JingX <jingx.guan@intel.com>
+
+-->
+
+<html lang="en">
+<head>
+<title> File_moveTo_writeFile_newName </title>
+<meta charset="utf-8" />
+<script type="text/javascript" src="../resources/unitcommon.js"></script>
+<script type="text/javascript" src="support/filesystem_common.js"></script>
+</head>
+<body>
+<div id="log"></div>
+<script type="text/javascript">
+
+//==== TEST: File_moveTo_writeFile_newName
+//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with different file name
+//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with different file name
+//==== EXPECT PASS
+//==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
+//==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
+//==== TEST_CRITERIA MOA
+
+
+var resolveSuccess, resolveError, fsTestDirName, fsTestFileName, fsTestDir,
+    fsTestFile, fsTestFileName2, moveToSuccess, moveToError, t = async_test("File_moveTo_writeFile_newName"),
+    openStreamSuccess, openStreamError;
+
+t.step(function () {
+    fsTestDirName = getFileName("filesystem");
+    fsTestFileName = getFileName("filesystem.txt");
+    fsTestFileName2 = getFileName("filesystem2.txt");
+
+    moveToSuccess = t.step_func(function () {
+        t.done();
+    });
+
+    moveToError = t.step_func(function (error) {
+        assert_unreached("moveTo() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    openStreamSuccess = t.step_func(function (fs) {
+        fs.write("test");
+        fs.close();
+        fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFileName2,
+            true, moveToSuccess, moveToError);
+    });
+
+    openStreamError = t.step_func(function (error) {
+        assert_unreached("openStream() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    resolveSuccess = t.step_func(function (dir) {
+        fsTestDir = dir.createDirectory(fsTestDirName);
+        fsTestFile = fsTestDir.createFile(fsTestFileName);
+        fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
+    });
+
+    resolveError = t.step_func(function (error) {
+        assert_unreached("resolve() error callback invoked: name:" + error.name + "msg:" + error.message);
+    });
+
+    prepareForTesting(t, function () {
+        tizen.filesystem.resolve("documents", resolveSuccess, resolveError, "rw");
+    });
+});
+</script>
+</body>
+</html>
index 0afc8a11c9244760b44f19f356cf40d1d67c3ec3..2c2f2f3b2ca18acce6709eddeecaef55941eb7f2 100644 (file)
@@ -44,8 +44,8 @@ Authors:
 <script type="text/javascript">
 
 //==== TEST: File_moveTo_writeFile_overwrite_false
-//==== LABEL check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)
-//==== STEP check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)
+//==== LABEL check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)
+//==== STEP check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)
 //==== EXPECT PASS
 //==== SPEC Tizen Web API:IO:Filesystem:File:moveTo M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html
@@ -53,7 +53,7 @@ Authors:
 
 
 var t = async_test("File_moveTo_writeFile_overwrite_false"),
-    resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess,
+    resolveSuccess, resolveError, openStreamSuccess, openStreamError, moveToSuccess, mainDir,
     moveToError, fsTestFileName, fsTestFile, fsTestDirName, fsTestDir, expectedError = "IOError";
 
 t.step(function () {
@@ -72,7 +72,7 @@ t.step(function () {
     openStreamSuccess = t.step_func(function (fs) {
         fs.write("test");
         fs.close();
-        fsTestDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name,
+        mainDir.moveTo(fsTestFile.fullPath, fsTestDir.fullPath + "/" + fsTestFile.name,
             false, moveToSuccess, moveToError);
     });
     openStreamError = t.step_func(function (error) {
@@ -80,8 +80,10 @@ t.step(function () {
     });
 
     resolveSuccess = t.step_func(function (dir) {
+        mainDir = dir;
+        fsTestFile = dir.createFile(fsTestFileName);
         fsTestDir = dir.createDirectory(fsTestDirName);
-        fsTestFile = fsTestDir.createFile(fsTestFileName);
+        fsTestDir.createFile(fsTestFileName);
         fsTestFile.openStream("rw", openStreamSuccess, openStreamError, "UTF-8");
     });
 
index 93b18d2a911b2fe6219ccfaa1ec5856e1ff6e024..27c467539d5d66d93e445efbf375895800148975 100644 (file)
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check with error callback invoked" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_error_invoked">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check if method can be overriden" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="FileSystemManager_resolve_exist">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check if resolve videos to a file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_videos">
         <description>
           <steps>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w</step_desc>
+              <expected>the exception should be thrown</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check if resolve wgt-package to a file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="FileSystemManager_resolve_wgt_package">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_package.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_false">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_true">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.</step_desc>
+              <expected>directory should be copied to another location where already exist the directory with the same name</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_false">
         <description>
           <steps>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is true)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_true">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback invoked when copy a directory to the same location with the same name (overwrite is true).</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check if method copyTo exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_copyTo_exist">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_exist.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_false">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_true">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if copy a file to another location of the file with the same name (overwrite is true) was successfull.</step_desc>
+              <expected>file should be copied to another location where already exist the file with the same name</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_samedir_samename_overwrite_false">
         <description>
           <steps>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_samedir_samename_overwrite_true">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback invoked when copy a file to the same location with the same name (overwrite is true)</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="Check argument onError conversions exception in copyTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_onerror_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_TypeMismatch.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if throw an exception when copy a file to an invalid destination." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_destination_invalid">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if throw an exception when copy a file to an invalid destination.</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check if throw an exception when copyTo with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_file_handle">
         <description>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_subdir">
+      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_newName">
         <description>
           <steps>
             <step order="1">
-              <step_desc>check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name</step_desc>
+              <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with different file name</step_desc>
               <expected>PASS</expected>
             </step>
           </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method createDirectory of File works properly." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_createDirectory">
+      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_overwrite_false">
         <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory.html</test_script_entry>
+          <steps>
+            <step order="1">
+              <step_desc>check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)</step_desc>
+              <expected>PASS</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
         </description>
         <specs>
           <spec>
-            <spec_assertion interface="File" element_type="method" element_name="createDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
             <spec_statement>TBD</spec_statement>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if method createDirectory exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_createDirectory_exist">
+      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_subdir">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name</step_desc>
+              <expected>PASS</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method createDirectory of File works properly." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_createDirectory">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="createDirectory" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="Check if method createDirectory exists in File" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P0" id="File_createDirectory_exist">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_createDirectory_exist.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_dir_samedir_samename_overwrite_false">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback invoked when move a directory to the same location with the same name (overwrite is false)</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is true)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_dir_samedir_samename_overwrite_true">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if error callback invoked when move a directory to the same location with the same name (overwrite is true)</step_desc>
+              <expected>exception should be thrown.</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check whether invoking 'moveTo' method with improper arguments calls error callback function properly" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_empty_destination_source_and_destination_paths">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if move a file to same location with the same name (overwrite is true) was successyful." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_file_samedir_samename_overwrite_true">
+      <testcase purpose="check if error callback invoked when move a file to the same location with the same name (overwrite is true)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_file_samedir_samename_overwrite_true">
         <description>
           <steps>
             <step order="1">
-              <step_desc>check if move a file to same location with the same name (overwrite is true) was successyful.</step_desc>
-              <expected>file should be moved to same location with same name.</expected>
+              <step_desc>check if error callback invoked when move a file to the same location with the same name (overwrite is true)</step_desc>
+              <expected>exception should be thrown.</expected>
             </step>
           </steps>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html</test_script_entry>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsucces) was passed into moveTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onsuccess_invalid_cb">
+      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into moveTo method." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_onsuccess_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_additional_null_parameter">
+      <testcase purpose="check whether 'moveTo' method invoked with additional null parameter properly transfers a file" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_with_additional_null_parameter">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html</test_script_entry>
         </description>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if throw an exception when moveTo with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_file_handle">
+      <testcase purpose="check if errorCallback will be invoked when moveTo will be used with file handle." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_moveTo_with_file_handle">
         <description>
           <steps>
             <step order="1">
-              <step_desc>check if throw an exception when moveTo with file handle.</step_desc>
+              <step_desc>check if errorCallback will be invoked when moveTo will be used with file handle.</step_desc>
               <expected>exception should be thrown.</expected>
             </step>
           </steps>
           </spec>
         </specs>
       </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_newName">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with different file name</step_desc>
+              <expected>PASS</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_overwrite_false">
+        <description>
+          <steps>
+            <step order="1">
+              <step_desc>check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)</step_desc>
+              <expected>PASS</expected>
+            </step>
+          </steps>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
+        </description>
+        <specs>
+          <spec>
+            <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
+            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
+            <spec_statement>TBD</spec_statement>
+          </spec>
+        </specs>
+      </testcase>
       <testcase purpose="check if create a new empty file and write content of the file and then move the file to subdirectory with same file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_subdir">
         <description>
           <steps>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if InvalidValuesError will be reported when the wgt-package directory is resolved with moderw</step_desc>
-              <expected>the exception should be thrown</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check with error callback invoked" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="FileSystemManager_resolve_error_invoked">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="FileSystemManager" element_type="method" element_name="resolve" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/index.jsp?topic=/org.tizen.web.device.apireference/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_false">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)</step_desc>
-              <expected>exception should be thrown.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_overwrite_true">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull.</step_desc>
-              <expected>directory should be copied to another location with same name in overwrite is true.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_false">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)</step_desc>
-              <expected>exception should be thrown.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_file_overwrite_true">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if copy a file to another location of the file with the same name (overwrite is true) was successfull.</step_desc>
-              <expected>file should be copied to another location with same name.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if throw an exception when copy a file to an invalid destination." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_with_destination_invalid">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if throw an exception when copy a file to an invalid destination.</step_desc>
-              <expected>exception should be thrown.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_newDir">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with different file name</step_desc>
-              <expected>PASS</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_newDir">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with different file name</step_desc>
-              <expected>PASS</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_moveTo_writeFile_overwrite_false">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)</step_desc>
-              <expected>PASS</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="moveTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)" type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P1" id="File_copyTo_writeFile_overwrite_false">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)</step_desc>
-              <expected>PASS</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
-      <testcase purpose="check if copy a directory to the same location with the same name (overwrite is true) was successyful." type="compliance" status="approved" component="TizenAPI/IO/Filesystem" execution_type="auto" priority="P2" id="File_copyTo_dir_samedir_samename_overwrite_true">
-        <description>
-          <steps>
-            <step order="1">
-              <step_desc>check if copy a directory to the same location with the same name (overwrite is true) was successyful.</step_desc>
-              <expected>directory should be copied to another location with same name in overwrite is true.</expected>
-            </step>
-          </steps>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
-        </description>
-        <specs>
-          <spec>
-            <spec_assertion interface="File" element_type="method" element_name="copyTo" specification="Filesystem" section="IO" category="Tizen Device API Specifications"/>
-            <spec_url>https://developer.tizen.org/help/topic/org.tizen.help.web.api.device/tizen/filesystem.html</spec_url>
-            <spec_statement>TBD</spec_statement>
-          </spec>
-        </specs>
-      </testcase>
     </set>
   </suite>
 </test_definition>
index f74a8e0b2acf9368000e703ea1e460fc74ad2f00..b5c421f6c8c9a14ea74edf13ce96c4013d431d55 100644 (file)
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_downloads.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check with error callback invoked" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_error_invoked">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Check if method can be overriden" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_exist">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_exist.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if resolve videos to a file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_videos">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_videos.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Check if resolve wgt-package to a file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt_package">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt_package.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_false">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_true">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_false">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if error callback invoked when copy a directory to the same location with the same name (overwrite is true)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_true">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Check if method copyTo exists in File" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_exist">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_exist.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_false">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_true">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_false">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_false.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if error callback invoked when copy a file to the same location with the same name (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_samedir_samename_overwrite_true">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="Check argument onError conversions exception in copyTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_onerror_TypeMismatch">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onerror_TypeMismatch.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_onsuccess_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if throw an exception when copy a file to an invalid destination." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_destination_invalid">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if throw an exception when copyTo with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_file_handle">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_file_handle.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_para_invalid.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_newName">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newName.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to another location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_overwrite_false">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if create a new empty file and write content of the file and then copy the file to subdirectory with same file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_subdir">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_subdir.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_dir_samedir_samename_overwrite_false">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_false.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if error callback invoked when move a directory to the same location with the same name (overwrite is true)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_dir_samedir_samename_overwrite_true">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check whether invoking 'moveTo' method with improper arguments calls error callback function properly" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_empty_destination_source_and_destination_paths">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_empty_destination_source_and_destination_paths.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_false.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if move a file to same location with the same name (overwrite is true) was successyful." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_file_samedir_samename_overwrite_true">
+      <testcase purpose="check if error callback invoked when move a file to the same location with the same name (overwrite is true)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_file_samedir_samename_overwrite_true">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_file_samedir_samename_overwrite_true.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if an exception was thrown when a fake callback (onsucces) was passed into moveTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_invalid_cb">
+      <testcase purpose="check if an exception was thrown when a fake callback (onsuccess) was passed into moveTo method." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_onsuccess_invalid_cb">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_onsuccess_invalid_cb.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check whether 'moveTo' method invoked with overwrite param set to true properly transfers a file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_additional_null_parameter">
+      <testcase purpose="check whether 'moveTo' method invoked with additional null parameter properly transfers a file" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_additional_null_parameter">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_additional_null_parameter.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if throw an exception when moveTo with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_file_handle">
+      <testcase purpose="check if errorCallback will be invoked when moveTo will be used with file handle." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_with_file_handle">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_file_handle.html</test_script_entry>
         </description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_with_path_invalid.html</test_script_entry>
         </description>
       </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_newName">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newName.html</test_script_entry>
+        </description>
+      </testcase>
+      <testcase purpose="check if create a new empty file and write content of the file and then move the file to another location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_overwrite_false">
+        <description>
+          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
+        </description>
+      </testcase>
       <testcase purpose="check if create a new empty file and write content of the file and then move the file to subdirectory with same file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_subdir">
         <description>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_subdir.html</test_script_entry>
           <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/filesystem_File_resolve.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_a">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_a.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the rightones directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_rw">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_rw.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the ringtones directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_ringtones_invalid_mode_w">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_ringtones_invalid_mode_w.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode w" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_w">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_w.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode a" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_a">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_a.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if InvalidValuesError will be reported when the wgt-package directory is resolved with mode rw" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_wgt-package_invalid_mode_rw">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_wgt-package_invalid_mode_rw.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check with error callback invoked" component="TizenAPI/IO/Filesystem" execution_type="auto" id="FileSystemManager_resolve_error_invoked">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/FileSystemManager_resolve_error_invoked.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if error callback was invoked when copy a directory to another location of the directory with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_false">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_false.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if copy a directory to another location of the directory with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_overwrite_true">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_overwrite_true.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if error callback was invoked when copy a file to another location of the file with the same name (overwrite is false)." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_false">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_false.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if copy a file to another location of the file with the same name (overwrite is true) was successfull." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_file_overwrite_true">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_file_overwrite_true.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if throw an exception when copy a file to an invalid destination." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_with_destination_invalid">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_with_destination_invalid.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_newDir">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_newDir.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with different file name" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_newDir">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_newDir.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then move the file to the same location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_moveTo_writeFile_overwrite_false">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_moveTo_writeFile_overwrite_false.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if create a new empty file and write content of the file and then copy the file to the same location with same file name (overwrite false)" component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_writeFile_overwrite_false">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_writeFile_overwrite_false.html</test_script_entry>
-        </description>
-      </testcase>
-      <testcase purpose="check if copy a directory to the same location with the same name (overwrite is true) was successyful." component="TizenAPI/IO/Filesystem" execution_type="auto" id="File_copyTo_dir_samedir_samename_overwrite_true">
-        <description>
-          <test_script_entry>/opt/tct-filesystem-tizen-tests/filesystem/File_copyTo_dir_samedir_samename_overwrite_true.html</test_script_entry>
-        </description>
-      </testcase>
     </set>
   </suite>
 </test_definition>