os/security/contentmgmt/referencedrmagent/tcaf/scripts/Consumerstep.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
//! @file
sl@0
    21
//! @SYMTestCaseID 		SEC-CAF-CONS-0001
sl@0
    22
//! @SYMTestCaseDesc 		Get an attribute for a content object within a file
sl@0
    23
//! @SYMREQ			REQ3679
sl@0
    24
//! @SYMTestStatus		Implemented
sl@0
    25
//! @SYMTestPriority		Normal
sl@0
    26
//! @SYMTestActions		Get a single attribute for a content object within a file
sl@0
    27
//! @SYMTestExpectedResults	Should return KErrNone
sl@0
    28
//! @SYMTestType		CIT
sl@0
    29
START_TESTCASE SEC-CAF-CONS-0001
sl@0
    30
RUN_TEST_STEP 100 tcaf CAFDataAttributeStep c:\tcaf\attributes.ini Attribute
sl@0
    31
END_TESTCASE SEC-CAF-CONS-0001
sl@0
    32
sl@0
    33
//! @file
sl@0
    34
//! @SYMTestCaseID 		SEC-CAF-CONS-0002
sl@0
    35
//! @SYMTestCaseDesc 		Get a set of attributes for a content object within a file
sl@0
    36
//! @SYMREQ			REQ3679
sl@0
    37
//! @SYMTestStatus		Implemented
sl@0
    38
//! @SYMTestPriority		Normal
sl@0
    39
//! @SYMTestActions		Get a set of attributes for a content object within a file
sl@0
    40
//! @SYMTestExpectedResults	Should return KErrNone
sl@0
    41
//! @SYMTestType		CIT
sl@0
    42
START_TESTCASE SEC-CAF-CONS-0002
sl@0
    43
RUN_TEST_STEP 100 tcaf CAFDataAttributeSetStep c:\tcaf\attributes.ini AttributeSet
sl@0
    44
END_TESTCASE SEC-CAF-CONS-0002
sl@0
    45
sl@0
    46
//! @file
sl@0
    47
//! @SYMTestCaseID 		SEC-CAF-CONS-0003
sl@0
    48
//! @SYMTestCaseDesc 		Get a string attribute for a content object within a file
sl@0
    49
//! @SYMREQ			REQ3679
sl@0
    50
//! @SYMTestStatus		Implemented
sl@0
    51
//! @SYMTestPriority		Normal
sl@0
    52
//! @SYMTestActions		Get a single string attribute for a content object within a file
sl@0
    53
//! @SYMTestExpectedResults	Should return KErrNone
sl@0
    54
//! @SYMTestType		CIT
sl@0
    55
START_TESTCASE SEC-CAF-CONS-0003
sl@0
    56
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini StringAttribute
sl@0
    57
END_TESTCASE SEC-CAF-CONS-0003
sl@0
    58
sl@0
    59
//! @file
sl@0
    60
//! @SYMTestCaseID 		SEC-CAF-CONS-0004
sl@0
    61
//! @SYMTestCaseDesc 		Get a string attribute for a content object within a file
sl@0
    62
//! @SYMREQ			CR1440
sl@0
    63
//! @SYMTestStatus		Implemented
sl@0
    64
//! @SYMTestPriority		Normal
sl@0
    65
//! @SYMTestActions		Get a single string attribute for a content object within a file
sl@0
    66
//! @SYMTestExpectedResults	Should return KErrCANotSupported
sl@0
    67
//! @SYMTestType		CIT
sl@0
    68
START_TESTCASE SEC-CAF-CONS-0004
sl@0
    69
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini StringAttributeECoverURI
sl@0
    70
END_TESTCASE SEC-CAF-CONS-0004
sl@0
    71
sl@0
    72
//! @file
sl@0
    73
//! @SYMTestCaseID 		SEC-CAF-CONS-3443
sl@0
    74
//! @SYMTestCaseDesc 		Get a string attribute for a data object within a valid gif file
sl@0
    75
