os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileNamesIdentical-PublicApi-RAM.script
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileNamesIdentical-PublicApi-RAM.script Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,112 @@
1.4 +//
1.5 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of "Eclipse Public License v1.0"
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +//! @file
1.20 +//! @SYMTestSuiteName pbase-f32-sfsrv-publicapi-ram
1.21 +//! @SYMScriptTestEnvironment This test script requires a basic ROM.
1.22 +//! @SYMScriptAuthor Jaanus Randveer, Runno Sgirka
1.23 +//! @SYMScriptCreationDate 27/08/2007
1.24 +//! @SYMScriptDescription The test script contains API test for the FileNamesIdentical function:
1.25 +//! FileNamesIdentical()
1.26 +
1.27 +LOAD_SUITE T_SfSrv
1.28 +DELAY 5000
1.29 +
1.30 +
1.31 +START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3001
1.32 +//! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3001
1.33 +//! @SYMAPI FileNamesIdentical
1.34 +//! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares two
1.35 +//! identical files.
1.36 +//! Uses API elements: FileNamesIdentical().
1.37 +//! @SYMTestActions 1.Call FileNamesIdentical() and
1.38 +//! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
1.39 +//! <DRIVE>:\base\t_sfsrv\Test3.txt as second parameter
1.40 +//! @SYMTestStatus Implemented
1.41 +//! @SYMTestPriority Critical
1.42 +//! @SYMTestExpectedResults The FileNamesIdentical() method call returns ETrue.
1.43 +//! @SYMTestType CIT
1.44 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
1.45 + CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
1.46 + COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3001-001-FileNamesIdentical_command001
1.47 + END_TEST_BLOCK
1.48 +END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3001
1.49 +
1.50 +
1.51 +START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3002
1.52 +//! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3002
1.53 +//! @SYMAPI FileNamesIdentical
1.54 +//! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares two
1.55 +//! not identical files.
1.56 +//! Uses API elements: FileNamesIdentical().
1.57 +//! @SYMTestActions 1.Call FileNamesIdentical() and
1.58 +//! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
1.59 +//! <DRIVE>:\base\t_sfsrv\Test2.txt as second parameter
1.60 +//! @SYMTestStatus Implemented
1.61 +//! @SYMTestPriority Critical
1.62 +//! @SYMTestExpectedResults The FileNamesIdentical() method call returns EFalse.
1.63 +//! @SYMTestType CIT
1.64 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
1.65 + CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
1.66 + COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3002-001-FileNamesIdentical_command001
1.67 + END_TEST_BLOCK
1.68 +END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3002
1.69 +
1.70 +
1.71 +START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3003
1.72 +//! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3003
1.73 +//! @SYMAPI FileNamesIdentical
1.74 +//! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares the same file,
1.75 +//! but one is with absolute path and the other one with relative path.
1.76 +//! Uses API elements: FileNamesIdentical().
1.77 +//! @SYMTestActions 1.Call Create a RFs session and call it's Connect() function.
1.78 +//! 2.Call RFs::SetSessionPath() to set new session path, passing <drive>:\ as parameter.
1.79 +//! 3.Call RFs::SessionPath() to verify previous action.
1.80 +//! 4.Call FileNamesIdentical() and
1.81 +//! <DRIVE>:\base\t_sfsrv\Test3.txt as first parameter, and
1.82 +//! \base\t_sfsrv\Test3.txt as second parameter
1.83 +//! @SYMTestStatus Implemented
1.84 +//! @SYMTestPriority Critical
1.85 +//! @SYMTestExpectedResults The FileNamesIdentical() method call returns EFalse.
1.86 +//! @SYMTestType CIT
1.87 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
1.88 + CREATE_OBJECT RFs RFs1
1.89 + CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
1.90 + COMMAND RFs1 new
1.91 + COMMAND RFs1 Connect
1.92 + COMMAND RFs1 SetSessionPath PBASE-F32-FileNamesIdentical-PublicApi-3003-001-SetSessionPath_command004
1.93 + COMMAND RFs1 SessionPath PBASE-F32-FileNamesIdentical-PublicApi-3003-001-SessionPath_command005
1.94 + COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3003-001-FileNamesIdentical_command006
1.95 + COMMAND RFs1 ~
1.96 + END_TEST_BLOCK
1.97 +END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3003
1.98 +
1.99 +
1.100 +START_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3004
1.101 +//! @SYMTestCaseID PBASE-F32-FileNamesIdentical-PublicApi-3004
1.102 +//! @SYMAPI FileNamesIdentical
1.103 +//! @SYMTestCaseDesc Function FileNamesIdentical(const TDesC &aFileName1, const TDesC &aFileName2) test, that compares the same, but
1.104 +//! invalid path.
1.105 +//! Uses API elements: FileNamesIdentical().
1.106 +//! @SYMTestActions 1.Call FileNamesIdentical() using :: and :: as parameters.
1.107 +//! @SYMTestStatus Implemented
1.108 +//! @SYMTestPriority Critical
1.109 +//! @SYMTestExpectedResults The FileNamesIdentical() method call will panic (FSCLIENT Code=24).
1.110 +//! @SYMTestType CIT
1.111 + START_TEST_BLOCK 50 T_SfSrv \base\PBASE-F32-FileNamesIdentical-PublicApi.ini
1.112 + CREATE_OBJECT FileNamesIdentical FileNamesIdentical1
1.113 + COMMAND FileNamesIdentical1 FileNamesIdentical PBASE-F32-FileNamesIdentical-PublicApi-3004-001-FileNamesIdentical_command001
1.114 + END_TEST_BLOCK !PanicCode=24 !PanicString="FSCLIENT panic"
1.115 +END_TESTCASE PBASE-F32-FileNamesIdentical-PublicApi-3004
1.116 \ No newline at end of file