os/security/contentmgmt/referencedrmagent/tcaf/scripts/supply_without_http.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
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
LOAD_SUITE tcaf
sl@0
    18
sl@0
    19
sl@0
    20
sl@0
    21
START_TESTCASE 			SEC-CAF-SUPPLY-0001
sl@0
    22
//! @file
sl@0
    23
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0001
sl@0
    24
//! @SYMTestCaseDesc 		Supply a DRM file to CAF
sl@0
    25
//!				(DRM_Supply)
sl@0
    26
//! @SYMPREQ			PREQ1951
sl@0
    27
//! @SYMTestStatus		Implemented
sl@0
    28
//! @SYMTestPriority		Critical
sl@0
    29
//! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
sl@0
    30
//! @SYMTestExpectedResults	Supply operation works successfully
sl@0
    31
//! @SYMTestType		CIT
sl@0
    32
RUN_UTILS Delete c:\supplied.drm 
sl@0
    33
RUN_UTILS Delete c:\outputfile.drm 
sl@0
    34
RUN_UTILS Delete c:\receipt.txt
sl@0
    35
RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyDrm
sl@0
    36
END_TESTCASE 			SEC-CAF-SUPPLY-0001
sl@0
    37
sl@0
    38
START_TESTCASE 			SEC-CAF-SUPPLY-0002
sl@0
    39
//! @file
sl@0
    40
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0002
sl@0
    41
//! @SYMTestCaseDesc 		Check supply output
sl@0
    42
//!				(DRM_Check_Supply_output_Size)
sl@0
    43
//! @SYMPREQ			PREQ1951
sl@0
    44
//! @SYMTestStatus		Implemented
sl@0
    45
//! @SYMTestPriority		Critical
sl@0
    46
//! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
sl@0
    47
//! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
sl@0
    48
//! @SYMTestType		CIT
sl@0
    49
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
sl@0
    50
END_TESTCASE 			SEC-CAF-SUPPLY-0002
sl@0
    51
sl@0
    52
START_TESTCASE 			SEC-CAF-SUPPLY-0003
sl@0
    53
//! @file
sl@0
    54
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0003
sl@0
    55
//! @SYMTestCaseDesc 		Check supply output
sl@0
    56
//!				(DRM_Check_Supply_output)
sl@0
    57
//! @SYMPREQ			PREQ1951
sl@0
    58
//! @SYMTestStatus		Implemented
sl@0
    59
//! @SYMTestPriority		Critical
sl@0
    60
//! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
sl@0
    61
//! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
sl@0
    62
//! @SYMTestType		CIT
sl@0
    63
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
sl@0
    64
END_TESTCASE 			SEC-CAF-SUPPLY-0003
sl@0
    65
sl@0
    66
START_TESTCASE 			SEC-CAF-SUPPLY-0004
sl@0
    67
//! @file
sl@0
    68
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0004
sl@0
    69
//! @SYMTestCaseDesc 		Supply a DRM file to CAF asynchronously
sl@0
    70
//!				(DRM_Supply_Async)
sl@0
    71
//! @SYMPREQ			PREQ1951
sl@0
    72
//! @SYMTestStatus		Implemented
sl@0
    73
//! @SYMTestPriority		Critical
sl@0
    74
//! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
sl@0
    75
//! @SYMTestExpectedResults	Supply operation works successfully
sl@0
    76
//! @SYMTestType		CIT
sl@0
    77
RUN_UTILS Delete c:\supplied.drm 
sl@0
    78
RUN_UTILS Delete c:\outputfile.drm 
sl@0
    79
RUN_UTILS Delete c:\receipt.txt
sl@0
    80
RUN_TEST_STEP 100 tcaf CAFSupplierAsyncStep c:\tcaf\supply.ini SupplyDrm
sl@0
    81
END_TESTCASE 			SEC-CAF-SUPPLY-0004
sl@0
    82
sl@0
    83
START_TESTCASE 			SEC-CAF-SUPPLY-0005
sl@0
    84
//! @file
sl@0
    85
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0005
sl@0
    86
//! @SYMTestCaseDesc 		Check supply output
sl@0
    87
//!				(DRM_Check_Supply_output_Size)
sl@0
    88
//! @SYMPREQ			PREQ1951
sl@0
    89
//! @SYMTestStatus		Implemented
sl@0
    90
//! @SYMTestPriority		Critical
sl@0
    91
//! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
sl@0
    92
//! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
sl@0
    93
//! @SYMTestType		CIT
sl@0
    94
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport
sl@0
    95
END_TESTCASE 			SEC-CAF-SUPPLY-0005
sl@0
    96
sl@0
    97
START_TESTCASE 			SEC-CAF-SUPPLY-0006
sl@0
    98
//! @file
sl@0
    99
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0006
sl@0
   100
//! @SYMTestCaseDesc 		Check supply output
sl@0
   101
//!				(DRM_Check_Supply_output)
sl@0
   102
//! @SYMPREQ			PREQ1951
sl@0
   103
//! @SYMTestStatus		Implemented
sl@0
   104
//! @SYMTestPriority		Critical
sl@0
   105
//! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
sl@0
   106
//! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
sl@0
   107
//! @SYMTestType		CIT
sl@0
   108
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport
sl@0
   109