//! @SYMDEF			PDEF104571
sl@0
    76
//! @SYMTestStatus		Implemented
sl@0
    77
//! @SYMTestPriority		Normal
sl@0
    78
//! @SYMTestActions		Get a single string attribute for a data object within a valid gif file
sl@0
    79
//! @SYMTestExpectedResults	A string attribute should successfully be returned
sl@0
    80
//! @SYMTestType		CT
sl@0
    81
START_TESTCASE SEC-CAF-CONS-3443
sl@0
    82
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini StringAttributeGoodGif
sl@0
    83
END_TESTCASE SEC-CAF-CONS-3443
sl@0
    84
sl@0
    85
//! @file
sl@0
    86
//! @SYMTestCaseID 		SEC-CAF-CONS-3444
sl@0
    87
//! @SYMTestCaseDesc 		Failure to return a string attribute for a data object within an invalid gif file
sl@0
    88
//! @SYMDEF			PDEF104571
sl@0
    89
//! @SYMTestStatus		Implemented
sl@0
    90
//! @SYMTestPriority		Normal
sl@0
    91
//! @SYMTestActions		Attempt to get a single string attribute for a data object within an invalid gif file
sl@0
    92
//! @SYMTestExpectedResults	An  error should be returned
sl@0
    93
//! @SYMTestType		CT
sl@0
    94
START_TESTCASE SEC-CAF-CONS-3444
sl@0
    95
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini StringAttributeErrorGif
sl@0
    96
END_TESTCASE SEC-CAF-CONS-3444
sl@0
    97
sl@0
    98
//! @file
sl@0
    99
//! @SYMTestCaseID 		SEC-CAF-CONS-0005
sl@0
   100
//! @SYMTestCaseDesc 		Get a set of string attributes for a content object within a file
sl@0
   101
//! @SYMREQ			REQ3679
sl@0
   102
//! @SYMTestStatus		Implemented
sl@0
   103
//! @SYMTestPriority		Normal
sl@0
   104
//! @SYMTestActions		Get a set of string attributes for a content object within a file
sl@0
   105
//! @SYMTestExpectedResults	Should return KErrNone
sl@0
   106
//! @SYMTestType		CIT
sl@0
   107
START_TESTCASE SEC-CAF-CONS-0005
sl@0
   108
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSet
sl@0
   109
END_TESTCASE SEC-CAF-CONS-0005
sl@0
   110
sl@0
   111
//! @file
sl@0
   112
//! @SYMTestCaseID 		SEC-CAF-CONS-3445
sl@0
   113
//! @SYMTestCaseDesc 		Get a set of string attributes for a data object within a valid gif file
sl@0
   114
//! @SYMDEF			PDEF104571
sl@0
   115
//! @SYMTestStatus		Implemented
sl@0
   116
//! @SYMTestPriority		Normal
sl@0
   117
//! @SYMTestActions		Get a set of string attributes for a data object within a valid gif file
sl@0
   118
//! @SYMTestExpectedResults	A set of string attributes should successfully be returned
sl@0
   119
//! @SYMTestType		CT
sl@0
   120
START_TESTCASE SEC-CAF-CONS-3445
sl@0
   121
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetGoodGif
sl@0
   122
END_TESTCASE SEC-CAF-CONS-3445
sl@0
   123
sl@0
   124
//! @file
sl@0
   125
//! @SYMTestCaseID 		SEC-CAF-CONS-3446
sl@0
   126
//! @SYMTestCaseDesc 		Get a set of string attributes for a data object within an invalid gif file
sl@0
   127
//! @SYMDEF			PDEF104571
sl@0
   128
//! @SYMTestStatus		Implemented
sl@0
   129
//! @SYMTestPriority		Normal
sl@0
   130
//! @SYMTestActions		Get a set of string attributes for a data object within an invalid gif file
sl@0
   131
//! @SYMTestExpectedResults	An  error should be returned for the invalid gif file within the set
sl@0
   132
