baseapitest/basesvs/validation/f32/sfsrv/scripts/PBASE-F32-FileNamesIdentical-PublicApi-RAM.script
changeset 293 0659d0e1a03c
parent 291 206a6eaaeb71
child 296 94f2adf59133
child 300 1d28c8722707
equal deleted inserted replaced
291:206a6eaaeb71 293:0659d0e1a03c
     1 //
       
     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".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //! 	@file
       
    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()
       
    23 
       
    24 LOAD_SUITE	T_SfSrv
       
    25 DELAY 		5000
       
    26 
       
    27 
       
    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
       
    32 //!				identical files.
       
    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. 
       
    40 //! @SYMTestType		CIT
       
    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
       
    44 	END_TEST_BLOCK	
       
    45 END_TESTCASE			PBASE-F32-FileNamesIdentical-PublicApi-3001
       
    46 
       
    47 
       
    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. 
       
    60 //! @SYMTestType		CIT
       
    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
       
    64 	END_TEST_BLOCK	
       
    65 END_TESTCASE			PBASE-F32-FileNamesIdentical-PublicApi-3002
       
    66 
       
    67 
       
    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. 
       
    83 //! @SYMTestType		CIT
       
    84 	START_TEST_BLOCK	50	T_SfSrv		\base\PBASE-F32-FileNamesIdentical-PublicApi.ini 
       
    85 		CREATE_OBJECT	RFs			RFs1
       
    86 		CREATE_OBJECT	FileNamesIdentical	FileNamesIdentical1
       
    87 		COMMAND		RFs1			new		
       
    88 		COMMAND		RFs1			Connect		
       
    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
       
    92 		COMMAND		RFs1			~
       
    93 	END_TEST_BLOCK	
       
    94 END_TESTCASE			PBASE-F32-FileNamesIdentical-PublicApi-3003
       
    95 
       
    96 
       
    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
       
   101 //!				invalid path.
       
   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). 
       
   107 //! @SYMTestType		CIT
       
   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