sl@0: // sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: //! @file sl@0: //! @SYMTestSuiteName PBASE-F32-RFS-Mounts-PublicApi-RAM sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: //! @SYMScriptAuthor Oleg Kuznetsov sl@0: //! @SYMScriptDescription The test script contains API mounting related tests for RFs functions that perform operations on a RAM drive. sl@0: sl@0: LOAD_SUITE T_Sfsrv sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0002 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0002 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,TInt aDrive) sl@0: //! and MountFileSystem(const TDesC& aFileSystemName,TInt aDrive, TBool aIsSync) versions) and DismountFileSystem() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: MountFileSystem(), DismountFileSystem(), FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 4. Call MountFileSystem() passing the file system name, an enabled free drive number. sl@0: //! 5. Call DismountFileSystem() providing the name of the file system and the drive number. sl@0: //! 6. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter. sl@0: //! 7. Call DismountFileSystem() providing the name of the file system and the drive number. sl@0: //! 8. Call MountFileSystem() passing the file system name, an enabled free drive number and EFalse as a synchronization parameter. sl@0: //! 9. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All MountFileSystem() and DismountFileSystem() calls return KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0002-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command04 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command05 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command06 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command07 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0002-001-DismountFileSystem_command08 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0002-001-MountFileSystem_command09 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0002 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0004 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0004 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem() (MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive) sl@0: //! and MountFileSystem(const TDesC& aFileSystemName,const TDesC& aExtensionName,TInt aDrive, TBool aIsSync) versions) test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! The test requires a file system extension plug-in. sl@0: //! Uses API elements: AddExtension(), MountFileSystem(), DismountFileSystem(), RemoveExtension(), FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 4. Call AddExtension() providing the file name of a file system extension plug-in as an argument. sl@0: //! 5. Call MountFileSystem() passing the file system name, plug-in extension name and an enabled free drive number. sl@0: //! 6. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 7. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and ETrue as a sl@0: //! synchronization parameter. sl@0: //! 8. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 9. Call MountFileSystem() passing the file system name, plug-in extension name, an enabled free drive number and EFalse sl@0: //! as a synchronization parameter. sl@0: //! 10. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 11. Call RemoveExtension() providing the name of the plug-in file system extension as an argument. sl@0: //! 12. Call MountFileSystem() passing the file system name, the drive number and EFalse as a synchronization parameter. sl@0: //! 13. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All MountFileSystem() and DismountFileSystem() calls return KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0004-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command04 sl@0: COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0004-001-AddExtension_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command06 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command07 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command08 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command09 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command10 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0004-001-DismountFileSystem_command11 sl@0: COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0004-001-RemoveExtension_command12 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0004-001-MountFileSystem_command13 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0004 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0005 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0005 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountExtension() and DismountExtension() test. The test requires a file system extension plug-in. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: AddExtension(), MountExtension(), DismountExtension(), RemoveExtension(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument. sl@0: //! 3. Call MountExtension() passing the plug-in extension name and an enabled free drive number with mounted file system. sl@0: //! 4. Call DismountExtension() providing the name of the plug-in extension and the drive number. sl@0: //! 5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument. sl@0: //! 6. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Both MountExtension() and DismountExtension() return KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0005-001-AddExtension_command03 sl@0: COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0005-001-MountExtension_command04 sl@0: COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0005-001-DismountExtension_command05 sl@0: COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0005-001-RemoveExtension_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0005 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0006 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0006 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function MountFileSystemAndScan() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! The test requires a file system extension plug-in. sl@0: //! Uses API elements: AddExtension(), RemoveExtension(), MountFileSystemAndScan(), DismountFileSystem(), FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 4. Call AddExtension() providing the file name of a file system extension plug-in as an argument. sl@0: //! 5. Call MountFileSystemAndScan() passing the file system name and drive number. sl@0: //! Check that on return aIsMountSuccess parameter is set to ETrue. sl@0: //! 6. Call DismountFileSystem() providing the name of the file system and the drive number. sl@0: //! 7. Call MountFileSystemAndScan() passing the file system name , plug-in extension name and drive number. sl@0: //! Check that on return aIsMountSuccess parameter is set to ETrue. sl@0: //! 8. Call DismountFileSystem() providing the name of the file system and the drive number. sl@0: //! 9. Call RemoveExtension() providing the name of the file system extension as an argument. sl@0: //! 10. Call MountFileSystem() passing the file system name and the drive number. sl@0: //! 11. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults All MountFileSystemAndScan() calls return KErrNone and set output argument aIsMountSuccess to ETrue on return. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0006-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command04 sl@0: COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0006-001-AddExtension_command05 sl@0: COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command06 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command07 sl@0: COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0006-001-MountFileSystemAndScan_command08 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0006-001-DismountFileSystem_command09 sl@0: COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0006-001-RemoveExtension_command10 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0006-001-MountFileSystem_command11 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0006 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0008 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0008 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function ExtensionName() test. The test requires a file system extension plug-in. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: AddExtension(), MountExtension(), ExtensionName(), RemoveExtension(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddExtension() providing the file name of a file system extension plug-in as an argument. sl@0: //! 3. Call MountExtension() passing the plug-in extension name and an enabled free drive number. sl@0: //! 4. Call ExtensionName() passing the drive number as argument and position 0. Check that aExtensionName parameter sl@0: //! is set to the same as a real name of the plug-in extension on return. sl@0: //! 5. Call RemoveExtension() providing the name of the plug-in file system extension as an argument. sl@0: //! 6. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults ExtensionName() returns KErrNone and the real name of the extension through the aExtensionName output argument. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0008-001-AddExtension_command03 sl@0: COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0008-001-MountExtension_command04 sl@0: COMMAND RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0008-001-ExtensionName_command05 sl@0: COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0008-001-DismountExtension_command06 sl@0: COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0008-001-RemoveExtension_command07 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0008 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0009 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0009 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function RemountDrive() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: RemountDrive(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call RemountDrive() passing the drive (with a file system on) and flags 0 as arguments. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults RemountDrive() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 RemountDrive PBASE-F32-RFS-PublicApi-0009-001-RemountDrive_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0009 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0010 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0010 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function NotifyDismount() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: NotifyDismount(), MountFileSystem(), DismountFileSystem(), FileSystemName(). sl@0: //! @SYMTestActions 1. Create a RFs session and call it's Connect() function. sl@0: //! 2. Create another RFs session and call it's Connect() function. sl@0: //! 3. Call first session's FileSystemName() for a drive where a file system was mounted. sl@0: //! 4. Call second session's NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background. sl@0: //! 5. Call first session's NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background. sl@0: //! 6. Call second session's AllowDismount() providing the drive number. sl@0: //! 7. Call first session's MountFileSystem() passing the file system name and the drive number to restore the file system on the drive. sl@0: //! 8. Call Close() of both sessions. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults See actions. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT RFs RFs2 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0010-001-FileSystemName_command03 sl@0: COMMAND RFs2 new sl@0: COMMAND RFs2 Connect sl@0: COMMAND RFs2 NotifyDismount PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command07 sl@0: COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0010-001-NotifyDismount_command09 sl@0: COMMAND RFs2 AllowDismount PBASE-F32-RFS-PublicApi-0010-001-AllowDismount_command12 sl@0: OUTSTANDING sl@0: OUTSTANDING sl@0: COMMAND RFs2 Close sl@0: COMMAND RFs2 ~ sl@0: OUTSTANDING sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0010-001-MountFileSystem_command17 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0010 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0011 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0011 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function NotifyDismountCancel(TRequestStatus& aStat) test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background. sl@0: //! 4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call. sl@0: //! 5. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background. sl@0: //! 6. Call MountFileSystem() passing the file system name and the drive number. sl@0: //! 7. Call Close() of both sessions. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults KErrCancel(-3) sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0011-001-FileSystemName_command03 sl@0: COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command04 sl@0: COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0011-001-NotifyDismountCancel_command05 sl@0: OUTSTANDING sl@0: COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0011-001-NotifyDismount_command07 sl@0: OUTSTANDING sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0011-001-MountFileSystem_command09 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0011 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0017 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0017 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function SwapFileSystem() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: SwapFileSystem() sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 4. Call MountFileSystem() passing the file system name, an enabled free drive number and ETrue as a synchronization parameter. sl@0: //! 5. Call SwapFileSystem() passing file system name, the same file system name again and the drive number. sl@0: //! 6. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults SwapFileSystem() returns KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0017-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0017-001-DismountFileSystem_command04 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0017-001-MountFileSystem_command05 sl@0: COMMAND RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0017-001-SwapFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0017 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0018 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0018 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function NotifyDismountCancel() test. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), DismountFileSystem() sl@0: //! @SYMTestActions 1. Create a RFs session and call it's Connect() function. sl@0: //! 2. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background. sl@0: //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountNotifyClients and starts waiting for a notification on the background. sl@0: //! 4. Call NotifyDismountCancel() without arguments(for all requests) . sl@0: //! 5. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults KErrCancel(-3) sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command03 sl@0: COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0018-001-NotifyDismount_command04 sl@0: COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0018-001-NotifyDismountCancel_command05 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0018 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0025 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0025 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test with incorrect file system name. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0025-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0025-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0025-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0025 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0026 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0026 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive) test, mount file system where already mounted one. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the file system name and drive for mounts. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrAccessDenied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0026-001-FileSystemName_command03 sl@0: COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0026-001-MountFileSystem_command04 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0026 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0028 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0028 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the incorrect file system name and drive for mounts where nothing mounted, and ETrue as a synchronization parameter. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0028-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0028-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0028-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0028 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0029 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0029 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the file system name and drive for mounts, and ETrue as a synchronization parameter. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrAccessDenied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0029-001-FileSystemName_command03 sl@0: COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0029-001-MountFileSystem_command04 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0029 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0031 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0031 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test with incorrect file system name. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the bad file system name and drive for mounts where nothing mounted, and EFalse as a synchronization parameter. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0031-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0031-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0031-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0031 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0032 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0032 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, TInt aDrive, TBool aIsSync) test, mount file system where already mounted one. sl@0: //! Uses API elements: MountFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the file system name and drive for mounts, and EFalse as a synchronization parameter. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrAccessDenied. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0032-001-FileSystemName_command03 sl@0: COMMAND !Error=-21 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0032-001-MountFileSystem_command04 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0032 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0034 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0034 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with bad file system name. sl@0: //! Uses API elements: MountFileSystemAndScan(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystemAndScan() providing the bad file system name and drive for mounts (not drive for MMC card). sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound, Filesystem not found sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0034-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0034-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0034-001-MountFileSystemAndScan_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0034-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0034 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0035 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0035 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, TInt aDrive, TBool &aIsMountSuccess) test with mounting file system that not support scanning. sl@0: //! Uses API elements: MountFileSystemAndScan(), DismountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystemAndScan() providing the file system name and the drive number. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive number. sl@0: //! 4. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNone. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0035-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0035-001-DismountFileSystem_command04 sl@0: COMMAND RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0035-001-MountFileSystemAndScan_command05 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0035 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0037 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0037 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name. sl@0: //! Uses API elements: MountFileSystem(), DismountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and EFalse as a synchronization parameter. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound, extension not found sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0037-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0037-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0037-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0037 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0038 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0038 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystem(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool aIsSync) test with incorrect file system extension name. sl@0: //! Uses API elements: MountFileSystem(), DismountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystem() providing the file system name, drive for mounts, bad name of extension and ETrue as a synchronization parameter. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive for mounts. sl@0: //! 4. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound, extension not found sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0038-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command05 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0038-001-DismountFileSystem_command06 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0038-001-MountFileSystem_command07 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0038 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0040 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0040 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions DismountFileSystem() test with incorrect file system name. sl@0: //! Uses API elements: DismountFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call DismountFileSystem() providing the bad file system name and drive for mounts. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound, file system not found. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0040-001-DismountFileSystem_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0040 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0041 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0041 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions DismountFileSystem() test, dismount file system from drive, where not mounted one. sl@0: //! Uses API elements: DismountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call DismountFileSystem() providing the file system name and drive for mounts where no file system mounted. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotReady sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0041-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-18 RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0041-001-DismountFileSystem_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0041-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0041 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0046 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0046 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountExtension() test, mount file system extension on drive, where no mounted file system. sl@0: //! Uses API elements: MountExtension(), AddExtension(), RemoveExtension(). sl@0: //! The test requires a file system extension plug-in. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddExtension() providing plug-in extension name. sl@0: //! 3. Call MountExtension() providing plug-in extension name and drive where not mounted file system. sl@0: //! 4. Call RemoveExtension() providing plug-in extension name. sl@0: //! 5. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNone sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 AddExtension PBASE-F32-RFS-PublicApi-0046-001-AddExtension_command03 sl@0: COMMAND RFs1 MountExtension PBASE-F32-RFS-PublicApi-0046-001-MountExtension_command04 sl@0: COMMAND RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0046-001-DismountExtension_command05 sl@0: COMMAND RFs1 RemoveExtension PBASE-F32-RFS-PublicApi-0046-001-RemoveExtension_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0046 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0048 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0048 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountExtension() test with incorrect file system extension name. sl@0: //! Uses API elements: MountExtension(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountExtension() providing bad extension name and drive for mounts where is a mounted file system on. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 MountExtension PBASE-F32-RFS-PublicApi-0048-001-MountExtension_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0048 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0050 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0050 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions DismountExtension() test with incorrect file system extension name. sl@0: //! Uses API elements: DismountExtension(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call DismountExtension() providing bad extension name and drive number where is no mounted file system. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 DismountExtension PBASE-F32-RFS-PublicApi-0050-001-DismountExtension_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0050 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0054 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0054 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions ExtensionName() test with large number of position as argument. sl@0: //! Uses API elements: ExtensionName(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call ExtensionName() providing drive number and large number as position. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 ExtensionName PBASE-F32-RFS-PublicApi-0054-001-ExtensionName_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0054 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0059 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0059 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions NotifyDismount() test with drive where no mounted file system. sl@0: //! Uses API elements: NotifyDismount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call NotifyDismount() providing drive number where is no mounted file system and mode EFsDismountForceDismount and starts waiting for a notification on the background. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNone sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0059-001-FileSystemName_command03 sl@0: COMMAND RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0059-001-NotifyDismount_command04 sl@0: OUTSTANDING sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0059-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0059 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0060 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0060 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AllowDismount() test with drive where no mounted file system. sl@0: //! Uses API elements: AllowDismount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AllowDismount() providing drive number where no mounted file system. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound as nothing has requested to notify the dismount sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 AllowDismount PBASE-F32-RFS-PublicApi-0060-001-AllowDismount_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0060 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0069 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0069 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions SwapFileSystem() test with incorrect file system name as old file system argument. sl@0: //! Uses API elements: SwapFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call SwapFileSystem() providing enabled drive, bad name of old file system name and FAT as new file system name. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0069-001-SwapFileSystem_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0069 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0070 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0070 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions SwapFileSystem() test with incorrect file system name as new file system argument. sl@0: //! Uses API elements: SwapFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call SwapFileSystem() providing enabled drive, FAT as old file system name and bad name of new file system name. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-1 RFs1 SwapFileSystem PBASE-F32-RFS-PublicApi-0070-001-SwapFileSystem_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0070 sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0072 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0072 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function NotifyDismountCancel(TRequestStatus& aStat) test that tryes to cancel same request twice. sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! Uses API elements: NotifyDismountCancel(), NotifyDismount(), MountFileSystem(), FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() for a drive where a file system was mounted. sl@0: //! 3. Call NotifyDismount() providing the drive number and mode value EFsDismountRegisterClient and starts waiting for a notification on the background. sl@0: //! 4. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call. sl@0: //! 5. Call NotifyDismountCancel() providing the same TRequestStatus as in previous call. sl@0: //! 6. Call Close() of both sessions. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Request status is set to KErrCancel(-3) and second NotifyDismountCancel() doesn't cause panic. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0072-001-FileSystemName_command03 sl@0: COMMAND !AsyncError=-3 RFs1 NotifyDismount PBASE-F32-RFS-PublicApi-0072-001-NotifyDismount_command04 sl@0: COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command05 sl@0: COMMAND RFs1 NotifyDismountCancel PBASE-F32-RFS-PublicApi-0072-001-NotifyDismountCancel_command06 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0072 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0075 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0075 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function NotifyChange(TNotifyType aType, TRequestStatus &aStat, const TDesC &aPathName) test with notify types ENotifyAll. sl@0: //! Uses API elements: NotifyChange(), FileSystemName(), DismountFileSystem(), MountFileSystem(). sl@0: //! The test assumes that the tested file system is already mounted onto the tested drive. sl@0: //! @SYMTestActions 1. Call Connect(). sl@0: //! 2. Call FileSystemName() passing the drive number as argument. sl@0: //! 3. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background. sl@0: //! 4. Call DismountFileSystem() passing the drive number as argument. sl@0: //! 5. Call NotifyChange() passing ENotifyAll as parameter and starts waiting for a notification on the background. sl@0: //! 6. Call MountFileSystem() passing the drive number as argument. sl@0: //! 7. Call Close(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults Doesn't cause panic. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0075-001-FileSystemName_command03 sl@0: COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command04 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0075-001-DismountFileSystem_command05 sl@0: OUTSTANDING sl@0: COMMAND RFs1 NotifyChange PBASE-F32-RFS-PublicApi-0075-001-NotifyChange_command07 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0075-001-MountFileSystem_command08 sl@0: OUTSTANDING sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0075 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0014 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0014 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function AddCompositeMount() test. sl@0: //! Uses API elements: AddCompositeMount() sl@0: //! @SYMTestActions 1. Call Connect(). sl@0: //! 2. Call AddCompositeMount() providing a file system name, c-drive as a local drive, and an empty drive as a composite drive and EFalse as a synchronization parameter. sl@0: //! 3. Call Close(). sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults Check that AddCompositeMount() returns KErrNotSupported (-5). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0014-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0014-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0014-001-AddCompositeMount_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0014-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0014 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0036 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0036 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions MountFileSystemAndScan(const TDesC &aFileSystemName, const TDesC &aExtensionName, TInt aDrive, TBool &aIsMountSuccess) test with incorrect file system extension name. sl@0: //! Uses API elements: MountFileSystemAndScan(), DismountFileSystem(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call MountFileSystemAndScan() providing the file system name (Fat) and drive for mounts, and bad name of extension. sl@0: //! 3. Call DismountFileSystem() providing the file system name and the drive for mounts. sl@0: //! 4. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound, extension not found sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0036-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 MountFileSystemAndScan PBASE-F32-RFS-PublicApi-0036-001-MountFileSystemAndScan_command05 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0036-001-DismountFileSystem_command06 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0036-001-MountFileSystem_command07 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0036 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0043 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0043 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions FileSystemName() test, get file system name from drive where no mounted file system. sl@0: //! Uses API elements: FileSystemName(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemName() providing a drive number where is no mounted file system. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0043-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0043-001-FileSystemName_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0043-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0043 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0063 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0063 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with incorrect file system name in asynchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing C-drive as local drive, an empty drive as a composite drive argument, bad filesystem name and false as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0063-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0063-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0063-001-AddCompositeMount_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0063-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0063 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0064 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0064 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with incorrect file system name in synchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing drive number as local drive, drive for mount, bad filesystem name and true as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotFound sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0064-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0064-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-1 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0064-001-AddCompositeMount_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0064-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0064 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0065 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0065 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for local drive argument in asynchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and FALSE as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotSupported sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0065-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0065-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0065-001-AddCompositeMount_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0065-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0065 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0066 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0066 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for composite drive argument in asynchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing C-drive as a local drive, negative drive number as composite drive, "FAT" filesystem name and FALSE as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotSupported sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0066-001-AddCompositeMount_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0066 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0067 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0067 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for local drive argument in synchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing negative drive number as local drive, drive for mounts, "FAT" filesystem name and TRUE as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotSupported sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0067-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0067-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0067-001-AddCompositeMount_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0067-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0067 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0068 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0068 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Functions AddCompositeMount() test with negative drive number for composite drive argument in synchronous mode. sl@0: //! Uses API elements: AddCompositeMount(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call AddCompositeMount() providing drive number as local drive, negative drive number as composite drive, "FAT" filesystem name and TRUE as synchronous as a parameters. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High sl@0: //! @SYMTestExpectedResults KErrNotSupported sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND !Error=-5 RFs1 AddCompositeMount PBASE-F32-RFS-PublicApi-0068-001-AddCompositeMount_command03 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0068 sl@0: sl@0: START_TESTCASE PBASE-F32-RFS-PublicApi-0074 sl@0: //! @SYMTestCaseID PBASE-F32-RFS-PublicApi-0074 sl@0: //! @SYMAPI RFs sl@0: //! @SYMTestCaseDesc Function FileSystemSubType() test with non mounted drive. sl@0: //! Uses API elements: FileSystemSubType(). sl@0: //! @SYMTestActions 1. Call Connect() method. sl@0: //! 2. Call FileSystemSubType() passing the drive number where is not mounted file system as argument. sl@0: //! 3. Call Close() method. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Return KErrNotReady (-18). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_Sfsrv \base\PBASE-F32-RFS-Mounts-PublicApi-RAM.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 FileSystemName PBASE-F32-RFS-PublicApi-0074-001-FileSystemName_command03 sl@0: COMMAND RFs1 DismountFileSystem PBASE-F32-RFS-PublicApi-0074-001-DismountFileSystem_command04 sl@0: COMMAND !Error=-18 RFs1 FileSystemSubType PBASE-F32-RFS-PublicApi-0074-001-FileSystemSubType_command05 sl@0: COMMAND RFs1 MountFileSystem PBASE-F32-RFS-PublicApi-0074-001-MountFileSystem_command06 sl@0: COMMAND RFs1 Close sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-RFS-PublicApi-0074