//! @SYMTestType		CT
sl@0
   133
START_TESTCASE SEC-CAF-CONS-3446
sl@0
   134
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeSetStep c:\tcaf\attributes.ini StringAttributeSetErrorGif
sl@0
   135
END_TESTCASE SEC-CAF-CONS-3446
sl@0
   136
sl@0
   137
//! @file
sl@0
   138
//! @SYMTestCaseID 		SEC-CAF-CONS-0006
sl@0
   139
//! @SYMTestCaseDesc 		Plaintext File Size 
sl@0
   140
//! @SYMPREQ			PREQ1951
sl@0
   141
//! @SYMTestStatus		Implemented
sl@0
   142
//! @SYMTestPriority		Critical
sl@0
   143
//! @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
   144
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   145
//! @SYMTestType		CIT
sl@0
   146
START_TESTCASE SEC-CAF-CONS-0006
sl@0
   147
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\consumerstep.ini CompareContentF32Agent
sl@0
   148
END_TESTCASE SEC-CAF-CONS-0006
sl@0
   149
sl@0
   150
//! @file
sl@0
   151
//! @SYMTestCaseID 		SEC-CAF-CONS-0007
sl@0
   152
//! @SYMTestCaseDesc 		Plaintext File Size  
sl@0
   153
//! @SYMREQ			REQ0000
sl@0
   154
//! @SYMTestStatus		Implemented
sl@0
   155
//! @SYMTestPriority		Critical
sl@0
   156
//! @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, split the construction and evaluation of CData
sl@0
   157
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   158
//! @SYMTestType		CIT
sl@0
   159
START_TESTCASE SEC-CAF-CONS-0007
sl@0
   160
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\consumerstep.ini CompareContentF32AgentWithoutIntent
sl@0
   161
END_TESTCASE SEC-CAF-CONS-0007
sl@0
   162
sl@0
   163
//! @file
sl@0
   164
//! @SYMTestCaseID 		SEC-CAF-CONS-0008
sl@0
   165
//! @SYMTestCaseDesc 		Plaintext File Read and Seek 
sl@0
   166
//! @SYMPREQ			PREQ1951
sl@0
   167
//! @SYMTestStatus		Implemented
sl@0
   168
//! @SYMTestPriority		Critical
sl@0
   169
//! @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
   170
//! @SYMTestExpectedResults	Data read is the same for both
sl@0
   171
//! @SYMTestType		CIT
sl@0
   172
START_TESTCASE SEC-CAF-CONS-0008
sl@0
   173
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\consumerstep.ini CompareContentF32Agent
sl@0
   174
END_TESTCASE SEC-CAF-CONS-0008
sl@0
   175
sl@0
   176
//! @file
sl@0
   177
//! @SYMTestCaseID 		SEC-CAF-CONS-0009
sl@0
   178
//! @SYMTestCaseDesc 		Plaintext File Handle Size 
sl@0
   179
//! @SYMPREQ			PREQ280
sl@0
   180
//! @SYMTestStatus		Implemented
sl@0
   181
//! @SYMTestPriority		Critical
sl@0
   182
//! @SYMTestActions		Checks that the size of the file reported by RFile is the same as the size reported by CAF (F32Agent). CAF is supplied with a handle to the open file.
sl@0
   183
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   184
//! @SYMTestType		CIT
sl@0
   185
START_TESTCASE SEC-CAF-CONS-0009
sl@0
   186
RUN_TEST_STEP 100 tcaf CAFHandleSizeStep c:\tcaf\consumerstep.ini CompareContentF32Agent
sl@0
   187
END_TESTCASE SEC-CAF-CONS-0009
sl@0
   188
sl@0
   189
sl@0
   190
//! @file
sl@0
   191
//! @SYMTestCaseID 		SEC-CAF-CONS-0010
sl@0
   192
//! @SYMTestCaseDesc 		Plaintext File Handle Read and Seek 
sl@0
   193
//! @SYMPREQ			PREQ280
sl@0
   194
