os/mm/mmplugins/lib3gpunittest/scripts/tsu_3gp_parse_large_file.script
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // 3GP library parser api Unit Testing script
    15 // testexecute.exe [path]\[this script name]. 3GP library and necessary test files should be present. 
    16 // It requires no exceptional network support.  
    17 // 
    18 //
    19 
    20 //! @file
    21 //! @SYMTestSuiteName          tsu_3gp_parse_api
    22 //! @SYMScriptTestEnvironment  This test runs using Symbian test execution with the following test list entry:
    23 
    24 
    25 PRINT Run all the 3GP library parser api Unit
    26 PRINT 
    27 
    28 LOAD_SUITE tsu_3gplibrary
    29 
    30 // Positive test
    31 
    32 START_TESTCASE MM-3GP-PARSE-U-0045-CP
    33 //! @SYMTestCaseID          MM-3GP-PARSE-U-0045-CP
    34 //! @SYMREQ                 REQ12477
    35 //! @SYMTestCaseDesc        Test the parser with large file (>2GB)
    36 //! Pre-Condition	    A valid large mp4/3gp file (>2GB) containing both audio and video streams
    37 //! @SYMTestPriority        High
    38 //! @SYMTestActions         Retrieve video/audio attributes and frames 
    39 //! @SYMTestExpectedResults Retrieving audio/video attributes and frames with no errors.
    40 RUN_TEST_STEP !Heap=0x5000000 -1 tsu_3gplibrary MM-3GP-PARSE-U-0045-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE
    41 END_TESTCASE MM-3GP-PARSE-U-0045-CP
    42 
    43 START_TESTCASE MM-3GP-PARSE-U-0046-CP
    44 //! @SYMTestCaseID          MM-3GP-PARSE-U-0046-CP
    45 //! @SYMREQ                 REQ12477
    46 //! @SYMTestCaseDesc        Retrieval of user data atom from a large file (>2GB)
    47 //! Pre-Condition	    	A valid >2GB mp4/3gp file must be present
    48 //! @SYMTestPriority        High
    49 //! @SYMTestActions         1. Retrieve user data atom with multiple entries all of the same type
    50 //!							2. Retrieve user data atom with multiple entries of the same type and some other types
    51 //!							3. Retrieve user data atom with no entries of the specified type but with entries of some other types
    52 //! @SYMTestExpectedResults Test returns with no error.
    53 RUN_TEST_STEP  -1 tsu_3gplibrary UserDataAtomRetrieval c:\mm\tsu_3gp_parse_api_te.ini MM-3GP-PARSE-U-0046-CP
    54 END_TESTCASE MM-3GP-PARSE-U-0046-CP
    55 
    56 //START_TESTCASE MM-3GP-PARSE-U-0047-CP
    57 //! @SYMTestCaseID          MM-3GP-PARSE-U-0047-CP
    58 //! @SYMREQ                 REQ12477
    59 //! @SYMTestCaseDesc        Parse video/audio frames from >2GB file synchronously in buffer mode
    60 //! Pre-Condition	    A valid >2GB mp4/3gp file containing both supported audio and video streams must be present
    61 //! @SYMTestPriority        High
    62 //! @SYMTestActions         Parse video/audio frames from >2GB file synchronously in buffer mode
    63 //! @SYMTestExpectedResults All frames retrieved with no error.
    64 //RUN_TEST_STEP !Heap=0x5000000 -1 tsu_3gplibrary MM-3GP-PARSE-U-0047-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE
    65 //END_TESTCASE MM-3GP-PARSE-U-0047-CP
    66 
    67 // end of positive testing
    68 
    69 // Negative testing
    70 
    71 START_TESTCASE MM-3GP-PARSE-U-0137-CP
    72 //! @SYMTestCaseID          MM-3GP-PARSE-U-0137-CP
    73 //! @SYMREQ                 REQ12477
    74 //! @SYMTestCaseDesc        Read of video/audio properties from a large file using 32bit APIs
    75 //! Pre-Condition	    File with audio & video.
    76 //! @SYMTestPriority        High
    77 //! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
    78 //!							2. Attempt to read properties
    79 //! @SYMTestExpectedResults Should fail with KErrTooBig.
    80 RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0137-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE
    81 END_TESTCASE MM-3GP-PARSE-U-0137-CP
    82 
    83 START_TESTCASE MM-3GP-PARSE-U-0138-CP
    84 //! @SYMTestCaseID          MM-3GP-PARSE-U-0138-CP
    85 //! @SYMREQ                 REQ12477
    86 //! @SYMTestCaseDesc        Read video/audio frame from a large file using 32bit APIs
    87 //! Pre-Condition	    File with audio & video.
    88 //! @SYMTestPriority        High
    89 //! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
    90 //!							2. Attempt to read a frame
    91 //! @SYMTestExpectedResults Should fail with KErrTooBig.
    92 RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0138-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE
    93 END_TESTCASE MM-3GP-PARSE-U-0138-CP
    94 
    95 START_TESTCASE MM-3GP-PARSE-U-0139-CP
    96 //! @SYMTestCaseID          MM-3GP-PARSE-U-0139-CP
    97 //! @SYMREQ                 REQ12477
    98 //! @SYMTestCaseDesc        Async read video/audio frame from a large file using 32bit APIs
    99 //! Pre-Condition	    File with audio & video.
   100 //! @SYMTestPriority        High
   101 //! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
   102 //!							2. Attempt to read a frame
   103 //! @SYMTestExpectedResults Should fail with KErrTooBig.
   104 RUN_TEST_STEP !Heap=0x5000000 !Error=-40 -1 tsu_3gplibrary MM-3GP-PARSE-U-0139-CP c:\mm\tsu_3gp_parse_api_te.ini 3GP-H264-MP4-LARGE
   105 END_TESTCASE MM-3GP-PARSE-U-0139-CP
   106 
   107 // End of negative tests