os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileNamesIdentical-PublicApi-RAM.script
First public contribution.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
17 //! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram
18 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
19 //! @SYMScriptAuthor Jaanus Randveer, Runno Sgirka
20 //! @SYMScriptCreationDate 27/08/2007
21 //! @SYMScriptDescription The test script contains API test for the FileNamesIdentical function:
22 //! FileNamesIdentical()
28 START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3001
29 //! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3001
30 //! @SYMAPI FileNamesIdentical
31 //! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares two
33 //! Uses API elements: FileNamesIdentical().
34 //! @SYMTestActions 1.Call FileNamesIdentical() and
35 //! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
36 //! <DRIVE>:\base\t_sfsrv\Test3.txt as second parameter
37 //! @SYMTestStatus Implemented
38 //! @SYMTestPriority Critical
39 //! @SYMTestExpectedResults The FileNamesIdentical() method call returns ETrue.
41 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
42 CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
43 COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3001-001-FileNamesIdentical_command001
45 END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3001
48 START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3002
49 //! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3002
50 //! @SYMAPI FileNamesIdentical
51 //! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares two
52 //! not identical files.
53 //! Uses API elements: FileNamesIdentical().
54 //! @SYMTestActions 1.Call FileNamesIdentical() and
55 //! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
56 //! <DRIVE>:\base\t_sfsrv\Test2.txt as second parameter
57 //! @SYMTestStatus Implemented
58 //! @SYMTestPriority Critical
59 //! @SYMTestExpectedResults The FileNamesIdentical() method call returns EFalse.
61 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
62 CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
63 COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3002-001-FileNamesIdentical_command001
65 END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3002
68 START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3003
69 //! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3003
70 //! @SYMAPI FileNamesIdentical
71 //! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares the same file,
72 //! but one is with absolute path and the other one with relative path.
73 //! Uses API elements: FileNamesIdentical().
74 //! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
75 //! 2.Call RFs::SetSessionPath() to set new session path, passing <drive>:\ as parameter.
76 //! 3.Call RFs::SessionPath() to verify previous action.
77 //! 4.Call FileNamesIdentical() and
78 //! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
79 //! \base\t_sfsrv\Test3.txt as second parameter
80 //! @SYMTestStatus Implemented
81 //! @SYMTestPriority Critical
82 //! @SYMTestExpectedResults The FileNamesIdentical() method call returns EFalse.
84 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
85 CREATE_OBJECT RFs RFs1
86 CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
89 COMMAND RFs1 SetSessionPath PBASE-F32-FileNamesIdentical-PublicApi-3003-001-SetSessionPath_command004
90 COMMAND RFs1 SessionPath PBASE-F32-FileNamesIdentical-PublicApi-3003-001-SessionPath_command005
91 COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3003-001-FileNamesIdentical_command006
94 END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3003
97 START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3004
98 //! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3004
99 //! @SYMAPI FileNamesIdentical
100 //! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares the same, but
102 //! Uses API elements: FileNamesIdentical().
103 //! @SYMTestActions 1.Call FileNamesIdentical() using :: and :: as parameters.
104 //! @SYMTestStatus Implemented
105 //! @SYMTestPriority Critical
106 //! @SYMTestExpectedResults The FileNamesIdentical() method call will panic (FSCLIENT Code=24).
108 START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
109 CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
110 COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3004-001-FileNamesIdentical_command001
111 END_TEST_BLOCK !PanicCode=24 !PanicString="FSCLIENT panic"
112 END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3004