//! @SYMTestStatus		Implemented
sl@0
   195
//! @SYMTestPriority		Critical
sl@0
   196
//! @SYMTestActions		Checks that the data read from an RFile is the same as the data read from CAF (F32Agent). Caf is supplied with a handle to an open file.
sl@0
   197
//! @SYMTestExpectedResults	Data read is the same for both
sl@0
   198
//! @SYMTestType		CIT
sl@0
   199
START_TESTCASE SEC-CAF-CONS-0010
sl@0
   200
RUN_TEST_STEP 100 tcaf CAFHandleSeekReadStep c:\tcaf\consumerstep.ini CompareContentF32Agent
sl@0
   201
END_TESTCASE SEC-CAF-CONS-0010
sl@0
   202
sl@0
   203
//! @file
sl@0
   204
//! @SYMTestCaseID 		SEC-CAF-CONS-0011
sl@0
   205
//! @SYMTestCaseDesc 		DRM File Size 
sl@0
   206
//! @SYMPREQ			PREQ1951
sl@0
   207
//! @SYMTestStatus		Implemented
sl@0
   208
//! @SYMTestPriority		Critical
sl@0
   209
//! @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
   210
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   211
//! @SYMTestType		CIT
sl@0
   212
START_TESTCASE SEC-CAF-CONS-0011
sl@0
   213
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\consumerstep.ini CompareContentTestAgent
sl@0
   214
END_TESTCASE SEC-CAF-CONS-0011
sl@0
   215
sl@0
   216
//! @file
sl@0
   217
//! @SYMTestCaseID 		SEC-CAF-CONS-0012
sl@0
   218
//! @SYMTestCaseDesc 		DRM File Read and Seek
sl@0
   219
//! @SYMPREQ			PREQ1951
sl@0
   220
//! @SYMTestStatus		Implemented
sl@0
   221
//! @SYMTestPriority		Critical
sl@0
   222
//! @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
   223
//! @SYMTestExpectedResults	data read is the same for both
sl@0
   224
//! @SYMTestType		CIT
sl@0
   225
START_TESTCASE SEC-CAF-CONS-0012
sl@0
   226
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\consumerstep.ini CompareContentTestAgent
sl@0
   227
END_TESTCASE SEC-CAF-CONS-0012
sl@0
   228
sl@0
   229
//! @file
sl@0
   230
//! @SYMTestCaseID 		SEC-CAF-CONS-0013
sl@0
   231
//! @SYMTestCaseDesc 		DRM File Size with file handle
sl@0
   232
//! @SYMPREQ			PREQ280
sl@0
   233
//! @SYMTestStatus		Implemented
sl@0
   234
//! @SYMTestPriority		Critical
sl@0
   235
//! @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 is passed an open file handle
sl@0
   236
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   237
//! @SYMTestType		CIT
sl@0
   238
START_TESTCASE SEC-CAF-CONS-0013
sl@0
   239
RUN_TEST_STEP 100 tcaf CAFHandleSizeStep c:\tcaf\consumerstep.ini CompareContentTestAgent
sl@0
   240
END_TESTCASE SEC-CAF-CONS-0013
sl@0
   241
sl@0
   242
//! @file
sl@0
   243
//! @SYMTestCaseID 		SEC-CAF-CONS-0014
sl@0
   244
//! @SYMTestCaseDesc 		DRM File Read and Seek with file handle
sl@0
   245
//! @SYMPREQ			PREQ280
sl@0
   246
//! @SYMTestStatus		Implemented
sl@0
   247
//! @SYMTestPriority		Critical
sl@0
   248
//! @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 is passed an open file handle
sl@0
   249
//! @SYMTestExpectedResults	Data read is the same for both
sl@0
   250
//! @SYMTestType		CIT
sl@0
   251
START_TESTCASE SEC-CAF-CONS-0014
sl@0
   252
RUN_TEST_STEP 100 tcaf CAFHandleSeekReadStep c:\tcaf\consumerstep.ini CompareContentTestAgent
sl@0
   253