END_TESTCASE 			SEC-CAF-SUPPLY-0006
sl@0
   110
sl@0
   111
START_TESTCASE 			SEC-CAF-SUPPLY-0007
sl@0
   112
//! @file
sl@0
   113
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0007
sl@0
   114
//! @SYMTestCaseDesc 		Attempt to supply an unrecognized mime type
sl@0
   115
//!				(DRM_Check_Supply_Unrecognized)
sl@0
   116
//! @SYMPREQ			PREQ1951
sl@0
   117
//! @SYMTestStatus		Implemented
sl@0
   118
//! @SYMTestPriority		Critical
sl@0
   119
//! @SYMTestActions		Ask CAF to import an unrecognized file type
sl@0
   120
//! @SYMTestExpectedResults	Import should fail
sl@0
   121
//! @SYMTestType		CIT
sl@0
   122
RUN_UTILS Delete c:\failed.drm 
sl@0
   123
RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyUnrecognized
sl@0
   124
END_TESTCASE 			SEC-CAF-SUPPLY-0007
sl@0
   125
sl@0
   126
START_TESTCASE 			SEC-CAF-SUPPLY-0008
sl@0
   127
//! @file
sl@0
   128
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0008
sl@0
   129
//! @SYMTestCaseDesc 		Supply a DRM file to CAF
sl@0
   130
//!				(DRM_Supply_Client)
sl@0
   131
//! @SYMREQ			CR1440
sl@0
   132
//! @SYMTestStatus		Implemented
sl@0
   133
//! @SYMTestPriority		Critical
sl@0
   134
//! @SYMTestActions		Supply a file to CAF, Content Mime type should be determimed during spply session
sl@0
   135
//! @SYMTestExpectedResults	Supply operation works successfully
sl@0
   136
//! @SYMTestType		CIT
sl@0
   137
RUN_UTILS Delete c:\supplied.drm 
sl@0
   138
RUN_UTILS Delete c:\outputfile.drm 
sl@0
   139
RUN_UTILS Delete c:\receipt.txt
sl@0
   140
RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini CheckContentMime
sl@0
   141
END_TESTCASE 			SEC-CAF-SUPPLY-0008
sl@0
   142
sl@0
   143
START_TESTCASE 			SEC-CAF-SUPPLY-0009
sl@0
   144
//! @file
sl@0
   145
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0009
sl@0
   146
//! @SYMTestCaseDesc 		Supply a DRM file to CAF
sl@0
   147
//!				(DRM_Supply_Client)
sl@0
   148
//! @SYMREQ			REQ3689
sl@0
   149
//! @SYMTestStatus		Implemented
sl@0
   150
//! @SYMTestPriority		Critical
sl@0
   151
//! @SYMTestActions		Supply a file to CAF, TestAgent should save the file as a .DRM
sl@0
   152
//! @SYMTestExpectedResults	Supply operation works successfully
sl@0
   153
//! @SYMTestType		CIT
sl@0
   154
RUN_UTILS Delete c:\supplied.drm 
sl@0
   155
RUN_UTILS Delete c:\outputfile.drm 
sl@0
   156
RUN_UTILS Delete c:\receipt.txt
sl@0
   157
RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini SupplyDrmClientSpecifyOutFile
sl@0
   158
END_TESTCASE 			SEC-CAF-SUPPLY-0009
sl@0
   159
sl@0
   160
START_TESTCASE 			SEC-CAF-SUPPLY-0010
sl@0
   161
//! @file
sl@0
   162
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0010
sl@0
   163
//! @SYMTestCaseDesc 		Check supply output
sl@0
   164
//!				(DRM_Check_Supply_output_Size_Client)
sl@0
   165
//! @SYMREQ			REQ3689
sl@0
   166
//! @SYMTestStatus		Implemented
sl@0
   167
//! @SYMTestPriority		Critical
sl@0
   168
//! @SYMTestActions		Use CAF to check the size of the content imported in the supply operation
sl@0
   169
//! @SYMTestExpectedResults	Source file size should be the same as content size in output .DRM file
sl@0
   170
//! @SYMTestType		CIT
sl@0
   171
RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2
sl@0
   172
END_TESTCASE 			SEC-CAF-SUPPLY-0010
sl@0
   173
sl@0
   174
START_TESTCASE 			SEC-CAF-SUPPLY-0011
sl@0
   175
//! @file
sl@0
   176
//! @SYMTestCaseID 		SEC-CAF-SUPPLY-0011
sl@0
   177
//! @SYMTestCaseDesc 		Check supply output
sl@0
   178
//!				(DRM_Check_Supply_output_Client)
sl@0
   179
//! @SYMREQ			REQ3689
sl@0
   180
//! @SYMTestStatus		Implemented
sl@0
   181
//! @SYMTestPriority		Critical
sl@0
   182
//! @SYMTestActions		Use CAF to check the content within the output file produced by the supply operation. 
sl@0
   183
//! @SYMTestExpectedResults	Source file data should be the same as content object data in the output .DRM file
sl@0
   184
//! @SYMTestType		CIT
sl@0
   185
RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2
sl@0
   186
END_TESTCASE 			SEC-CAF-SUPPLY-0011