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-ram sl@0: //! @SYMScriptTestEnvironment This test script requires a basic ROM. sl@0: //! @SYMScriptAuthor Dmitri Trofimov, Sergei Tveritin, Jaanus Randveer sl@0: //! @SYMCreationDate 12/10/2007 sl@0: //! @SYMScriptDescription The test script contains API tests for the following functions of TEntry class: sl@0: //! TEntry(); sl@0: //! TEntry(const TEntry &aEntry); sl@0: //! TEntry &operator=(const TEntry &aEntry); sl@0: //! const TUid &operator[](TInt anIndex) const; sl@0: //! TBool IsUidPresent(TUid aUid) const; sl@0: //! TBool IsTypeValid() const; sl@0: //! TUid MostDerivedUid() const; sl@0: //! TBool IsReadOnly() const; sl@0: //! TBool IsHidden() const; sl@0: //! TBool IsSystem() const; sl@0: //! TBool IsDir() const; sl@0: //! TBool IsArchive() 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-Entry-PublicApi-0001 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0001 sl@0: //! @SYMAPI TEntry sl@0: //! sl@0: //! @SYMTestCaseDesc TEntry() test. Tests for successful object creation. sl@0: //! Uses API elements: TEntry() sl@0: //! @SYMTestActions 1. Create a TEntry object sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function does not leave nor panic sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND TEntry1 new sl@0: COMMAND TEntry1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0001 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0002 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0002 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc operator=() test. Tests for successful assignment of one TEntry object to another TEntry object. sl@0: //! Uses API elements: TEntry(), operator=(), RFs::Entry() sl@0: //! @SYMTestActions 1. Create a TEntry object. sl@0: //! 2. Call RFs's command Entry() and pass ":\\Entry\Test1.txt" as name of file. sl@0: //! 3. Create second TEntry object. sl@0: //! 4. Call assignment operator "=" and pass second TEntry object, first TEntry object to be copied to this second TEntry object. sl@0: //! 5. Check that firstTEntr and second TEntry has the same name "\base\PBASE-F32-Entry-PublicApi.ini". sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Second TEntry object contains same data as the first TEntry. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0002-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0002-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0002-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: CREATE_OBJECT TEntry TEntry2 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0002-002-Entry_command007 sl@0: COMMAND TEntry2 new sl@0: COMMAND TEntry2 = PBASE-F32-Entry-PublicApi-0002-002-=_command009 sl@0: COMMAND TEntry2 ~ sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0002-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0002-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0002-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0002 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0003 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0003 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc TEntry() passing another TEntry object as a reference. Tests for successful creation of TEntry object and initilization with another TEntry objet's data. sl@0: //! Uses API elements: TEntry() sl@0: //! @SYMTestActions 1. Create a TEntry object sl@0: //! 2. Call RFs's command Entry() and pass ":\\Entry\Test1.txt" as name of file. sl@0: //! 3. Create the second TEntry object passing the the first TEntry as a parameter sl@0: //! 4. Compare data members of the first and the second TEntry objects. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults New TEntry object contains same data as the other one. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0003-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0003-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0003-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: CREATE_OBJECT TEntry TEntry2 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0003-002-Entry_command007 sl@0: COMMAND TEntry2 new PBASE-F32-Entry-PublicApi-0003-002-new_command008 sl@0: COMMAND TEntry2 IsReadOnly PBASE-F32-Entry-PublicApi-0003-002-IsReadOnly_command009 sl@0: COMMAND TEntry2 IsHidden PBASE-F32-Entry-PublicApi-0003-002-IsHidden_command010 sl@0: COMMAND TEntry2 IsDir PBASE-F32-Entry-PublicApi-0003-002-IsDir_command011 sl@0: COMMAND TEntry2 ~ sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0003-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0003-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0003-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0003 sl@0: sl@0: sl@0: //! START_TESTCASE PBASE-F32-Entry-PublicApi-0004 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0004 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMCreationDate 13/08/2006 sl@0: //! @SYMTestCaseDesc operator[] negative test where passing unsupported index of UID as a parameter. This tests for panic when unsupported UID sl@0: //! index value is provided. sl@0: //! Uses API elements: operator[] sl@0: //! @SYMTestActions 1. Create a TEntry object sl@0: //! 2. Try get "four UID" sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Panic USER - 37. sl@0: //! @SYMTestType CIT sl@0: //! START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: //! CREATE_OBJECT TEntry TEntry1 sl@0: //! COMMAND TEntry1 new sl@0: //! COMMAND TEntry1 [] PBASE-F32-Entry-PublicApi-0004-001-index_command003 sl@0: //! COMMAND TEntry1 ~ sl@0: //! END_TEST_BLOCK !PanicCode=37 !PanicString=USER sl@0: //! END_TESTCASE PBASE-F32-Entry-PublicApi-0004 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0005 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0005 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsUidPresent() test. This tests the function for finding a match in "first UID". sl@0: //! Uses API elements: IsUidPresent() sl@0: //! @SYMTestActions 1. Create a TEntry object sl@0: //! 2. Call IsUidPresent() and and check that the function return "FALSE". sl@0: //! 3. Call RFs's command Entry() and pass ":\\Entry\Test3.txt" as name of file. sl@0: //! 4. Call IsUidPresent() and check that the function return "FALSE". sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsUidPresent() returns ETrue sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0005-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0005-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0005-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND TEntry1 new sl@0: COMMAND TEntry1 IsUidPresent PBASE-F32-Entry-PublicApi-0005-002-IsUidPresent_command006 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0005-002-Entry_command007 sl@0: COMMAND TEntry1 IsUidPresent PBASE-F32-Entry-PublicApi-0005-002-IsUidPresent_command008 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0005-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0005-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0005-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0005 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0006 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0006 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsTypeValid() test. This tests if the function can correctly identify the absence of valid UID. sl@0: //! Uses API elements: IsTypeValid() sl@0: //! @SYMTestActions 1. Create TEntry object sl@0: //! 2. Call IsTypeValid() and and check that the function return "FALSE". sl@0: //! 3. Call RFs's command Entry() and pass ":\\Entry\Test3.txt" as name of file. sl@0: //! 4. Call IsTypeValid() and check that the function return "FALSE". sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsTypeValid() returns EFalse sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0006-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0006-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0006-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND TEntry1 new sl@0: COMMAND TEntry1 IsTypeValid PBASE-F32-Entry-PublicApi-0006-002-IsTypeValid_command006 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0006-002-Entry_command007 sl@0: COMMAND TEntry1 IsTypeValid PBASE-F32-Entry-PublicApi-0006-002-IsTypeValid_command008 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0006-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0006-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0006-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0006 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0007 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0007 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc MostDerivedUid(). This tests if the function is able to correctly find the most derived UID when it is "first UID". sl@0: //! Uses API elements: MostDerivedUid() sl@0: //! @SYMTestActions 1. Create TEntry object sl@0: //! 2. Call RFs's command Entry() and pass ":\\Entry\Test3.txt" as name of file. sl@0: //! 3. Call MostDerivedUid(). sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults Function returns no panic. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0007-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0007-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0007-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0007-002-Entry_command006 sl@0: COMMAND TEntry1 MostDerivedUid sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0007-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0007-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0007-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0007 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0008 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0008 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsReadOnly() test. Test if the function is able to correctly identify the presence of ReadOnly attribute. sl@0: //! Uses API elements: IsReadOnly(), RFs:SetAtt() sl@0: //! @SYMTestActions 1. Create RFs object sl@0: //! 2. Create TEntry object sl@0: //! 3. Call RFs::SetAtt() and pass KEntryAttReadOnly as attribute and "Test1.txt" as name of entry. sl@0: //! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 5. Call IsReadOnly(), and check that the attribute is set. sl@0: //! 6. Call RFs::SetAtt() and pass KEntryAttReadOnly as attribute for clear and "Test1.txt" as name of entry. sl@0: //! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 8. Call IsReadOnly(), and check that the attribute is not set. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsReadonly() returns expected result successfuly. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0008-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0008-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0008-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0008-002-SetAtt_command005 sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0008-002-Entry_command007 sl@0: COMMAND TEntry1 IsReadOnly PBASE-F32-Entry-PublicApi-0008-002-IsReadOnly_command008 sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0008-002-SetAtt_command009 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0008-002-Entry_command010 sl@0: COMMAND TEntry1 IsReadOnly PBASE-F32-Entry-PublicApi-0008-002-IsReadOnly_command011 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0008-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0008-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0008-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0008 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0009 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0009 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsHidden() test. This tests if the function is able to identify the presence of Hidden attribute. sl@0: //! Uses API elements: IsHidden(), RFs:SetAtt() sl@0: //! @SYMTestActions 1. Create RFs object sl@0: //! 2. Create TEntry object sl@0: //! 3. Call RFs::SetAtt() and pass KEntryAttHidden as attribute and "Test1.txt" as name of entry. sl@0: //! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 5. Call IsHidden(), and check that the attribute is set. sl@0: //! 6. Call RFs::SetAtt() and pass KEntryAttHidden as attribute for clear and "Test1.txt" as name of entry. sl@0: //! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 8. Call IsHidden(), and check that the attribute is not set. sl@0: //! sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsHidden() returns expected result successfuly. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0009-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0009-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0009-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0009-002-SetAtt_command005 sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0009-002-Entry_command007 sl@0: COMMAND TEntry1 IsHidden PBASE-F32-Entry-PublicApi-0009-002-IsHidden_command008 sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0009-002-SetAtt_command009 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0009-002-Entry_command010 sl@0: COMMAND TEntry1 IsHidden PBASE-F32-Entry-PublicApi-0009-002-IsHidden_command011 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0009-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0009-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0009-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0009 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0010 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0010 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsSystem() test. This tests if the function is able to identify the presence of System attribute. sl@0: //! Uses API elements: IsSystem(), RFs:SetAtt() sl@0: //! @SYMTestActions 1. Create RFs object sl@0: //! 2. Create TEntry object sl@0: //! 3. Call RFs::SetAtt() and pass KEntryAttSystem as attribute and "Test1.txt" as name of entry. sl@0: //! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 5. Call IsSystem(), and check that the attribute is set. sl@0: //! 6. Call RFs::SetAtt() and pass KEntryAttSystem as attribute for clear and "Test1.txt" as name of entry. sl@0: //! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 8. Call IsSystem(), and check that the attribute is not set. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsSystem() returns expected result successfuly. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0010-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0010-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0010-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0010-002-SetAtt_command005 sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0010-002-Entry_command007 sl@0: COMMAND TEntry1 IsSystem PBASE-F32-Entry-PublicApi-0010-002-IsSystem_command008 sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0010-002-SetAtt_command009 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0010-002-Entry_command010 sl@0: COMMAND TEntry1 IsSystem PBASE-F32-Entry-PublicApi-0010-002-IsSystem_command011 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0010-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0010-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0010-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0010 sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0011 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0011 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsArchive() test. This tests if the function is able to identify the presence of Archive attribute. sl@0: //! Uses API elements: IsArchive(), RFs:SetAtt() sl@0: //! @SYMTestActions 1. Create RFs object sl@0: //! 2. Create TEntry object sl@0: //! 3. Call RFs::SetAtt() and pass KEntryAttArchive as attribute and "Test1.txt" as name of entry. sl@0: //! 4. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 5. Call IsArchive(), and check that the attribute is set. sl@0: //! 6. Call RFs::SetAtt() and pass KEntryAttArchive as attribute for clear and "test.txt" as name of entry. sl@0: //! 7. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 8. Call IsArchive(), and check that the attribute is not set. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsArchive() returns ETrue. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0011-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0011-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0011-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0011-002-SetAtt_command005 sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0011-002-Entry_command007 sl@0: COMMAND TEntry1 IsArchive PBASE-F32-Entry-PublicApi-0011-002-IsArchive_command008 sl@0: COMMAND RFs1 SetAtt PBASE-F32-Entry-PublicApi-0011-002-SetAtt_command009 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0011-002-Entry_command010 sl@0: COMMAND TEntry1 IsArchive PBASE-F32-Entry-PublicApi-0011-002-IsArchive_command011 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0011-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0011-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0011-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0011 sl@0: sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0012 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0012 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc IsDir() test. This tests if the function is able to indentify the presence of Dir attribute. sl@0: //! Uses API elements: IsDir(), RFs:SetAtt() sl@0: //! @SYMTestActions 1. Create RFs object sl@0: //! 2. Create TEntry object sl@0: //! 3. Call RFs::MkDirAll() and pass "test\" as name of directory. sl@0: //! 4. Call RFs::Entry() to obtain data for TEntry object where name is "test". sl@0: //! 5. Call IsDir(), and check that the attribute is set. sl@0: //! 6. Call RFs::Entry() to obtain data for TEntry object where name is "Test1.txt". sl@0: //! 7. Call IsDir(), and check that the attribute is not set. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults IsDir() returns ETrue. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0012-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0012-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0012-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0012-002-MkDirAll_command005 sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0012-002-Entry_command007 sl@0: COMMAND TEntry1 IsDir PBASE-F32-Entry-PublicApi-0012-002-IsDir_command008 sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0012-002-Entry_command009 sl@0: COMMAND TEntry1 IsDir PBASE-F32-Entry-PublicApi-0012-002-IsDir_command010 sl@0: COMMAND TEntry1 ~ sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0012-002-RmDir_command012 sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0012-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0012-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0012-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0012 sl@0: sl@0: sl@0: sl@0: START_TESTCASE PBASE-F32-Entry-PublicApi-0013 sl@0: //! @SYMTestCaseID PBASE-F32-Entry-PublicApi-0013 sl@0: //! @SYMAPI TEntry sl@0: //! @SYMTestCaseDesc operator[] test where getting one index of UID. sl@0: //! Uses API elements: operator[] sl@0: //! @SYMTestActions 1. Create a TEntry object sl@0: //! 2. Call RFs's command Entry() and pass ":\\Entry\Test3.txt" as name of file. sl@0: //! 3. Call operator[] and pass "UID1" as parameter. sl@0: //! sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestExpectedResults operator[] returns no panic. sl@0: //! @SYMTestType CIT sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 MkDirAll PBASE-F32-Entry-PublicApi-0013-001-MkDirAll_command004 sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0013-001-NewL_command005 sl@0: COMMAND CFileMan1 Copy PBASE-F32-Entry-PublicApi-0013-001-Copy_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT TEntry TEntry1 sl@0: COMMAND RFs1 new sl@0: COMMAND TEntry1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND RFs1 Entry PBASE-F32-Entry-PublicApi-0013-002-Entry_command006 sl@0: COMMAND TEntry1 [] PBASE-F32-Entry-PublicApi-0013-002-index_command007 sl@0: COMMAND TEntry1 ~ sl@0: END_TEST_BLOCK sl@0: START_TEST_BLOCK 100 T_SfSrv \base\PBASE-F32-Entry-PublicApi.ini sl@0: CREATE_OBJECT RFs RFs1 sl@0: CREATE_OBJECT CFileMan CFileMan1 sl@0: COMMAND RFs1 new sl@0: COMMAND RFs1 Connect sl@0: COMMAND CFileMan1 NewL PBASE-F32-Entry-PublicApi-0013-003-NewL_command004 sl@0: COMMAND CFileMan1 Delete PBASE-F32-Entry-PublicApi-0013-003-Delete_command005 sl@0: COMMAND RFs1 RmDir PBASE-F32-Entry-PublicApi-0013-003-RmDir_command006 sl@0: COMMAND CFileMan1 ~ sl@0: COMMAND RFs1 ~ sl@0: END_TEST_BLOCK sl@0: END_TESTCASE PBASE-F32-Entry-PublicApi-0013