END_TESTCASE SEC-CAF-CONS-0014
sl@0
   254
sl@0
   255
//! @file
sl@0
   256
//! @SYMTestCaseID 		SEC-CAF-CONS-0015
sl@0
   257
//! @SYMTestCaseDesc 		Compare the size of the entire file opened with TestAgent vs RFile entire file
sl@0
   258
//! @SYMREQ			REQ3679
sl@0
   259
//! @SYMTestStatus		Implemented
sl@0
   260
//! @SYMTestPriority		Critical
sl@0
   261
//! @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
   262
//! @SYMTestExpectedResults	Sizes are equal
sl@0
   263
//! @SYMTestType		CIT
sl@0
   264
START_TESTCASE SEC-CAF-CONS-0015
sl@0
   265
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\consumerstep.ini CompareContentCombinedURI
sl@0
   266
END_TESTCASE SEC-CAF-CONS-0015
sl@0
   267
sl@0
   268
//! @file
sl@0
   269
//! @SYMTestCaseID 		SEC-CAF-CONS-0016
sl@0
   270
//! @SYMTestCaseDesc 		Read and Seek through the entire file opened with TestAgent vs RFile entire file
sl@0
   271
//! @SYMREQ			REQ3679
sl@0
   272
//! @SYMTestStatus		Implemented
sl@0
   273
//! @SYMTestPriority		Critical
sl@0
   274
//! @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
   275
//! @SYMTestExpectedResults	Data read is the same for both
sl@0
   276
//! @SYMTestType		CIT
sl@0
   277
START_TESTCASE SEC-CAF-CONS-0016
sl@0
   278
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\consumerstep.ini CompareContentCombinedURI
sl@0
   279
END_TESTCASE SEC-CAF-CONS-0016
sl@0
   280
sl@0
   281
//! @file
sl@0
   282
//! @SYMTestCaseID 		SEC-CAF-CONS-0017
sl@0
   283
//! @SYMTestCaseDesc 		Plaintext multithread read
sl@0
   284
//! @SYMPREQ			PREQ1951
sl@0
   285
//! @SYMTestStatus		Implemented
sl@0
   286
//! @SYMTestPriority		Critical
sl@0
   287
//! @SYMTestActions		Checks that a CAF session can be shared between multiple threads 
sl@0
   288
//! @SYMTestExpectedResults	Data read sucessfully
sl@0
   289
//! @SYMTestType		CIT
sl@0
   290
START_TESTCASE SEC-CAF-CONS-0017
sl@0
   291
RUN_TEST_STEP 100 tcaf CAFMultiThreadCDataStep c:\tcaf\consumerstep.ini F32AgentThreadSharing
sl@0
   292
END_TESTCASE SEC-CAF-CONS-0017
sl@0
   293
sl@0
   294
//! @file
sl@0
   295
//! @SYMTestCaseID 		SEC-CAF-CONS-0018
sl@0
   296
//! @SYMTestCaseDesc 		Plaintext multithread read from handle
sl@0
   297
//! @SYMPREQ			PREQ280
sl@0
   298
//! @SYMTestStatus		Implemented
sl@0
   299
//! @SYMTestPriority		Critical
sl@0
   300
//! @SYMTestActions		Checks that a CAF session can be shared between multiple threads, open file handle is supplied to CAF
sl@0
   301
//! @SYMTestExpectedResults	Data read sucessfully
sl@0
   302
//! @SYMTestType		CIT
sl@0
   303
START_TESTCASE SEC-CAF-CONS-0018
sl@0
   304
RUN_TEST_STEP 100 tcaf CAFHandleMultiThreadCDataStep c:\tcaf\consumerstep.ini F32AgentThreadSharing
sl@0
   305
END_TESTCASE SEC-CAF-CONS-0018
sl@0
   306
sl@0
   307
//! @file
sl@0
   308
//! @SYMTestCaseID 		SEC-CAF-CONS-0019
sl@0
   309
