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-sfsrv-publicapi-any sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: //! @SYMScriptAuthor Tanel Milsaar, Runno Sgirka sl@0: //! @SYMScriptDescription The test script contains API tests for the following functions of TDriveUnit class: sl@0: //! TDriveUnit(TInt aDrive); sl@0: //! TDriveUnit(const TDesC &aDrive); sl@0: //! TDriveUnit &operator=(TInt aDrive); sl@0: //! void TDriveUnit &operator=(TInt aDrive); sl@0: //! TDriveUnit &operator=(const TDesC &aDrive); sl@0: //! operator TInt() const; sl@0: //! TDriveName Name() const; sl@0: sl@0: sl@0: LOAD_SUITE t_sfsrv sl@0: DELAY 5000 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0001 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0001 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number lesser than KMaxDrives. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter. sl@0: //! 2. Call operator TInt() to convert the drive unit to an integer value, passing "3" as expected value, sl@0: //! for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "3" as drive number. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0001-001-new_command01 sl@0: COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0001-001-convertToInt_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0001 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0002 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0002 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter. sl@0: //! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0002-001-new_command01 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0002-001-name_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0002 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0003 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0003 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a new drive number lesser than KMaxDrives to the drive unit. sl@0: //! Uses API elements: TDriveUnit(), operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "3" as parameter. sl@0: //! 2. Call operator=() to assign a new drive number, passing "4" as parameter. sl@0: //! 3. Call operator TInt() to convert the drive unit to an integer value, passing "4" as expected value, sl@0: //! for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "4" as drive number. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0003-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0003-001-_command02 sl@0: COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0003-001-convertToInt_command03 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0003 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0004 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0004 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a new drive letter to the drive unit. sl@0: //! Uses API elements: TDriveUnit(), operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter. sl@0: //! 2. Call operator=() to assign a new drive letter, passing "F" as parameter. sl@0: //! 3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "F:" as drive name. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0004-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0004-001-_command02 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0004-001-name_command03 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0004 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0005 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0005 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator TInt() test. Converts the drive unit to an integer value. sl@0: //! Uses API elements: TDriveUnit(), operator TInt(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter. sl@0: //! 2. Call operator TInt() to convert the drive unit to an integer value, passing 2 as expected value. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TInt() operator call is completed without errors, returning 2. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0005-001-new_command01 sl@0: COMMAND driveUnit1 convertToInt PBASE-F32-DriveUnit-PublicApi-0005-001-convertToInt_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0005 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0006 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0006 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function Name() test. Gets the drive unit name as text. sl@0: //! Uses API elements: TDriveUnit(), Name(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "22" as parameter. sl@0: //! 2. Call Name() to get the drive unit name as text, passing "W:" as expected value. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The Name() method call is completed without errors, returning "W:". sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0006-001-new_command01 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0006-001-name_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0006 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0007 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0007 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, with a colon at the end. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C:" as parameter. sl@0: //! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0007-001-new_command01 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0007-001-name_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0007 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0008 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0008 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive letter defined in TDriveName, as lowercase. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "c" as parameter. sl@0: //! 2. Call Name() to get the drive unit name as text, passing "C:" as expected value for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors, test returns "C:" as drive name. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0008-001-new_command01 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0008-001-name_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0008 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0009 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0009 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a new lowercase drive letter to the drive unit. sl@0: //! Uses API elements: TDriveUnit(), operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "C" as parameter. sl@0: //! 2. Call operator=() to assign a new drive letter, passing "f" as parameter. sl@0: //! 3. Call Name() to get the drive unit name as text, passing "F:" as expected value for verification. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The operator=() call is completed without errors, test returns "F:" as drive name. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0009-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-0009-001-_command02 sl@0: COMMAND driveUnit1 name PBASE-F32-DriveUnit-PublicApi-0009-001-name_command03 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0009 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-0010 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-0010 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create a TDriveUnit instance. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit() to create a TDriveUnit object. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call is completed without errors. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-0010-001-new_command01 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-0010 sl@0: sl@0: sl@0: // ************************ sl@0: // *** NEGATIVE TESTS *** sl@0: // ************************ sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1001 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1001 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number greater than KMaxDrives. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "100" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1001-001-new_command01 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1001 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1002 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1002 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a drive number greater than KMaxDrives to the drive unit. sl@0: //! Uses API elements: TDriveUnit, operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "16" as parameter. sl@0: //! 2. Call operator=() to assign a new drive number, passing "100" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1002-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1002-001-_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1002 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1003 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1003 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number equal to KMaxDrives. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "26" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1003-001-new_command01 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1003 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1004 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1004 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a drive number bigger than KMaxDrives. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "50" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=0). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1004-001-new_command01 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1004 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1005 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1005 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a new drive number to the drive unit bigger than KMaxDrives. sl@0: //! Uses API elements: TDriveUnit(), operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(TInt aDrive) to create a TDriveUnit object, passing "7" as parameter. sl@0: //! 2. Call operator=() to assign a new drive number, passing "100" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The operator=() call will panic (FSCLIENT Code=0). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1005-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1005-001-_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=0 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1005 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1006 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1006 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function TDriveUnit() test. Create an instance with a malformed drive name. sl@0: //! Uses API elements: TDriveUnit(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "##" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The TDriveUnit() method call will panic (FSCLIENT Code=1). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1006-001-new_command01 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=1 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1006 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-DriveUnit-PublicApi-1007 sl@0: //! @SYMTestCaseID PBASE-F32-DriveUnit-PublicApi-1007 sl@0: //! @SYMAPI TDriveUnit sl@0: //! @SYMTestCaseDesc Function operator=() test. Assigns a malformed drive name to the drive unit. sl@0: //! Uses API elements: TDriveUnit(), operator=(). sl@0: //! @SYMTestActions 1. Call TDriveUnit(const TDesC &aDrive) to create a TDriveUnit object, passing "Z" as parameter. sl@0: //! 2. Call operator=() to assign a new drive letter, passing "##" as parameter. sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority High Priority sl@0: //! @SYMTestExpectedResults The operator=() call will panic (FSCLIENT Code=1). sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 t_sfsrv \base\PBASE-F32-DriveUnit-PublicApi.ini sl@0: CREATE_OBJECT TDriveUnit driveUnit1 sl@0: COMMAND driveUnit1 new PBASE-F32-DriveUnit-PublicApi-1007-001-new_command01 sl@0: COMMAND driveUnit1 = PBASE-F32-DriveUnit-PublicApi-1007-001-_command02 sl@0: COMMAND driveUnit1 ~ sl@0: END_TEST_BLOCK !PanicCode=1 !PanicString="FSCLIENT panic" sl@0: END_TESTCASE PBASE-F32-DriveUnit-PublicApi-1007