sl@0: // sl@0: // Copyright (c) 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 the License "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: sl@0: sl@0: LOAD_SUITE tcaf sl@0: sl@0: RUN_UTILS MkDir c:\rta\ sl@0: RUN_UTILS MkDir c:\rta\testdata\ sl@0: RUN_UTILS MkDir c:\tcaf\ sl@0: RUN_UTILS MkDir c:\tcaf\testdata\ sl@0: RUN_UTILS MkDir c:\tcaf\testdata\TestAgentPrivateDir\ sl@0: sl@0: RUN_UTILS CopyFile z:\rta\testdata\*.* c:\rta\testdata\*.* sl@0: RUN_UTILS CopyFile z:\tcaf\testdata\*.* c:\tcaf\testdata\*.* sl@0: RUN_UTILS CopyFile z:\tcaf\testdata\TestAgentPrivateDir\*.* c:\tcaf\testdata\TestAgentPrivateDir\*.* sl@0: sl@0: RUN_UTILS MakeReadWrite c:\tcaf\testdata\copyfile.txt sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0031 sl@0: //! @SYMTestCaseDesc Plaintext File Size sl@0: //! (PlainText_File_Size_64bit) sl@0: //! @SYMPREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that the size of the file reported by RFile is the same as the size reported by CAF (F32Agent). CAF opens the file using the given filename sl@0: //! @SYMTestExpectedResults Sizes are equal sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0031 sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent sl@0: END_TESTCASE SEC-CAF-CONS-0031 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0032 sl@0: //! @SYMTestCaseDesc Plaintext File Read and Seek sl@0: //! (PlainText_File_Read_and_Seek_64bit) sl@0: //! @SYMPREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that the data read from an RFile is the same as the data read from CAF (F32Agent). Caf opens the file using the given filename. sl@0: //! @SYMTestExpectedResults Data read is the same for both sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0032 sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent sl@0: END_TESTCASE SEC-CAF-CONS-0032 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0033 sl@0: //! @SYMTestCaseDesc 64Bit DRM File Size sl@0: //! (DRM_File_Size_64bit) sl@0: //! @SYMPREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that the size of a plaintext file reported by RFile is the same as the size of the content within a DRM file reported by CAF (TestAgent). CAF opens the file using the given filename sl@0: //! @SYMTestExpectedResults Sizes are equal sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0033 sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent sl@0: END_TESTCASE SEC-CAF-CONS-0033 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0034 sl@0: //! @SYMTestCaseDesc 64 bit DRM File Read and Seek sl@0: //! (DRM_File_Read_and_Seek_64bit) sl@0: //! @SYMPREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that data read from a plaintext file by RFile is the same as data read from the content within a DRM file by CAF (TestAgent). CAF opens the file using the given filename sl@0: //! @SYMTestExpectedResults data read is the same for both sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0034 sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent sl@0: END_TESTCASE SEC-CAF-CONS-0034 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0035 sl@0: //! @SYMTestCaseDesc Compare the size of the entire file opened with TestAgent vs RFile entire file sl@0: //! (Specific_ContentObject_File_Size_64Bit) sl@0: //! @SYMREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that the size of the file reported by RFile is the same as the size reported by CAF (F32Agent). Caf opens the file using a concatenated URI and UniqueId sl@0: //! @SYMTestExpectedResults Sizes are equal sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0035 sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI sl@0: END_TESTCASE SEC-CAF-CONS-0035 sl@0: sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-CONS-0036 sl@0: //! @SYMTestCaseDesc Read and Seek through the entire file opened with TestAgent vs RFile entire file sl@0: //! (Specific_ContentObject_Read_and_Seek_64Bit) sl@0: //! @SYMREQ PREQ1725 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Checks that the data read from an RFile is the same as the data read from CAF (TestAgent). Caf opens the file using a concatenated URI and UniqueId sl@0: //! @SYMTestExpectedResults Data read is the same for both sl@0: //! @SYMTestType CIT sl@0: START_TESTCASE SEC-CAF-CONS-0036 sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI sl@0: END_TESTCASE SEC-CAF-CONS-0036 sl@0: sl@0: sl@0: //!@file sl@0: //!SYMTestCaseID SEC-CAF-CONS-0037 sl@0: //!SYMTestCaseDesc File with 2GB Size sl@0: //!SYMPREQ PREQ1725 sl@0: //!SYMTestStatus Implemented sl@0: //!SYMTestPriority High sl@0: //!SYMTestActions Checks that the size of the file(filesize is greater than 2GB) reported by RFile is the same as the size reported by CAF (F32Agent). CAF opens the file using the given filename sl@0: //!SYMTestExpectedResults Sizes are equal sl@0: //!SYMTestType CIT sl@0: // Manual Test - Create relevant files before running this test sl@0: //START_TESTCASE SEC-CAF-CONS-0037 sl@0: //RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent sl@0: //START_TESTCASE SEC-CAF-CONS-0037 sl@0: sl@0: sl@0: //!@file sl@0: //!SYMTestCaseID SEC-CAF-CONS-0038 sl@0: //!SYMTestCaseDesc Plaintext File (size greater than 2GB) Read and Seek sl@0: //!SYMPREQ PREQ1725 sl@0: //!SYMTestStatus Implemented sl@0: //!SYMTestPriority High sl@0: //!SYMTestActions Checks that the data read from an RFile is the same as the data read from CAF (F32Agent). Caf opens the file using the given filename. sl@0: //!SYMTestExpectedResults Data read is the same for both sl@0: //!SYMTestType CIT sl@0: // Manual Test - Create relevant files before running this test sl@0: //START_TESTCASE SEC-CAF-CONS-0038 sl@0: //RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent sl@0: //START_TESTCASE SEC-CAF-CONS-0038 sl@0: sl@0: sl@0: RUN_UTILS Delete c:\supplied.drm sl@0: RUN_UTILS Delete c:\receipt.txt sl@0: RUN_UTILS Delete c:\OUTPUTFILE.DRM sl@0: sl@0: RUN_SCRIPT z:\tcaf\testcleanupstep.script sl@0: sl@0: