os/mm/mmplugins/lib3gpunittest/scripts/tsu_3gp_parse_large_file.script
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmplugins/lib3gpunittest/scripts/tsu_3gp_parse_large_file.script	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,107 @@
     1.4 +// Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// 3GP library parser api Unit Testing script
    1.18 +// testexecute.exe [path]\[this script name]. 3GP library and necessary test files should be present. 
    1.19 +// It requires no exceptional network support.  
    1.20 +// 
    1.21 +//
    1.22 +
    1.23 +//! @file
    1.24 +//! @SYMTestSuiteName          tsu_3gp_parse_api
    1.25 +//! @SYMScriptTestEnvironment  This test runs using Symbian test execution with the following test list entry:
    1.26 +
    1.27 +
    1.28 +PRINT Run all the 3GP library parser api Unit
    1.29 +PRINT 
    1.30 +
    1.31 +LOAD_SUITE tsu_3gplibrary
    1.32 +
    1.33 +// Positive test
    1.34 +
    1.35 +START_TESTCASE MM-3GP-PARSE-U-0045-CP
    1.36 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0045-CP
    1.37 +//! @SYMREQ                 REQ12477
    1.38 +//! @SYMTestCaseDesc        Test the parser with large file (>2GB)
    1.39 +//! Pre-Condition	    A valid large mp4/3gp file (>2GB) containing both audio and video streams
    1.40 +//! @SYMTestPriority        High
    1.41 +//! @SYMTestActions         Retrieve video/audio attributes and frames 
    1.42 +//! @SYMTestExpectedResults Retrieving audio/video attributes and frames with no errors.
    1.43 +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
    1.44 +END_TESTCASE MM-3GP-PARSE-U-0045-CP
    1.45 +
    1.46 +START_TESTCASE MM-3GP-PARSE-U-0046-CP
    1.47 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0046-CP
    1.48 +//! @SYMREQ                 REQ12477
    1.49 +//! @SYMTestCaseDesc        Retrieval of user data atom from a large file (>2GB)
    1.50 +//! Pre-Condition	    	A valid >2GB mp4/3gp file must be present
    1.51 +//! @SYMTestPriority        High
    1.52 +//! @SYMTestActions         1. Retrieve user data atom with multiple entries all of the same type
    1.53 +//!							2. Retrieve user data atom with multiple entries of the same type and some other types
    1.54 +//!							3. Retrieve user data atom with no entries of the specified type but with entries of some other types
    1.55 +//! @SYMTestExpectedResults Test returns with no error.
    1.56 +RUN_TEST_STEP  -1 tsu_3gplibrary UserDataAtomRetrieval c:\mm\tsu_3gp_parse_api_te.ini MM-3GP-PARSE-U-0046-CP
    1.57 +END_TESTCASE MM-3GP-PARSE-U-0046-CP
    1.58 +
    1.59 +//START_TESTCASE MM-3GP-PARSE-U-0047-CP
    1.60 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0047-CP
    1.61 +//! @SYMREQ                 REQ12477
    1.62 +//! @SYMTestCaseDesc        Parse video/audio frames from >2GB file synchronously in buffer mode
    1.63 +//! Pre-Condition	    A valid >2GB mp4/3gp file containing both supported audio and video streams must be present
    1.64 +//! @SYMTestPriority        High
    1.65 +//! @SYMTestActions         Parse video/audio frames from >2GB file synchronously in buffer mode
    1.66 +//! @SYMTestExpectedResults All frames retrieved with no error.
    1.67 +//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
    1.68 +//END_TESTCASE MM-3GP-PARSE-U-0047-CP
    1.69 +
    1.70 +// end of positive testing
    1.71 +
    1.72 +// Negative testing
    1.73 +
    1.74 +START_TESTCASE MM-3GP-PARSE-U-0137-CP
    1.75 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0137-CP
    1.76 +//! @SYMREQ                 REQ12477
    1.77 +//! @SYMTestCaseDesc        Read of video/audio properties from a large file using 32bit APIs
    1.78 +//! Pre-Condition	    File with audio & video.
    1.79 +//! @SYMTestPriority        High
    1.80 +//! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
    1.81 +//!							2. Attempt to read properties
    1.82 +//! @SYMTestExpectedResults Should fail with KErrTooBig.
    1.83 +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
    1.84 +END_TESTCASE MM-3GP-PARSE-U-0137-CP
    1.85 +
    1.86 +START_TESTCASE MM-3GP-PARSE-U-0138-CP
    1.87 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0138-CP
    1.88 +//! @SYMREQ                 REQ12477
    1.89 +//! @SYMTestCaseDesc        Read video/audio frame from a large file using 32bit APIs
    1.90 +//! Pre-Condition	    File with audio & video.
    1.91 +//! @SYMTestPriority        High
    1.92 +//! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
    1.93 +//!							2. Attempt to read a frame
    1.94 +//! @SYMTestExpectedResults Should fail with KErrTooBig.
    1.95 +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
    1.96 +END_TESTCASE MM-3GP-PARSE-U-0138-CP
    1.97 +
    1.98 +START_TESTCASE MM-3GP-PARSE-U-0139-CP
    1.99 +//! @SYMTestCaseID          MM-3GP-PARSE-U-0139-CP
   1.100 +//! @SYMREQ                 REQ12477
   1.101 +//! @SYMTestCaseDesc        Async read video/audio frame from a large file using 32bit APIs
   1.102 +//! Pre-Condition	    File with audio & video.
   1.103 +//! @SYMTestPriority        High
   1.104 +//! @SYMTestActions         1. Setup a 3GP Parser object with a large file using 32bit APIs
   1.105 +//!							2. Attempt to read a frame
   1.106 +//! @SYMTestExpectedResults Should fail with KErrTooBig.
   1.107 +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
   1.108 +END_TESTCASE MM-3GP-PARSE-U-0139-CP
   1.109 +
   1.110 +// End of negative tests