imaging/imaginginttest/scriptfiles/TSI_ICL_FRM_YUV.script
changeset 0 5752a19fdefe
equal deleted inserted replaced
-1:000000000000 0:5752a19fdefe
       
     1 @file TSI_ICL_FRM_YUV.script
       
     2 // Copyright (c) 2005-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 "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 PRINT Testing for YUV Image Encoder
       
    18 //
       
    19 PRINT 
       
    20 
       
    21 //MULTITHREAD
       
    22 
       
    23 //
       
    24 LOAD_SUITE TSI_ICL_FRM_00.dll
       
    25 
       
    26 //********** PREQ 747 - YUV Encoder Positive tests **********
       
    27 //Encode a YUV RChunk to a JPEG descriptor.
       
    28 //!@SYMTestCaseID             MM-ICL-FRM-I-1001-CP
       
    29 //!@SYMTestCaseDesc           Decode a  JPEG file to YUV RChunk and again encode the YUV RChunk to a JPEG descriptor.
       
    30 //!@SYMPREQ                   PREQ747
       
    31 //!@SYMTestPriority           1
       
    32 //!@SYMTestActions            1. Open a JPEG File. 2. Decode to YUV Rchunk 3. Encode the YUV RChunk to JPEG descriptor specifying UID 4. Verify if resultant
       
    33 //! JPEG descriptor matches the  original JPEG file.
       
    34 //!@SYMTestExpectedResults    *aRequestStatus = KErrNone.  aDestinationData and reference JPEG are bitwise identical.
       
    35 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1001-CP \ICL\TSI_ICL_FRM_00.ini
       
    36 TEST_COMPLETE
       
    37 
       
    38 //Encode a YUV RChunk to a JPEG file.
       
    39 //!@SYMTestCaseID             MM-ICL-FRM-I-1002-CP
       
    40 //!@SYMTestCaseDesc           Decode a  JPEG file to YUV RChunk and again encode the YUV RChunk to a JPEG file.
       
    41 //!@SYMPREQ                   PREQ747
       
    42 //!@SYMTestPriority           1
       
    43 //!@SYMTestActions            1. Open a JPEG File. 2. Decode to YUV Rchunk 3. Encode the YUV Rchunk to JPEG File 4. Verify if resultant JPEG File matches
       
    44 //! the original JPEG File
       
    45 //!@SYMTestExpectedResults    *aRequestStatus = KErrNone.  aDestinationData and reference JPEG are bitwise identical.
       
    46 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1002-CP \ICL\TSI_ICL_FRM_00.ini
       
    47 TEST_COMPLETE
       
    48 
       
    49 //Encode a YUV Descriptor to a JPEG descriptor.
       
    50 //!@SYMTestCaseID             MM-ICL-FRM-I-1003-CP
       
    51 //!@SYMTestCaseDesc           Decode a JPEG file to YUV Descriptor and  encode the YUV Descriptor to a JPEG File.
       
    52 //!@SYMPREQ                   PREQ747
       
    53 //!@SYMTestPriority           1
       
    54 //!@SYMTestActions            1. Open a JPEG File. 2. Decode to YUV Descriptor 3. Encode the YUV Descriptor to JPEG descriptor specifying UID 4. Verify
       
    55 //! if resultant JPEG descriptor matches the  original JPEG file.
       
    56 //!@SYMTestExpectedResults    *aRequestStatus = KErrNone.  aDestinationData and reference JPEG are bitwise identical.
       
    57 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1003-CP \ICL\TSI_ICL_FRM_00.ini
       
    58 TEST_COMPLETE
       
    59 
       
    60 //Encode a YUV Descriptor to a JPEG file.
       
    61 //!@SYMTestCaseID             MM-ICL-FRM-I-1004-CP
       
    62 //!@SYMTestCaseDesc           Decode a JPEG file to YUV Descriptor and  encode the YUV Descriptor to a JPEG file.
       
    63 //!@SYMPREQ                   PREQ747
       
    64 //!@SYMTestPriority           1
       
    65 //!@SYMTestActions            1. Open a JPEG File. 2. Decode to YUV Desciptor 3. Encode the YUV Descriptor to JPEG file specifying UID 4. Verify if resultant
       
    66 //! JPEG file matches the  original JPEG file.
       
    67 //!@SYMTestExpectedResults    *aRequestStatus = KErrNone.  aDestinationData and reference JPEG are bitwise identical.
       
    68 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1004-CP \ICL\TSI_ICL_FRM_00.ini
       
    69 TEST_COMPLETE
       
    70 
       
    71 //Encode YUV RChunk data to JPEG specifying extra encode parameters
       
    72 //!@SYMTestCaseID             MM-ICL-FRM-I-1005-LP
       
    73 //!@SYMTestCaseDesc           Encode YUV RChunk data to JPEG seting destination image format specific data by using CFrameImageData
       
    74 //!@SYMPREQ                   PREQ747
       
    75 //!@SYMTestPriority           4
       
    76 //!@SYMTestActions            1. Encode to YUV Rchunk 3. Encode the YUV RChunk to JPEG descriptor  4. Verify if resultant JPEG descriptor matches the
       
    77 //!  original JPEG file.
       
    78 //!@SYMTestExpectedResults    *aRequestStatus = KErrNone.  aDestinationData and reference JPEG are bitwise identical.
       
    79 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1005-LP \ICL\TSI_ICL_FRM_00.ini
       
    80 TEST_COMPLETE
       
    81 
       
    82 //Load YUVJPEG Encoder Plug-in, and enquire its UID.
       
    83 //!@SYMTestCaseID             MM-ICL-FRM-I-1006-LP
       
    84 //!@SYMTestCaseDesc           Load YUVJPEG Encoder Plug-in, and enquire its UID. Also Load the YUV Enhaced Decoder Plug-in and enquire its UID.
       
    85 //!@SYMPREQ                   PREQ747
       
    86 //!@SYMTestPriority           4
       
    87 //!@SYMTestActions            Query UID of the YUVJPEG encoder, decoder . Verify the returned value against encoder's/decoders's  known UID
       
    88 //!@SYMTestExpectedResults    UID returned matches known UID of encoder
       
    89 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1006-LP \ICL\TSI_ICL_FRM_00.ini
       
    90 TEST_COMPLETE
       
    91 
       
    92 //Load YUVJPEG Encoder Plug-in, and enquire the list of YUV Formats supported..
       
    93 //!@SYMTestCaseID             MM-ICL-FRM-I-1007-LP
       
    94 //!@SYMTestCaseDesc           Load YUVJPEG Encoder Plug-in, and enquire the list of YUV Formats supported. Also Load the YUV Enhaced Decoder Plug-in and
       
    95 //! enquire the list of supported image formats.
       
    96 //!@SYMPREQ                   PREQ747
       
    97 //!@SYMTestPriority           4
       
    98 //!@SYMTestActions            List the supported YUV Formats of the YUVJPEG encoder/decoder, verify the returned list with the known list.
       
    99 //!@SYMTestExpectedResults    The list of supported formats returned by the API, should match the known list of supported formats.
       
   100 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1007-LP \ICL\TSI_ICL_FRM_00.ini
       
   101 TEST_COMPLETE
       
   102 
       
   103 
       
   104 //********** PREQ 747 - YUV Encoder Negative tests **********
       
   105 
       
   106 //Case MM-ICL-FRM-I-1111-CP is removed.
       
   107 
       
   108 //Request an encode from YUV to JPEG specifying a supported image format but unsupported frame format
       
   109 //!@SYMTestCaseID             MM-ICL-FRM-I-1112-CP
       
   110 //!@SYMTestCaseDesc           Request an encode from YUV to JPEG specifying a supported image format but unsupported frame format
       
   111 //!@SYMPREQ                   PREQ747
       
   112 //!@SYMTestPriority           1
       
   113 //!@SYMTestActions            From a CVisualFrame in memory, request an encode to an unsupported frame format. Verify error code is returned indicating
       
   114 //! the encoder does not support this format.
       
   115 //!@SYMTestExpectedResults    Convert() returns;  *aRequestStatus contains an error - KErrNotSupported.  Original TYuvFormat unchanged. No encoded version
       
   116 //! produced.
       
   117 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1112-CP \ICL\TSI_ICL_FRM_00.ini
       
   118 TEST_COMPLETE
       
   119 
       
   120 //Check encode with a valid YUV file, but corrupt RChunk data
       
   121 //!@SYMTestCaseID             MM-ICL-FRM-I-1113-CP
       
   122 //!@SYMTestCaseDesc           Check encode with a valid YUV file, but corrupt RChunk data
       
   123 //!@SYMPREQ                   PREQ747
       
   124 //!@SYMTestPriority           1
       
   125 //!@SYMTestActions            From the YUV file, create a TDes. Corrupt the TDes, by adding / deleting some data. Cast the TDesC to CRChunkFrame. Request
       
   126 //! encode to JPEG specifying UID, and verify the error returned.
       
   127 //!@SYMTestExpectedResults    The Expected Error is KErrNotFound on executing CImageEncoder::FileNewL.
       
   128 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1113-CP \ICL\TSI_ICL_FRM_00.ini
       
   129 TEST_COMPLETE
       
   130 
       
   131 //Check encode with a valid YUV file, but corrupt descriptor data
       
   132 //!@SYMTestCaseID             MM-ICL-FRM-I-1114-CP
       
   133 //!@SYMTestCaseDesc           Check encode with a valid YUV file, but corrupt descriptor data
       
   134 //!@SYMPREQ                   PREQ747
       
   135 //!@SYMTestPriority           1
       
   136 //!@SYMTestActions            From the YUV file, create a TDes. Corrupt the TDes, by adding / deleting some data. Cast the TDesC to CDescriptorFrame.
       
   137 //! Request encode to JPEG specifying UID, and verify the error returned.
       
   138 //!@SYMTestExpectedResults    The Expected Error is KErrNotSupported / KErrNotFound on executing CImageEncoder::FileNewL.
       
   139 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1114-CP \ICL\TSI_ICL_FRM_00.ini
       
   140 TEST_COMPLETE
       
   141 
       
   142 
       
   143 //Cases MM-ICL-FRM-I-1115-CP and MM-ICL-FRM-I-1116-CP are removed.
       
   144 
       
   145 //Request a decode from JPEG to an unsupported YUV image format.
       
   146 //!@SYMTestCaseID             MM-ICL-FRM-I-1117-CP
       
   147 //!@SYMTestCaseDesc           Request a decode from JPEG to an unsupported YUV image format.
       
   148 //!@SYMTestPriority           1
       
   149 //!@SYMTestActions            1. Open a JPEG file for Input 2. Decode to an unsupported YUV Format 3. Check if the Error code returned is KErrNotSuppo
       
   150 //!rted.
       
   151 //!@SYMTestExpectedResults    Convert() returns;  *aRequestStatus contains an error - KErrNotSupported.  Original JPEG unchanged. No decoded version p
       
   152 //!roduced.
       
   153 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1117-CP \ICL\TSI_ICL_FRM_00.ini
       
   154 TEST_COMPLETE
       
   155 
       
   156 //Check decode with a corrupt JPEG  file to YUV.
       
   157 //!@SYMTestCaseID             MM-ICL-FRM-I-1118-CP
       
   158 //!@SYMTestCaseDesc           Check decode with a corrupt JPEG  file to YUV.
       
   159 //!@SYMTestPriority           1
       
   160 //!@SYMTestActions            1. Open a corrupt JPEG file for Input 2. Attempt to Decode to YUV Format 3. Check if the Error code returned is KErrCorr
       
   161 //!upt.
       
   162 //!@SYMTestExpectedResults    Convert() returns;  *aRequestStatus contains an error - KErrCorrupt.  Original JPEG unchanged. No decoded version produc
       
   163 //!ed.
       
   164 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1118-CP \ICL\TSI_ICL_FRM_00.ini
       
   165 TEST_COMPLETE
       
   166 
       
   167 //Check decode with a  corrupt JPEG  descriptor to YUV.
       
   168 //!@SYMTestCaseID             MM-ICL-FRM-I-1119-CP
       
   169 //!@SYMTestCaseDesc           Check decode with a  corrupt JPEG  descriptor to YUV.
       
   170 //!@SYMTestPriority           1
       
   171 //!@SYMTestActions            1. Open a corrupt JPEG descriptor for Input 2. Attempt to Decode to YUV Format 3. Check if the Error code returned is KE
       
   172 //!rrCorrupt.
       
   173 //!@SYMTestExpectedResults    Convert() returns;  *aRequestStatus contains an error - KErrCorrupt.  Original JPEG unchanged. No decoded version produc
       
   174 //!ed.
       
   175 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1119-CP \ICL\TSI_ICL_FRM_00.ini
       
   176 TEST_COMPLETE
       
   177 
       
   178 //Attempt to encode a GIF to YUV.
       
   179 //!@SYMTestCaseID             MM-ICL-FRM-I-1120-CP
       
   180 //!@SYMTestCaseDesc           Attempt to decode a GIF to YUV.
       
   181 //!@SYMTestPriority           1
       
   182 //!@SYMTestActions            1. Open a GIF file for Input 2. Attempt to load a GIF to YUV decoder 3. Check if the Error code returned is KErrNotSuppo
       
   183 //!rted.
       
   184 //!@SYMTestExpectedResults    Convert() returns;  *aRequestStatus contains an error - KErrNotSupported.  Original JPEG unchanged. No decoded version p
       
   185 //!roduced.
       
   186 RUN_TEST_STEP 360000 TSI_ICL_FRM_00 MM-ICL-FRM-I-1120-CP \ICL\TSI_ICL_FRM_00.ini
       
   187 TEST_COMPLETE
       
   188