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