//! @SYMTestCaseDesc 		DRM multithread read
sl@0
   310
//! @SYMPREQ			PREQ1951
sl@0
   311
//! @SYMTestStatus		Implemented
sl@0
   312
//! @SYMTestPriority		Critical
sl@0
   313
//! @SYMTestActions		Checks that a CAF session can be shared between multiple threads 
sl@0
   314
//! @SYMTestExpectedResults	Data read sucessfully
sl@0
   315
//! @SYMTestType		CIT
sl@0
   316
START_TESTCASE SEC-CAF-CONS-0019
sl@0
   317
RUN_TEST_STEP 100 tcaf CAFMultiThreadCDataStep c:\tcaf\consumerstep.ini TestAgentThreadSharing
sl@0
   318
END_TESTCASE SEC-CAF-CONS-0019
sl@0
   319
sl@0
   320
//! @file
sl@0
   321
//! @SYMTestCaseID 		SEC-CAF-CONS-0020
sl@0
   322
//! @SYMTestCaseDesc 		DRM multithread read
sl@0
   323
//! @SYMPREQ			PREQ280
sl@0
   324
//! @SYMTestStatus		Implemented
sl@0
   325
//! @SYMTestPriority		Critical
sl@0
   326
//! @SYMTestActions		Checks that a CAF session can be shared between multiple threads, open file handle is supplied to CAF
sl@0
   327
//! @SYMTestExpectedResults	Data read sucessfully
sl@0
   328
//! @SYMTestType		CIT
sl@0
   329
START_TESTCASE SEC-CAF-CONS-0020
sl@0
   330
RUN_TEST_STEP 100 tcaf CAFHandleMultiThreadCDataStep c:\tcaf\consumerstep.ini TestAgentThreadSharing
sl@0
   331
END_TESTCASE SEC-CAF-CONS-0020
sl@0
   332
sl@0
   333
//! @file
sl@0
   334
//! @SYMTestCaseID 		SEC-CAF-CONS-0021
sl@0
   335
//! @SYMTestCaseDesc 		Plaintext mime type
sl@0
   336
//! @SYMPREQ			PREQ1951
sl@0
   337
//! @SYMTestStatus		Implemented
sl@0
   338
//! @SYMTestPriority		Critical
sl@0
   339
//! @SYMTestActions		Asks CAF for the mime type of a file handled by F32Agent
sl@0
   340
//! @SYMTestExpectedResults	F32Agent uses Apparc to find out the mime type
sl@0
   341
//! @SYMTestType		CIT
sl@0
   342
START_TESTCASE SEC-CAF-CONS-0021
sl@0
   343
RUN_TEST_STEP 100 tcaf CAFMimeTypeCDataStep c:\tcaf\consumerstep.ini UnprotectedContentMimeType
sl@0
   344
END_TESTCASE SEC-CAF-CONS-0021
sl@0
   345
sl@0
   346
//! @file
sl@0
   347
//! @SYMTestCaseID 		SEC-CAF-CONS-0022
sl@0
   348
//! @SYMTestCaseDesc 		DRM mime type
sl@0
   349
//! @SYMPREQ			PREQ1951
sl@0
   350
//! @SYMTestStatus		Implemented
sl@0
   351
//! @SYMTestPriority		Critical
sl@0
   352
//! @SYMTestActions		Asks CAF for the mime type of a file handled by TestAgent
sl@0
   353
//! @SYMTestExpectedResults	TestAgent returns the mimetype of the content
sl@0
   354
//! @SYMTestType		CIT
sl@0
   355
START_TESTCASE SEC-CAF-CONS-0022
sl@0
   356
RUN_TEST_STEP 100 tcaf CAFMimeTypeCDataStep c:\tcaf\consumerstep.ini ProtectedContentMimeType
sl@0
   357
END_TESTCASE SEC-CAF-CONS-0022
sl@0
   358
sl@0
   359
//! @file
sl@0
   360
