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