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: LOAD_SUITE tcaf sl@0: sl@0: sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0001 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0001 sl@0: //! @SYMTestCaseDesc Supply a DRM file to CAF sl@0: //! (DRM_Supply) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM sl@0: //! @SYMTestExpectedResults Supply operation works successfully sl@0: //! @SYMTestType CIT sl@0: RUN_UTILS Delete c:\supplied.drm sl@0: RUN_UTILS Delete c:\outputfile.drm sl@0: RUN_UTILS Delete c:\receipt.txt sl@0: RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyDrm sl@0: END_TESTCASE SEC-CAF-SUPPLY-0001 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0002 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0002 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output_Size) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the size of the content imported in the supply operation sl@0: //! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport sl@0: END_TESTCASE SEC-CAF-SUPPLY-0002 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0003 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0003 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation. sl@0: //! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport sl@0: END_TESTCASE SEC-CAF-SUPPLY-0003 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0004 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0004 sl@0: //! @SYMTestCaseDesc Supply a DRM file to CAF asynchronously sl@0: //! (DRM_Supply_Async) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM sl@0: //! @SYMTestExpectedResults Supply operation works successfully sl@0: //! @SYMTestType CIT sl@0: RUN_UTILS Delete c:\supplied.drm sl@0: RUN_UTILS Delete c:\outputfile.drm sl@0: RUN_UTILS Delete c:\receipt.txt sl@0: RUN_TEST_STEP 100 tcaf CAFSupplierAsyncStep c:\tcaf\supply.ini SupplyDrm sl@0: END_TESTCASE SEC-CAF-SUPPLY-0004 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0005 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0005 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output_Size) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the size of the content imported in the supply operation sl@0: //! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport sl@0: END_TESTCASE SEC-CAF-SUPPLY-0005 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0006 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0006 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation. sl@0: //! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport sl@0: END_TESTCASE SEC-CAF-SUPPLY-0006 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0007 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0007 sl@0: //! @SYMTestCaseDesc Attempt to supply an unrecognized mime type sl@0: //! (DRM_Check_Supply_Unrecognized) sl@0: //! @SYMPREQ PREQ1951 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Ask CAF to import an unrecognized file type sl@0: //! @SYMTestExpectedResults Import should fail sl@0: //! @SYMTestType CIT sl@0: RUN_UTILS Delete c:\failed.drm sl@0: RUN_TEST_STEP 100 tcaf CAFSupplierStep c:\tcaf\supply.ini SupplyUnrecognized sl@0: END_TESTCASE SEC-CAF-SUPPLY-0007 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0008 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0008 sl@0: //! @SYMTestCaseDesc Supply a DRM file to CAF sl@0: //! (DRM_Supply_Client) sl@0: //! @SYMREQ CR1440 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Supply a file to CAF, Content Mime type should be determimed during spply session sl@0: //! @SYMTestExpectedResults Supply operation works successfully sl@0: //! @SYMTestType CIT sl@0: RUN_UTILS Delete c:\supplied.drm sl@0: RUN_UTILS Delete c:\outputfile.drm sl@0: RUN_UTILS Delete c:\receipt.txt sl@0: RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini CheckContentMime sl@0: END_TESTCASE SEC-CAF-SUPPLY-0008 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0009 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0009 sl@0: //! @SYMTestCaseDesc Supply a DRM file to CAF sl@0: //! (DRM_Supply_Client) sl@0: //! @SYMREQ REQ3689 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Supply a file to CAF, TestAgent should save the file as a .DRM sl@0: //! @SYMTestExpectedResults Supply operation works successfully sl@0: //! @SYMTestType CIT sl@0: RUN_UTILS Delete c:\supplied.drm sl@0: RUN_UTILS Delete c:\outputfile.drm sl@0: RUN_UTILS Delete c:\receipt.txt sl@0: RUN_TEST_STEP 100 tcaf CAFClientOutputSupplierStep c:\tcaf\supply.ini SupplyDrmClientSpecifyOutFile sl@0: END_TESTCASE SEC-CAF-SUPPLY-0009 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0010 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0010 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output_Size_Client) sl@0: //! @SYMREQ REQ3689 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the size of the content imported in the supply operation sl@0: //! @SYMTestExpectedResults Source file size should be the same as content size in output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSizeStep c:\tcaf\supply.ini CheckImport2 sl@0: END_TESTCASE SEC-CAF-SUPPLY-0010 sl@0: sl@0: START_TESTCASE SEC-CAF-SUPPLY-0011 sl@0: //! @file sl@0: //! @SYMTestCaseID SEC-CAF-SUPPLY-0011 sl@0: //! @SYMTestCaseDesc Check supply output sl@0: //! (DRM_Check_Supply_output_Client) sl@0: //! @SYMREQ REQ3689 sl@0: //! @SYMTestStatus Implemented sl@0: //! @SYMTestPriority Critical sl@0: //! @SYMTestActions Use CAF to check the content within the output file produced by the supply operation. sl@0: //! @SYMTestExpectedResults Source file data should be the same as content object data in the output .DRM file sl@0: //! @SYMTestType CIT sl@0: RUN_TEST_STEP 100 tcaf CAFSeekReadStep c:\tcaf\supply.ini CheckImport2 sl@0: END_TESTCASE SEC-CAF-SUPPLY-0011