//! @SYMTestCaseID 		SEC-CAF-CONS-0023
sl@0
   361
//! @SYMTestCaseDesc 		DRM ShareMode
sl@0
   362
//! @SYMPREQ			PREQ1951
sl@0
   363
//! @SYMTestStatus		Implemented
sl@0
   364
//! @SYMTestPriority		Critical
sl@0
   365
//! @SYMTestActions		Opens a DRM file using all share modes 
sl@0
   366
//! @SYMTestExpectedResults	TestAgent sucessfully opens the file using all share modes
sl@0
   367
//! @SYMTestType		CIT
sl@0
   368
START_TESTCASE SEC-CAF-CONS-0023
sl@0
   369
RUN_UTILS MAKEREADWRITE C:\TCAF\testdata\TEST.DRM
sl@0
   370
RUN_TEST_STEP 100 tcaf CAFShareModeStep c:\tcaf\consumerstep.ini TestAgentShareMode
sl@0
   371
END_TESTCASE SEC-CAF-CONS-0023
sl@0
   372
sl@0
   373
//! @file
sl@0
   374
//! @SYMTestCaseID 		SEC-CAF-CONS-0024
sl@0
   375
//! @SYMTestCaseDesc 		Plaintext ShareMode
sl@0
   376
//! @SYMPREQ			PREQ1951
sl@0
   377
//! @SYMTestStatus		Implemented
sl@0
   378
//! @SYMTestPriority		Critical
sl@0
   379
//! @SYMTestActions		Opens a plaintext file using all share modes 
sl@0
   380
//! @SYMTestExpectedResults	F32Agent sucessfully opens the file using all share modes
sl@0
   381
//! @SYMTestType		CIT
sl@0
   382
START_TESTCASE SEC-CAF-CONS-0024
sl@0
   383
RUN_UTILS MAKEREADWRITE C:\tcaf\testdata\dummydata.txt
sl@0
   384
RUN_TEST_STEP 100 tcaf CAFShareModeStep c:\tcaf\consumerstep.ini F32AgentShareMode
sl@0
   385
END_TESTCASE SEC-CAF-CONS-0024
sl@0
   386
sl@0
   387
//! @file
sl@0
   388
//! @SYMTestCaseID 		SEC-CAF-CONS-0025
sl@0
   389
//! @SYMTestCaseDesc 		Checks that implemented attributes are returned correctly 
sl@0
   390
//! @SYMPREQ			CR1184
sl@0
   391
//! @SYMTestStatus		Implemented
sl@0
   392
//! @SYMTestPriority		Critical
sl@0
   393
//! @SYMTestActions		Requests EIsMediaPlayerOnly for an unprotected file
sl@0
   394
//! @SYMTestExpectedResults	EFalse is returned
sl@0
   395
//! @SYMTestType		CIT
sl@0
   396
START_TESTCASE SEC-CAF-CONS-0025
sl@0
   397
RUN_TEST_STEP 100 tcaf CAFDataAttributeStep c:\tcaf\attributes.ini IsMediaPlayerOnlyAttribute
sl@0
   398
END_TESTCASE SEC-CAF-CONS-0025
sl@0
   399
sl@0
   400
//! @file
sl@0
   401
//! @SYMTestCaseID 		SEC-CAF-CONS-0026
sl@0
   402
//! @SYMTestCaseDesc 		Checks that implemented attributes are returned correctly 
sl@0
   403
//! @SYMPREQ			CR1184
sl@0
   404
//! @SYMTestStatus		Implemented
sl@0
   405
//! @SYMTestPriority		Critical
sl@0
   406
//! @SYMTestActions		Requests EIsAutomated for an unprotected file
sl@0
   407
//! @SYMTestExpectedResults	EFalse is returned
sl@0
   408
//! @SYMTestType		CIT
sl@0
   409
START_TESTCASE SEC-CAF-CONS-0026
sl@0
   410
