contentmgmt/referencedrmagent/tcaf/scripts/consumerstep_64bit.script
changeset 15 da2ae96f639b
child 29 ece3df019add
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
       
     1 //
       
     2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 // All rights reserved.
       
     4 // This component and the accompanying materials are made available
       
     5 // under the terms of the License "Eclipse Public License v1.0"
       
     6 // which accompanies this distribution, and is available
       
     7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 //
       
     9 // Initial Contributors:
       
    10 // Nokia Corporation - initial contribution.
       
    11 //
       
    12 // Contributors:
       
    13 //
       
    14 // Description: 
       
    15 //
       
    16 //
       
    17 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
    18 // All rights reserved.
       
    19 // This component and the accompanying materials are made available
       
    20 // under the terms of the License "Symbian Foundation License v1.0"
       
    21 // which accompanies this distribution, and is available
       
    22 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html".
       
    23 //
       
    24 // Initial Contributors:
       
    25 // Nokia Corporation - initial contribution.
       
    26 //
       
    27 // Contributors:
       
    28 //
       
    29 // Description:
       
    30 //
       
    31 
       
    32 LOAD_SUITE tcaf
       
    33 
       
    34 RUN_UTILS MkDir c:\rta\
       
    35 RUN_UTILS MkDir c:\rta\testdata\
       
    36 RUN_UTILS MkDir c:\tcaf\
       
    37 RUN_UTILS MkDir c:\tcaf\testdata\
       
    38 RUN_UTILS MkDir c:\tcaf\testdata\TestAgentPrivateDir\
       
    39 
       
    40 RUN_UTILS CopyFile z:\rta\testdata\*.* c:\rta\testdata\*.*
       
    41 RUN_UTILS CopyFile z:\tcaf\testdata\*.* c:\tcaf\testdata\*.*
       
    42 RUN_UTILS CopyFile z:\tcaf\testdata\TestAgentPrivateDir\*.* c:\tcaf\testdata\TestAgentPrivateDir\*.*
       
    43 
       
    44 RUN_UTILS MakeReadWrite c:\tcaf\testdata\copyfile.txt
       
    45 
       
    46 //! @file
       
    47 //! @SYMTestCaseID 		SEC-CAF-CONS-0031
       
    48 //! @SYMTestCaseDesc 		Plaintext File Size 
       
    49 //!				(PlainText_File_Size_64bit)
       
    50 //! @SYMPREQ			PREQ1725
       
    51 //! @SYMTestStatus		Implemented
       
    52 //! @SYMTestPriority		Critical
       
    53 //! @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
       
    54 //! @SYMTestExpectedResults	Sizes are equal
       
    55 //! @SYMTestType		CIT
       
    56 START_TESTCASE SEC-CAF-CONS-0031
       
    57 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent
       
    58 END_TESTCASE SEC-CAF-CONS-0031
       
    59 
       
    60 //! @file
       
    61 //! @SYMTestCaseID 		SEC-CAF-CONS-0032
       
    62 //! @SYMTestCaseDesc 		Plaintext File Read and Seek 
       
    63 //!				(PlainText_File_Read_and_Seek_64bit)
       
    64 //! @SYMPREQ			PREQ1725
       
    65 //! @SYMTestStatus		Implemented
       
    66 //! @SYMTestPriority		Critical
       
    67 //! @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.
       
    68 //! @SYMTestExpectedResults	Data read is the same for both
       
    69 //! @SYMTestType		CIT
       
    70 START_TESTCASE SEC-CAF-CONS-0032
       
    71 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentF32Agent
       
    72 END_TESTCASE SEC-CAF-CONS-0032
       
    73 
       
    74 //! @file
       
    75 //! @SYMTestCaseID 		SEC-CAF-CONS-0033
       
    76 //! @SYMTestCaseDesc 		64Bit DRM File Size 
       
    77 //!				(DRM_File_Size_64bit)
       
    78 //! @SYMPREQ			PREQ1725
       
    79 //! @SYMTestStatus		Implemented
       
    80 //! @SYMTestPriority		Critical
       
    81 //! @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
       
    82 //! @SYMTestExpectedResults	Sizes are equal
       
    83 //! @SYMTestType		CIT
       
    84 START_TESTCASE SEC-CAF-CONS-0033
       
    85 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent
       
    86 END_TESTCASE SEC-CAF-CONS-0033
       
    87 
       
    88 //! @file
       
    89 //! @SYMTestCaseID 		SEC-CAF-CONS-0034
       
    90 //! @SYMTestCaseDesc 		64 bit DRM File Read and Seek
       
    91 //!				(DRM_File_Read_and_Seek_64bit)
       
    92 //! @SYMPREQ			PREQ1725
       
    93 //! @SYMTestStatus		Implemented
       
    94 //! @SYMTestPriority		Critical
       
    95 //! @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
       
    96 //! @SYMTestExpectedResults	data read is the same for both
       
    97 //! @SYMTestType		CIT
       
    98 START_TESTCASE SEC-CAF-CONS-0034
       
    99 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentTestAgent
       
   100 END_TESTCASE SEC-CAF-CONS-0034
       
   101 
       
   102 //! @file
       
   103 //! @SYMTestCaseID 		SEC-CAF-CONS-0035
       
   104 //! @SYMTestCaseDesc 		Compare the size of the entire file opened with TestAgent vs RFile entire file
       
   105 //!				(Specific_ContentObject_File_Size_64Bit)
       
   106 //! @SYMREQ			PREQ1725
       
   107 //! @SYMTestStatus		Implemented
       
   108 //! @SYMTestPriority		Critical
       
   109 //! @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
       
   110 //! @SYMTestExpectedResults	Sizes are equal
       
   111 //! @SYMTestType		CIT
       
   112 START_TESTCASE SEC-CAF-CONS-0035
       
   113 RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI
       
   114 END_TESTCASE SEC-CAF-CONS-0035
       
   115 
       
   116 //! @file
       
   117 //! @SYMTestCaseID 		SEC-CAF-CONS-0036
       
   118 //! @SYMTestCaseDesc 		Read and Seek through the entire file opened with TestAgent vs RFile entire file
       
   119 //!				(Specific_ContentObject_Read_and_Seek_64Bit)
       
   120 //! @SYMREQ			PREQ1725
       
   121 //! @SYMTestStatus		Implemented
       
   122 //! @SYMTestPriority		Critical
       
   123 //! @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
       
   124 //! @SYMTestExpectedResults	Data read is the same for both
       
   125 //! @SYMTestType		CIT
       
   126 START_TESTCASE SEC-CAF-CONS-0036
       
   127 RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini CompareContentCombinedURI
       
   128 END_TESTCASE SEC-CAF-CONS-0036
       
   129 
       
   130 
       
   131 //!@file
       
   132 //!SYMTestCaseID 		SEC-CAF-CONS-0037
       
   133 //!SYMTestCaseDesc 		File with 2GB Size 
       
   134 //!SYMPREQ				PREQ1725
       
   135 //!SYMTestStatus		Implemented
       
   136 //!SYMTestPriority		High
       
   137 //!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
       
   138 //!SYMTestExpectedResults	Sizes are equal
       
   139 //!SYMTestType			CIT
       
   140 // Manual Test - Create relevant files before running this test
       
   141 //START_TESTCASE SEC-CAF-CONS-0037
       
   142 //RUN_TEST_STEP 100 tcaf CAFSizeStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent
       
   143 //START_TESTCASE SEC-CAF-CONS-0037
       
   144 
       
   145 
       
   146 //!@file
       
   147 //!SYMTestCaseID 		SEC-CAF-CONS-0038
       
   148 //!SYMTestCaseDesc 		Plaintext File (size greater than 2GB) Read and Seek 
       
   149 //!SYMPREQ				PREQ1725
       
   150 //!SYMTestStatus		Implemented
       
   151 //!SYMTestPriority		High
       
   152 //!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.
       
   153 //!SYMTestExpectedResults	Data read is the same for both
       
   154 //!SYMTestType			CIT
       
   155 // Manual Test - Create relevant files before running this test
       
   156 //START_TESTCASE SEC-CAF-CONS-0038
       
   157 //RUN_TEST_STEP 100 tcaf CAFSeekReadStep64 c:\tcaf\consumerstep.ini Compare2GBContentF32Agent
       
   158 //START_TESTCASE SEC-CAF-CONS-0038
       
   159 
       
   160 
       
   161 RUN_UTILS Delete c:\supplied.drm
       
   162 RUN_UTILS Delete c:\receipt.txt
       
   163 RUN_UTILS Delete c:\OUTPUTFILE.DRM
       
   164 
       
   165 RUN_SCRIPT z:\tcaf\testcleanupstep.script
       
   166 
       
   167