RUN_TEST_STEP 100 tcaf CAFDataAttributeStep c:\tcaf\attributes.ini IsAutomatedOnlyAttribute
sl@0
   411
END_TESTCASE SEC-CAF-CONS-0026
sl@0
   412
sl@0
   413
//! @file
sl@0
   414
//! @SYMTestCaseID 		SEC-CAF-CONS-0027
sl@0
   415
//! @SYMTestCaseDesc 		Checks that for non-implemented attributes a correct error code is returned
sl@0
   416
//! @SYMPREQ			CR1184
sl@0
   417
//! @SYMTestStatus		Implemented
sl@0
   418
//! @SYMTestPriority		Critical
sl@0
   419
//! @SYMTestActions		Requests EObjectNumber for an unprotected file
sl@0
   420
//! @SYMTestExpectedResults	KErrCaNotSupported is returned
sl@0
   421
//! @SYMTestType		CIT
sl@0
   422
START_TESTCASE SEC-CAF-CONS-0027
sl@0
   423
RUN_TEST_STEP !Result=-17450 100 tcaf CAFDataAttributeStep c:\tcaf\attributes.ini TrackNumberAttribute
sl@0
   424
END_TESTCASE SEC-CAF-CONS-0027
sl@0
   425
sl@0
   426
//! @file
sl@0
   427
//! @SYMTestCaseID 		SEC-CAF-CONS-0028
sl@0
   428
//! @SYMTestCaseDesc 		Checks that for non-implemented attributes a correct error code is returned
sl@0
   429
//! @SYMPREQ			CR1184
sl@0
   430
//! @SYMTestStatus		Implemented
sl@0
   431
//! @SYMTestPriority		Critical
sl@0
   432
//! @SYMTestActions		Requests EGenre for an unprotected file
sl@0
   433
//! @SYMTestExpectedResults	KErrCaNotSupported is returned
sl@0
   434
//! @SYMTestType		CIT
sl@0
   435
START_TESTCASE SEC-CAF-CONS-0028
sl@0
   436
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini GenreStringAttribute
sl@0
   437
END_TESTCASE SEC-CAF-CONS-0028
sl@0
   438
sl@0
   439
//! @file
sl@0
   440
//! @SYMTestCaseID 		SEC-CAF-CONS-0029
sl@0
   441
//! @SYMTestCaseDesc 		Checks that for non-implemented attributes a correct error code is returned
sl@0
   442
//! @SYMPREQ			CR1184
sl@0
   443
//! @SYMTestStatus		Implemented
sl@0
   444
//! @SYMTestPriority		Critical
sl@0
   445
//! @SYMTestActions		Requests EUserRating for an unprotected file
sl@0
   446
//! @SYMTestExpectedResults	KErrCaNotSupported is returned
sl@0
   447
//! @SYMTestType		CIT
sl@0
   448
START_TESTCASE SEC-CAF-CONS-0029
sl@0
   449
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini UserRatingStringAttribute
sl@0
   450
END_TESTCASE SEC-CAF-CONS-0029
sl@0
   451
sl@0
   452
//! @file
sl@0
   453
//! @SYMTestCaseID 		SEC-CAF-CONS-0030
sl@0
   454
//! @SYMTestCaseDesc 		Checks that for non-implemented attributes a correct error code is returned
sl@0
   455
//! @SYMPREQ			CR1184
sl@0
   456
//! @SYMTestStatus		Implemented
sl@0
   457
//! @SYMTestPriority		Critical
sl@0
   458
//! @SYMTestActions		Requests EAuthoredDate for an unprotected file
sl@0
   459
//! @SYMTestExpectedResults	KErrCaNotSupported is returned
sl@0
   460
//! @SYMTestType		CIT
sl@0
   461
START_TESTCASE SEC-CAF-CONS-0030
sl@0
   462
RUN_TEST_STEP 100 tcaf CAFDataStringAttributeStep c:\tcaf\attributes.ini AuthoredDateStringAttribute
sl@0
   463
END_TESTCASE SEC-CAF-CONS-0030